Updated: 27 August 2010
Use IMLOG2 to return the base-2 logarithm of a complex number in x + yi or x + yj text format. The base-2 logarithm of complex function is computed by:
SELECT [wctEngineering].[wct].[IMLOG2] (
is the value at which to evaluate the function. @inumber is an expression of type varchar or of a type that can be implicitly converted to varchar and must be in the format x + yi or x + yj, where x is a real number that can be converted to float and yi (or yj) is an imaginary number, where the y part can be converted to float.
· Use COMPLEX to convert real and imaginary coefficients into a complex number
This produces the following result
(1 row(s) affected)