SAP Sybase IQ supports simple scalar user-defined functions (UDFs) that can be used anywhere the SQRT function can be used.
These scalar UDFs can be deterministic, which means that for a given set of argument values the function always returns the same result value, or they can be nondeterministic scalar functions, which means that the same arguments can return different results.