the values are being sent to the arduino. i will have a look at <complex.h> and <math.h>. thanks a lot.Just the real and imaginary numbers being printed to the screen? Or being streamed to something else?
Are you familiar with the <complex.h> and <math.h> headers in C?
#include <stdio.h>
#include <math.h>
#include <complex.h>
int main(void)
{
const double pi = acos(-1.0);
for(double t = 0.0; t <= 2*pi; t += 0.01)
{
double complex z = t * I;
double complex f = cexp(z);
printf("%.2f%+.2fi\n", creal(f), cimag(f));
}
return 0;
}
#undef I
#define j _Complex_I
by Jake Hertz
by Aaron Carman
by Jake Hertz