Logo

IMCONJUGATE

Updated 2023-11-08 19:51:40.617000

Syntax

SELECT [westclintech].[wct].[IMCONJUGATE] (
   <@inumber, nvarchar(4000),>)

Description

Use the scalar function IMCONJUGATE function to return the complex conjugate of a complex number in x + yi or x + yj format.

Arguments

@inumber

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.

Return Type

nvarchar(4000)

Remarks

Use COMPLEX to convert real and imaginary coefficients into a complex number.

IMCONJUGATE(‘x+yi’) = ‘x-yi’

Examples

select wct.IMCONJUGATE('7+24i');

This produces the following result.

{"columns":[{"field":"column 1"}],"rows":[{"column 1":"7-24i"}]}