Arithmetic/Complex: Difference between revisions
Content added Content deleted
(→Pascal: mention GNU Pascal Compiler support and `conjugate` function) |
|||
Line 4,044: | Line 4,044: | ||
inverse((-2.72, 0.00)) = (-0.37, -0.00) |
inverse((-2.72, 0.00)) = (-0.37, -0.00) |
||
conjugation(( 1.00, 4.00)) = ( 1.00, -4.00)</pre> |
conjugation(( 1.00, 4.00)) = ( 1.00, -4.00)</pre> |
||
The GPC, GNU Pascal Compiler, supports Extended Pascal’s <tt>complex</tt> data type and operations as shown. |
|||
Furthermore, the GPC defines a function <tt>conjugate</tt> so there is no need for writing such a custom function. |
|||
The PXSC, Pascal eXtensions for scientific computing, define a standard data type similar to [[#Free Pascal|Free Pascal’s]] <tt>ucomplex</tt> data type. |
The PXSC, Pascal eXtensions for scientific computing, define a standard data type similar to [[#Free Pascal|Free Pascal’s]] <tt>ucomplex</tt> data type. |
||