Thursday, September 09, 2010 Register
XLeratorDB/engineering Online Documentation
IMDIV
No Comments Yet
 
Updated: 01 March 2009 

Use wct.IMDIV to return the quotient of 2 complex numbers in x + yi or x + yj text format. The quotient of 2 complex numbers is computed as:
 IMDIV
Syntax
SELECT [wctEngineering].[wct].[IMDIV] (
   <@inumber1, nvarchar(4000),>
 ,<@inumber2, nvarchar(4000),>)
Arguments
@inumber1
is the first value used in evaluating the function. @inumber1 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 converted to float and yi (or yj) is an imaginary number, where the y part can be converted to float.
@inumber2
is the second value used in evaluating the function. @inumber2 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 converted to float and yi (or yj) is an imaginary number, where the y part can be converted to float.
Return Types
varchar(4000)
Remarks
·         Use COMPLEX to convert real and imaginary coefficients into a complex number
Examples

select
wct.IMDIV('7+24i','6-25i')

This produces the following result
-------------------------
-0.844175491679274+0.482602118003026i
 

(1 row(s) affected)



  Comments

 |  View Topic History  |
Print  
Privacy StatementTerms Of UseCopyright 2010 WestClinTech LLC

BorderBoxedGrayBoxedGreenBlue Small width layoutMedium width layoutMaximum width layoutMaximum textMedium textSmall textBack Top!