forked from project-jedi/jcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathComplex.dtx
1405 lines (1405 loc) · 56.7 KB
/
Complex.dtx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@@MathRoutines.Complexnumbers
<GROUP MathRoutines>
<TITLE Complex numbers>
<TOPICORDER 100>
--------------------------------------------------------------------------------
@@MathRoutines.Complexnumbers.TJclComplex
<GROUP MathRoutines.Complexnumbers>
<TITLE TJclComplex>
<TOPICORDER 100>
--------------------------------------------------------------------------------
@@TJclComplex
<GROUP MathRoutines.Complexnumbers.TJclComplex>
Summary:
TJclComplex implements various operations with complex numbers.
Description:
TJclComplex is designated to provide complex numbers computations for your
applications. It supports both rectangular and polar number representations.
All the operations are divided into groups as follows:
* basic arithmetics;
* natural logarithmic and exponential functions;
* trigonometric functions;
* hyperbolic trigonometric functions;
* complex Bessel functions;
* various miscellaneous routines.
All the methods could be used in two ways. Firstly you can use the methods
with the prefix "C", like CAdd or CLn to perform the operation over the
object itself, i.e. after using such methods the value of the object itself
will be changed. Using these methods gives you the opportunity to use quite a
convenient method of coding the sequential calculations like this:
MyComplex.Add(4,3).Mul(2,5).Ln.AsString;
The other way is two use the subset of methods with "CNew" prefix. They do the
same computations but as the result they create a new object of TComplex type.
It might be useful in situations when you'd like to remain your object intact
and get the result in a separate object. Please note that such an approach
requires a very attentive coding style when you need to destroy every object
after every "CNew*" method invocation.
Donator:
Alexei Koudinov
--------------------------------------------------------------------------------
@@TComplexKind
<GROUP MathRoutines.Complexnumbers>
Summary:
Enumeration specifies the way of representing a complex number using either rectangular representation or polar coordinates.
Description:
Enumeration specifies the way of representing a complex number using either rectangular representation or polar coordinates.
Donator: Alexei Koudinov
@@TComplexKind.crRectangular
The parameters specified in a constructor or any other method are of the rectangular representation.
@@TComplexKind.crPolar
The parameters specified in a constructor or any other method represent the number in polar coordinates.
--------------------------------------------------------------------------------
@@TJclComplex.FracLength
Summary:
Determines the precision used in formatting the value of the complex number.
Description:
Use FracLength to set the number of digits beyond the decimal point that
the value should be formatted to before rounding begins. FracLength affects
the format of the floating-point value when it is displayed using properties AsString or AsPolarString,
not the actual floating-point
value that is stored in the complex number structures.
The default value of FracLength is 8 decimal places.
Notes:
FracLength must be less or equal to 18. Trying to set FracLength to a value greater than 18 changes the value of FracLength to 18.
Donator:
Alexei Koudinov
--------------------------------------------------------------------------------
@@TJclComplex.Create
Summary:
Creates a new TComplex object.
Description:
Call Create to construct a complex number object either equal to (0,0) or
filled with the values provided in X and Y parameters.
Parameters:
X - The real part in the rectangular representation or radius in polar coordinates.
Y - The imaginary part in the rectangular representation or angle (in grads) in polar coordinates.
ComplexType - Optional. Represents the type of the complex number to be create.
Notes:
All the calculations with complex numbers are performed with their rectangular representation members, except those that requires polar coordinates instead like exponential functions for instance.
The results of the calculations as well as the value of the complex number itself might be obtained in either rectangular or polar representation at any time using AsString or AsPolarString respectively.
See also:
TComplexKind
Donator:
Alexei Koudinov
--------------------------------------------------------------------------------
@@TJclComplex.RealPart
Summary:
Specifies the value of the real part of the complex number i.e. X value in the pair of (X;Y).
Description:
Use RealPart property to obtain the value of the real part of the
complex number i.e. X value in the pair of (X;Y).
See also:
ImaginaryPart
Radius
Angle
Donator:
Alexei Koudinov
--------------------------------------------------------------------------------
@@TJclComplex.ImaginaryPart
Summary:
Specifies the value of the imaginary part of the complex number i.e. Y value in the pair of (X;Y).
Description:
Use ImaginaryPart property to obtain the value of the imaginary part of the
complex number i.e. Y value in the pair of (X;Y).
See also:
RealPart
Radius
Angle
Donator:
Alexei Koudinov
--------------------------------------------------------------------------------
@@TJclComplex.Radius
Summary:
Specifies the value of the radius in polar coordinates representation i.e. r value in the pair of (r;theta).
Description:
Use Radius property to obtain the value of the radius in polar coordinates
representation of the complex number, i.e. r value in the pair of (r;theta).
See also:
RealPart
ImaginaryPart
Angle
Donator:
Alexei Koudinov
--------------------------------------------------------------------------------
@@TJclComplex.Angle
Summary:
Specifies the value of the angle in polar coordinates representation of the complex number, i.e. theta value in the pair of (r;theta).
Description:
Use Angle property to obtain the value of the angle in polar coordinates
representation of the complex number, i.e. theta value in the pair of (r;theta).
See also:
RealPart
ImaginaryPart
Radius
Donator:
Alexei Koudinov
--------------------------------------------------------------------------------
@@TJclComplex.AsString
Summary:
AsString converts the value of the complex number to a string.
Description:
Use AsString property to obtain a string representation of the complex number
formatted according to the canonical form of complex numbers in rectangular
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-3.60i
Also you might use this property to assign the value of a
string to the complex number object like this:<p align=center>
MyComplex.AsString := '-5.3453-3.543i' The string provided should represent
a complex number in its canonical rectangular form like this: x+yi, where
x and y are either positive or negative or zero floating values and i is the
constant text part. If either x or y 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:
AsPolarString
FracLength
Donator:
Alexei Koudinov
--------------------------------------------------------------------------------
@@TJclComplex.AsPolarString
Summary:
AsPolarString converts the value of the complex number to a string with a pair of complex number's polar coordinates.
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:
AsString
FracLength
Donator:
Alexei Koudinov
--------------------------------------------------------------------------------
@@TJclComplex.Assign
Summary:
Assign the value of (X;Y) to the complex number object using ComplexType representation.
Description:
Use Assign method to set the value of your complex number object to (X;Y). ComplexType
parameter is used to determine whether floating-point parameters represents (X;Y)
or (r;theta) pair of values.
Parameters:
X - The real part in the rectangular representation or radius in polar coordinates.
Y - The imaginary part in the rectangular representation or angle (in grads) in polar coordinates.
ComplexType - Optional. Represents the type of the floating-point parameters above.
Result:
Method Assign returns the complex number object itself.
Notes:
To assign a complex number the value of zero use AssignZero method instead.
To assign a complex number the value of 1 ("complex unit") use AssignOne method instead.
See also:
TComplexKind
AssignZero
AssignOne
Donator:
Alexei Koudinov
--------------------------------------------------------------------------------
@@TJclComplex.AssignOne
Summary:
Assign the value of (1;0) to the complex number object.
Description:
Use AssingOne method to set the value of your complex number object to 1
("complex unit"). The call to AssignOne is equal to the following: Assign(1, 0).
Result:
Method AssingOne returns the complex number object itself.
Notes:
To assign a complex number the value of zero use AssignZero method instead.
To assign a complex number any value that differs from 1 or 0 use Assign method instead.
See also:
TComplexKind
Assign
AssignZero
Donator:
Alexei Koudinov
--------------------------------------------------------------------------------
@@TJclComplex.AssignZero
Summary:
Assign the value of (0;0) to the complex number object.
Description:
Use AssingOne method to set the value of your complex number object to zero
The call to AssignZero is equal to the following: Assign(0, 0). Also if you
call the constructor Create omitting the parameters this method
will be invoked automatically.
Result:
Method AssingZero returns the complex number object itself.
Notes:
To assign a complex number the value of 1 ("complex unit") use AssignOne method instead.
To assign a complex number any value that differs from 1 or 0 use Assign method instead.
See also:
Create
TComplexKind
Assign
AssignOne
Donator:
Alexei Koudinov
--------------------------------------------------------------------------------
@@TJclComplex.Duplicate
Summary:
Creates a new object of TJclComplex type and assigns the value of the calling object to it.
Description:
Use Duplicate method to create a new object of TJclComplex type and assign
the value of the calling object to it.
Result:
Method Duplicate returns the newly created complex number object.
Donator:
Alexei Koudinov
--------------------------------------------------------------------------------
@@TJclComplex.CAdd
Summary:
Adds the value given by AddValue or X and Y parameters to the value of the current complex number object.
Description:
Use CAdd method to add the value of the complex number provided to the
value of the calling object itself. The complex number to be added could be
set either as an object of TJclComplex type or a pair of its values (X;Y).
Parameters:
AddValue - The complex number that should be added to the value of the object.
X - The real part in the rectangular representation or radius in polar coordinates of the complex number that should be added to the value of the object.
Y - The imaginary part in the rectangular representation or angle in polar coordinates of the complex number that should be added to the value of the object.
ComplexType - Optional. Defines whether X and Y parameters are stated in rectangular representation or in polar coordinates.
Result:
Method CAdd returns the calling object with the changed value.
Notes:
The addition of the complex numbers is performed according to the following formula: (X<sub>1</sub>;Y<sub>1</sub>) + (X<sub>2</sub>;Y<sub>2</sub>) = (X<sub>1</sub>+X<sub>2</sub>;Y<sub>1</sub>+Y<sub>2</sub>).
For leaving the value of the calling object intact use CNewAdd method to create a new resulting object of TJclComplex type.
See also:
CNewAdd
TJclComplex
TComplexKind
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CDiv
Summary:
Divide the value of the current complex number object by the value given by DivValue or X and Y parameters.
Description:
Use CDiv method to perform a division operation where the current complex
number object is a numerator and the value provided through either X and Y
or DivValue parameters is a denominator. The complex number to be divided by could be
set either as an object of TJclComplex type or a pair of its values (X;Y).
Parameters:
DivValue - The complex number that is the denominator for the operation.
X - The real part in the rectangular representation or radius in polar coordinates of the complex number that is the denominator for the operation.
Y - The imaginary part in the rectangular representation or angle in polar coordinates of the complex number that is the denominator for the operation.
ComplexType - Optional. Defines whether X and Y parameters are stated in rectangular representation or in polar coordinates.
Result:
Method CDiv returns the calling object with the changed value.
Notes:
The division of the complex numbers is performed according to the following formula: (X<sub>1</sub>;Y<sub>1</sub>) / (X<sub>2</sub>;Y<sub>2</sub>) = [(X<sub>1</sub> *X<sub>2</sub>+Y<sub>1</sub>*Y<sub>2</sub>)/(X<sub>2</sub><sup>2</sup>+Y<sub>2</sub><sup>2</sup>); (Y<sub>1</sub>*X<sub>2</sub>-X<sub>1</sub>*Y<sub>2</sub>)/ (X<sub>2</sub><sup>2</sup>+Y<sub>2</sub><sup>2</sup>)].
For leaving the value of the calling object intact use CNewDiv method to create a new resulting object of TJclComplex type.
See also:
CNewDiv
TJclComplex
TComplexKind
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CMul
Summary:
Multiply the value of the current complex number object by the value given by MulValue or X and Y parameters.
Description:
Use CMul method to perform a multiplication operation where the current complex
number object is the first and the value provided through either X and Y
or DivValue parameters is the second multiplier. The complex number to be
multiplied by could be set either as an object of TJclComplex type or a pair
of its values (X;Y).
Parameters:
MulValue - The complex number that is the second multiplier.
X - The real part in the rectangular representation or radius in polar coordinates of the complex number that is the second multiplier.
Y - The imaginary part in the rectangular representation or angle in polar coordinates of the complex number that is the second multiplier.
ComplexType - Optional. Defines whether X and Y parameters are stated in rectangular representation or in polar coordinates.
Result:
Method CMul returns the calling object with the changed value.
Notes:
The multiplication of the complex numbers is performed according to the following formula: (X<sub>1</sub>;Y<sub>1</sub>) * (X<sub>2</sub>;Y<sub>2</sub>) = (X<sub>1</sub> *X<sub>2</sub>-Y<sub>1</sub>*Y<sub>2</sub>; X<sub>1</sub>*Y<sub>2</sub>+Y<sub>1</sub>*X<sub>2</sub>).
Note that for complex numbers the operations Z<sub>1</sub>*Z<sub>2</sub> and Z<sub>2</sub>*Z<sub>1</sub> give different results and cannot substitute each other.
For leaving the value of the calling object intact use CNewMul method to create a new resulting object of TJclComplex type.
See also:
CNewMul
TJclComplex
TComplexKind
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CSub
Summary:
Subtract the value given by MulValue or X and Y parameters from the value of the current complex number object.
Description:
Use CSub method to perform a subtraction operation where the current complex
number object is the minuend and the value provided through either X and Y
or DivValue parameters is the subtrahend. The complex number to be
subtracted could be set either as an object of TJclComplex type or a pair
of its values (X;Y).
Parameters:
SubValue - The complex number that is the subtrahend.
X - The real part in the rectangular representation or radius in polar coordinates of the complex number that is the subtrahend.
Y - The imaginary part in the rectangular representation or angle in polar coordinates of the complex number that is the subtrahend.
ComplexType - Optional. Defines whether X and Y parameters are stated in rectangular representation or in polar coordinates.
Result:
Method CSub returns the calling object with the changed value.
Notes:
The subtraction of the complex numbers is performed according to the following formula: (X<sub>1</sub>;Y<sub>1</sub>) - (X<sub>2</sub>;Y<sub>2</sub>) = (X<sub>1</sub>-X<sub>2</sub>;Y<sub>1</sub>-Y<sub>2</sub>).
For leaving the value of the calling object intact use CNewSub method to create a new resulting object of TJclComplex type.
See also:
CNewSub
TJclComplex
TComplexKind
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CNewAdd
Summary:
Adds the value given by AddValue or X and Y parameters to the value of the current complex number object and creates a new resulting object of TJclComplex type.
Description:
Use CNewAdd method to add the value of the complex number provided to the
value of the calling object and to create a new resulting object of
TJclComplex type. The complex number to be added could be
set either as an object of TJclComplex type or a pair of its values (X;Y).
Parameters:
AddValue - The complex number that should be added to the value of the object.
X - The real part in the rectangular representation or radius in polar coordinates of the complex number that should be added to the value of the object.
Y - The imaginary part in the rectangular representation or angle in polar coordinates of the complex number that should be added to the value of the object.
ComplexType - Optional. Defines whether X and Y parameters are stated in rectangular representation or in polar coordinates.
Result:
Method CNewAdd returns a newly created object of TJclComplex type that contains
the value of the addition.
Notes:
The addition of the complex numbers is performed according to the following formula: (X<sub>1</sub>;Y<sub>1</sub>) + (X<sub>2</sub>;Y<sub>2</sub>) = (X<sub>1</sub>+X<sub>2</sub>;Y<sub>1</sub>+Y<sub>2</sub>).
For changing the value of the calling object instead of creating a new object of TJclComplex type use CAdd method.
See also:
CAdd
TJclComplex
TComplexKind
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CNewDiv
Summary:
Divides the value of the current complex number object by the value given by DivValue or X and Y parameters and creates a new resulting object of TJclComplex type.
Description:
Use CNewDiv method to perform a division operation where the current complex
number object is a numerator and the value provided through either X and Y
or DivValue parameters is a denominator and to create a resulting object of
TJclComplex type. The complex number to be divided by could be
set either as an object of TJclComplex type or a pair of its values (X;Y).
Parameters:
DivValue - The complex number that is the denominator for the operation.
X - The real part in the rectangular representation or radius in polar coordinates of the complex number that is the denominator for the operation.
Y - The imaginary part in the rectangular representation or angle in polar coordinates of the complex number that is the denominator for the operation.
ComplexType - Optional. Defines whether X and Y parameters are stated in rectangular representation or in polar coordinates.
Result:
Method CNewDiv returns a newly created object of TJclComplex type that contains
the value of the division.
Notes:
The division of the complex numbers is performed according to the following formula: (X<sub>1</sub>;Y<sub>1</sub>) / (X<sub>2</sub>;Y<sub>2</sub>) = [(X<sub>1</sub> *X<sub>2</sub>+Y<sub>1</sub>*Y<sub>2</sub>)/(X<sub>2</sub><sup>2</sup>+Y<sub>2</sub><sup>2</sup>); (Y<sub>1</sub>*X<sub>2</sub>-X<sub>1</sub>*Y<sub>2</sub>)/ (X<sub>2</sub><sup>2</sup>+Y<sub>2</sub><sup>2</sup>)].
For changing the value of the calling object instead of creating a resulting object of TJclComplex type use CDiv method.
See also:
CDiv
TJclComplex
TComplexKind
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CNewMul
Summary:
Multiplies the value of the current complex number object by the value given by MulValue or X and Y parameters and creates a new resulting object of TJclComplex type.
Description:
Use CNewMul method to perform a multiplication operation where the current complex
number object is the first and the value provided through either X and Y
or DivValue parameters is the second multiplier and to create a resulting object of
TJclComplex type. The complex number to be multiplied by could be set either as
an object of TJclComplex type or a pair of its values (X;Y).
Parameters:
MulValue - The complex number that is the second multiplier.
X - The real part in the rectangular representation or radius in polar coordinates of the complex number that is the second multiplier.
Y - The imaginary part in the rectangular representation or angle in polar coordinates of the complex number that is the second multiplier.
ComplexType - Optional. Defines whether X and Y parameters are stated in rectangular representation or in polar coordinates.
Result:
Method CNewMul returns a newly created object of TJclComplex type that contains
the value of the multiplication.
Notes:
The multiplication of the complex numbers is performed according to the following formula: (X<sub>1</sub>;Y<sub>1</sub>) * (X<sub>2</sub>;Y<sub>2</sub>) = (X<sub>1</sub> *X<sub>2</sub>-Y<sub>1</sub>*Y<sub>2</sub>; X<sub>1</sub>*Y<sub>2</sub>+Y<sub>1</sub>*X<sub>2</sub>).
Note that for complex numbers the operations Z<sub>1</sub>*Z<sub>2</sub> and Z<sub>2</sub>*Z<sub>1</sub> give different results and cannot substitute each other.
For changing the value of the calling object instead of creating a resulting object of TJclComplex type use CMul method.
See also:
CMul
TJclComplex
TComplexKind
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CNewSub
Summary:
Subtracts the value given by MulValue or X and Y parameters from the value of the current complex number object and creates a new resulting object of TJclComplex type.
Description:
Use CNewSub method to perform a subtraction operation where the current complex
number object is the minuend and the value provided through either X and Y
or DivValue parameters is the subtrahend and to create a resulting object of
TJclComplex type. The complex number to be subtracted could be set either as
an object of TJclComplex type or a pair of its values (X;Y).
Parameters:
SubValue - The complex number that is the subtrahend.
X - The real part in the rectangular representation or radius in polar coordinates of the complex number that is the subtrahend.
Y - The imaginary part in the rectangular representation or angle in polar coordinates of the complex number that is the subtrahend.
ComplexType - Optional. Defines whether X and Y parameters are stated in rectangular representation or in polar coordinates.
Result:
Method CNewSub returns a newly created object of TJclComplex type that contains
the value of the subtraction.
Notes:
The subtraction of the complex numbers is performed according to the following formula: (X<sub>1</sub>;Y<sub>1</sub>) - (X<sub>2</sub>;Y<sub>2</sub>) = (X<sub>1</sub>-X<sub>2</sub>;Y<sub>1</sub>-Y<sub>2</sub>).
For changing the value of the calling object instead of creating a resulting object of TJclComplex type use CSub method.
See also:
CSub
TJclComplex
TComplexKind
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CNeg
Summary:
Multiply the current value of the complex number object by a complex negative one.
Description:
Use CNeg method to perform a negative transformation of the value of the current complex
number object i.e. to multiply it by a complex negative one. The method changes
the value of the current object, returning its reference.
Result:
Method CNeg returns the calling object with the changed value.
Notes:
For creating a new resulting complex number object instead of changing the value of the current one use CNewNeg method.
See also:
CNewNeg
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CNewNeg
Summary:
Multiplies the current value of the complex number object by a complex negative one and creates a new resulting complex number object.
Description:
Use CNewNeg method to perform a negative transformation of the value of the current complex
number object i.e. to multiply it by a complex negative one and create a new resulting
object of TJclComplex type.
Result:
Method CNewNeg returns a newly created object of TJclComplex type that contains
the value of the negation.
Notes:
For changing the value of the calling complex number object instead of creating a new one use CNeg method.
See also:
CNeg
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CConjugate
Summary:
Transform the value of the calling object of TJclComplex type into a conjugated complex number value.
Description:
Use CConjugate method to obtain a conjugate to the current value of the complex number object
complex number. The method changes the value of the current object, returning its reference.
Result:
Method CConjugate returns the calling object with the changed value.
Notes:
For creating a new resulting complex number object instead of changing the value of the current one use CNewConjugate method.
See also:
CNewConjugate
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CNewConjugate
Summary:
Transforms the value of the calling object of TJclComplex type into a conjugated complex number value and creates a new resulting complex number object.
Description:
Use CNewConjugate method to obtain a conjugate to the current value of the complex number object
complex number.
Result:
Method CNewConjugate returns a newly created object of TJclComplex type that contains
the value computed.
Notes:
For changing the value of the calling complex number object instead of creating a new one use CNewConjugate method.
See also:
CConjugate
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CLn
Summary:
Evaluates the natural logarithm of the value of the current complex number object.
Description:
Use CLn method to evaluate the natural logarithm of the value of the current
complex number object and change the value of the object accordingly.
Result:
Method CLn returns the calling object with the changed value.
Notes:
Complex number natural logarithm is evaluated according to the following formula: Ln(Z) = (Ln(r); theta), where Z = (r; theta). Please note that the calculation is performed using polar coordinates and all the transformations between rectangular and polar coordinates are performed automatically.
For creating a new resulting complex number object instead of changing the value of the current one use CNewLn method.
See also:
CNewLn
CExp
CPwr
CIntPwr
CRealPwr
CRoot
CSqrt
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CNewLn
Summary:
Evaluates the natural logarithm of the value of the current complex number object and creates a new resulting complex number object.
Description:
Use CNewLn method to evaluate the natural logarithm of the value of the current
complex number object and get a new resulting object of TJclComplex type.
Result:
Method CNewLn returns a newly created object of TJclComplex type that contains
the value computed.
Notes:
Complex number natural logarithm is evaluated according to the following formula: Ln(Z) = (Ln(r); theta), where Z = (r; theta). Please note that the calculation is performed using polar coordinates and all the transformations between rectangular and polar coordinates are performed automatically.
For changing the value of the calling object instead of creating a new resulting object use CLn method.
See also:
CLn
CExp
CPwr
CIntPwr
CRealPwr
CRoot
CSqrt
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CExp
Summary:
Evaluates the exponential curve for the value of the current complex number object.
Description:
Use CExp method to evaluate the exponential curve for the value of the current
complex number object and change the value of the object accordingly.
Result:
Method CExp returns the calling object with the changed value.
Notes:
Complex number exponential curve is evaluated according to the following formula: Exp(Z) = [Exp(x)*Cos(y); Exp(x)*Sin(y)], where Z = (x; y).
For creating a new resulting complex number object instead of changing the value of the current one use CNewExp method.
See also:
CNewExp
CLn
CPwr
CIntPwr
CRealPwr
CRoot
CSqrt
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CNewExp
Summary:
Evaluates the exponential curve for the value of the current complex number object and creates a new resulting complex number object.
Description:
Use CNewExp method to evaluate the exponential curve for the value of the current
complex number object and get a new resulting object of TJclComplex type.
Result:
Method CNewExp returns a newly created object of TJclComplex type that contains
the value computed.
Notes:
Complex number exponential curve is evaluated according to the following formula: Exp(Z) = [Exp(x)*Cos(y); Exp(x)*Sin(y)], where Z = (x; y).
For changing the value of the calling object instead of creating a new resulting object use CExp method.
See also:
CNewExp
CLn
CPwr
CIntPwr
CRealPwr
CRoot
CSqrt
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CPwr
Summary:
Raise the value of the current complex number object to the PwrValue power.
Description:
Use CPwr method to raise the value of the current complex number object to the
PwrValue power and change the value of the object accordingly. The complex number
that is the exponent for the operation is set either as an object of TJclComplex
type or as a pair of its values (X;Y).
Parameters:
PwrValue - The complex number that is the exponent for the operation.
X - The real part in the rectangular representation or radius in polar coordinates of the complex number that is the exponent for the operation.
Y - The imaginary part in the rectangular representation or angle in polar coordinates of the complex number that is the exponent for the operation.
ComplexType - Optional. Defines whether X and Y parameters are stated in rectangular representation or in polar coordinates.
Result:
Method CPwr returns the calling object with the changed value.
Notes:
For creating a new resulting complex number object instead of changing the value of the current one use CNewPwr method.
See also:
CNewPwr
CLn
CExp
CIntPwr
CRealPwr
CRoot
CSqrt
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CNewPwr
Summary:
Raises the value of the current complex number object to the PwrValue power and creates a new resulting complex number object.
Description:
Use CNewPwr method to raise the value of the current complex number object to the
PwrValue power and get a new resulting object of TJclComplex type. The complex number
that is the exponent for the operation is set either as an object of TJclComplex
type or as a pair of its values (X;Y).
Parameters:
PwrValue - The complex number that is the exponent for the operation.
X - The real part in the rectangular representation or radius in polar coordinates of the complex number that is the exponent for the operation.
Y - The imaginary part in the rectangular representation or angle in polar coordinates of the complex number that is the exponent for the operation.
ComplexType - Optional. Defines whether X and Y parameters are stated in rectangular representation or in polar coordinates.
Result:
Method CNewPwr returns a newly created object of TJclComplex type that contains
the value computed.
Notes:
For changing the value of the calling object instead of creating a new resulting object use CPwr method.
See also:
CPwr
CLn
CExp
CIntPwr
CRealPwr
CRoot
CSqrt
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CIntPwr
Summary:
Raise the value of the current complex number object to the Pwr power that is represented by an integer value.
Description:
Use CIntPwr method to raise the value of the current complex number object to the
Pwr power that is represented by an integer value and change the value of the
calling object accordingly.
Parameters:
Pwr - The exponent, that the value of the calling object should be raised to.
Result:
Method CIntPwr returns the calling object with the changed value.
Notes:
For creating a new resulting complex number object instead of changing the value of the current one use CNewIntPwr method.
See also:
CNewIntPwr
CLn
CExp
CPwr
CRealPwr
CRoot
CSqrt
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CNewIntPwr
Summary:
Raises the value of the current complex number object to the Pwr power that is represented by an integer value and creates a new resulting complex number object.
Description:
Use CNewIntPwr method to raise the value of the current complex number object to the
Pwr power that is represented by an integer value and get a new resulting object
of TJclComplex type.
Parameters:
Pwr - The exponent, that the value of the calling object should be raised to.
Result:
Method CNewIntPwr returns a newly created object of TJclComplex type that contains
the value computed.
Notes:
For changing the value of the calling object instead of creating a new resulting object use CIntPwr method.
See also:
CIntPwr
CLn
CExp
CPwr
CRealPwr
CRoot
CSqrt
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CRealPwr
Summary:
Raise the value of the current complex number object to the Pwr power that is represented by a floating-point value.
Description:
Use CRealPwr method to raise the value of the current complex number object to the
Pwr power that is represented by a floating-point value and change the value of the
calling object accordingly.
Parameters:
Pwr - The exponent, that the value of the calling object should be raised to.
Result:
Method CRealPwr returns the calling object with the changed value.
Notes:
For creating a new resulting complex number object instead of changing the value of the current one use CNewRealPwr method.
See also:
CNewRealPwr
CLn
CExp
CPwr
CIntPwr
CRoot
CSqrt
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CNewRealPwr
Summary:
Raises the value of the current complex number object to the Pwr power that is represented by a floating-point value and creates a new resulting complex number object.
Description:
Use CNewRealPwr method to raise the value of the current complex number object to the
Pwr power that is represented by a floating-point value and get a new resulting object
of TJclComplex type.
Parameters:
Pwr - The exponent, that the value of the calling object should be raised to.
Result:
Method CNewRealPwr returns a newly created object of TJclComplex type that contains
the value computed.
Notes:
For changing the value of the calling object instead of creating a new resulting object use CRealPwr method.
See also:
CRealPwr
CLn
CExp
CPwr
CIntPwr
CRoot
CSqrt
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CRoot
Summary:
Extracts the N-th root and returns the K-th root of the extraction where K is varying from 0 to N-1.
Description:
Use CRoot method to extract the N-th root from the value of the calling complex
number object, get the K-th root of the extraction, where K varies from 0 to
N-1 and change the value of the calling object accordingly.
Parameters:
K - The number of the root to be returned.
N - The value of the root to be extracted.
Result:
Method CRoot returns the calling object with the changed value.
Notes:
For creating a new resulting complex number object instead of changing the value of the current one use CNewRoot method.
See also:
CNewRoot
CLn
CExp
CPwr
CIntPwr
CRealPwr
CSqrt
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CNewRoot
Summary:
Extracts the N-th root and returns the K-th root of the extraction where K is varying from 0 to N-1 and creates a new resulting complex number object.
Description:
Use CNewRoot method to extract the N-th root from the value of the calling complex
number object, get the K-th root of the extraction, where K varies from 0 to
N-1 and get a new resulting object of TJclComplex type.
Parameters:
K - The number of the root to be returned.
N - The value of the root to be extracted.
Result:
Method CNewRoot returns a newly created object of TJclComplex type that contains
the value computed.
Notes:
For changing the value of the calling object instead of creating a new resulting object use CRoot method.
See also:
CRoot
CLn
CExp
CPwr
CIntPwr
CRealPwr
CSqrt
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CSqrt
Summary:
Extracts the second root from the value of the calling complex number object.
Description:
Use CSqrt method to extract the second root from the value of the calling complex
number object and change the value of the calling object accordingly.
Result:
Method CSqrt returns the calling object with the changed value.
Notes:
For creating a new resulting complex number object instead of changing the value of the current one use CNewSqrt method.
See also:
CNewSqrt
CLn
CExp
CPwr
CIntPwr
CRealPwr
CRoot
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CNewSqrt
Summary:
Extracts the second root from the value of the calling complex number object and creates a new resulting complex number object.
Description:
Use CNewSqrt method to extract the second root from the value of the calling complex
number object and get a new resulting object of TJclComplex type.
Result:
Method CNewSqrt returns a newly created object of TJclComplex type that contains
the value computed.
Notes:
For changing the value of the calling object instead of creating a new resulting object use CSqrt method.
See also:
CSqrt
CLn
CExp
CPwr
CIntPwr
CRealPwr
CRoot
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CCos
Summary:
Evaluates the cosine of the value of the current complex number object.
Description:
Use CCos method to evaluate the cosine of the value of the calling complex number
object and change the value of the calling object accordingly.
Result:
Method CCos returns the calling object with the changed value.
Notes:
For creating a new resulting complex number object instead of changing the value of the current one use CNewCos method.
See also:
CNewCos
CSin
CTan
CCot
CSec
CCsc
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CNewCos
Summary:
Evaluates the cosine of the value of the current complex number object and creates a new resulting complex number object.
Description:
Use CNewCos method to evaluate the cosine of the value of the calling complex number
object and get a new resulting object of TJclComplex type.
Result:
Method CNewCos returns a newly created object of TJclComplex type that contains
the value computed.
Notes:
For changing the value of the calling object instead of creating a new resulting object use CCos method.
See also:
CCos
CSin
CTan
CCot
CSec
CCsc
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CSin
Summary:
Evaluates the sine of the value of the current complex number object.
Description:
Use CSin method to evaluate the sine of the value of the calling complex number
object and change the value of the calling object accordingly.
Result:
Method CSin returns the calling object with the changed value.
Notes:
For creating a new resulting complex number object instead of changing the value of the current one use CNewSin method.
See also:
CNewSin
CCos
CTan
CCot
CSec
CCsc
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CNewSin
Summary:
Evaluates the sine of the value of the current complex number object and creates a new resulting complex number object.
Description:
Use CNewSin method to evaluate the sine of the value of the calling complex number
object and get a new resulting object of TJclComplex type.
Result:
Method CNewSin returns a newly created object of TJclComplex type that contains
the value computed.
Notes:
For changing the value of the calling object instead of creating a new resulting object use CSin method.
See also:
CSin
CCos
CTan
CCot
CSec
CCsc
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CTan
Summary:
Evaluates the tangent of the value of the current complex number object.
Description:
Use CTan method to evaluate the tangent of the value of the calling complex number
object and change the value of the calling object accordingly.
Result:
Method CTan returns the calling object with the changed value.
Notes:
For creating a new resulting complex number object instead of changing the value of the current one use CNewTan method.
See also:
CNewTan
CSin
CCos
CCot
CSec
CCsc
TJclComplex
Donator:
Earl F. Glynn
--------------------------------------------------------------------------------
@@TJclComplex.CNewTan
Summary:
Evaluates the tangent of the value of the current complex number object and creates a new resulting complex number object.