You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
563 B

#include <stdio.h>
#include <config.h>
#include <memory.h>
#include <dvec.h>
#include <complex.h>
#include "cmath.h"
#include "cmath1.h"
FILE *cp_err;
int
main(void)
{
ngcomplex_t *c = NULL;
ngcomplex_t *d = NULL;
short int t1;
short int t2;
int n1;
int n2;
cp_err = stderr;
n1 = 1;
t1 = VF_COMPLEX;
c = alloc_c(n1);
realpart(&c[0]) = .0;
imagpart(&c[0]) = 1.0;
d = (ngcomplex_t *) cx_j((void *) c, t1, n1, &n2, &t2);
if (realpart(&d[0]) == -1 && imagpart(&d[0]) == 0)
return 0;
else
return 1;
}