diff options
author | jofret | 2006-12-01 15:37:45 +0000 |
---|---|---|
committer | jofret | 2006-12-01 15:37:45 +0000 |
commit | 06da3df2ff648931ce65ed91bf516062828b2354 (patch) | |
tree | c25340cd9bc5b38130cc835751e9ccf9ac7d61ff /src/type/testDoubleComplex.c | |
parent | b1c30f678966e6a6edc97b6012a5e89a36a8873f (diff) | |
download | scilab2c-06da3df2ff648931ce65ed91bf516062828b2354.tar.gz scilab2c-06da3df2ff648931ce65ed91bf516062828b2354.tar.bz2 scilab2c-06da3df2ff648931ce65ed91bf516062828b2354.zip |
Quite a good DouComplex lib...
Will probably be improved later...
Diffstat (limited to 'src/type/testDoubleComplex.c')
-rw-r--r-- | src/type/testDoubleComplex.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/type/testDoubleComplex.c b/src/type/testDoubleComplex.c new file mode 100644 index 00000000..0372c93a --- /dev/null +++ b/src/type/testDoubleComplex.c @@ -0,0 +1,23 @@ +/* +** -*- C -*- +** +** main.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Nov 30 16:59:04 2006 jofret +** Last update Thu Nov 30 17:55:50 2006 jofret +** +** Copyright INRIA 2006 +*/ + +#include <stdio.h> + +#include "doubleComplex.h" + +int main(int argc, char **argv) { + /* z = 1 + %i */ + doubleComplex z = DoubleComplex(-3,25); + printf("Partie reelle = %f\n", real(z)); + printf("Partie imaginaire = %f\n", imag(z)); + return 0; +} |