Difference between revisions of "Complex"
From Mesham
Jump to navigationJump to searchm |
m (4 revisions imported) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
#include <maths> | #include <maths> | ||
− | var a:complex; | + | |
− | + | function void main() { | |
− | + | var a:complex; | |
+ | a.i:=19.65; | ||
+ | a.r:=23.44; | ||
+ | }; | ||
''Since: Version 1.0'' | ''Since: Version 1.0'' |
Latest revision as of 15:44, 15 April 2019
Overview
The complex type variable is defined within the mathematical library to represent a complex number with real and imaginary components. This is built from a record type with both components as doubles.
Example
#include <maths> function void main() { var a:complex; a.i:=19.65; a.r:=23.44; };
Since: Version 1.0