sqrt()
Returns the square root of a positive integer or real number. If the parameter is a negative integer or negative real number, it is changed to a complex and then the square root is calculated.
Syntax:
sqrt(x);
where
x is a positive integer or real number, a square root of the number is calculated.
x is a negative integer or real number, the number is converted to a complex number by making x be the REAL part of the complex and setting the IMAGINARY part of the complex to 0.0. Then the square root of the new complex number is calculated.
x is a complex number, the square root of the complex number is calculated.
x is 0, then the answer is 0.0
Example:
decl x,y,z; x = sqrt(25); // 5 y = sqrt(-25); // 0 + 5i z = sqrt(-25+5i); // .497543 + 5.02469i
Download Example File:
The following link(s) lead to the Agilent EEsof EDA Knowledge center website. You will need to register at this site with a valid support contract to download an example file.
Where Used:
Measurement Expressions (Data Display equations and Schematic MeasEqns), Schematic, Layout, Simulation, GUI
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()