JCL Help:TJclComplex.AsPolarString
JCL Help: TJclComplex.AsPolarString Property
Search in JCL Help
Search in all projects
Summary
AsPolarString converts the value of the complex number to a string with a pair of complex number's polar coordinates.
Pascal
public property AsPolarString: string;
Description
Use AsPolarString property to obtain a string representation of the complex number formatted according to the canonical form of complex numbers in polar coordinates representation. FracLength property is used to determine the precision of float parts of the complex number. For example if your complex number is (5.2345355; -3.599) and FracLength=2 you will get the following string as the result of calling AsString: 5.23-CIS(3.60) Here CIS(theta) = COS(theta) + SIN(theta)*i Also you might use this property to assign the value of a string to the complex number object like this: MyComplex.AsPolarString := '-5.3453-CIS(3.543)' The string provided should represent a complex number in its canonical polar coordinates form like this: r+CIS(theta), where r and theta are either positive or negative or zero floating values. If either r or theta is equal to zero, the corresponding part of the complex number can be omitted.If the object is unable to parse the string provided then an EJclMathError exception will be raised.
See Also
About
Donator
Alexei Koudinov
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page