
-----------------------------------
jennil
Tue Jan 20, 2004 12:48 pm

requiring information on complex exponential function
-----------------------------------
I am currently writing a program which requries the complex exponential function.

I was told that in fortran the function cexp calculates the real and imaginary components and sort them into a complex array. There is a list of imaginary numbers and a list of real (diff for each file, but based on ints), for 1000 different frequencies.

I am curious to know whether turing has this function, and how to declare a 2D array in order to accomodate the values?

If anyone also has more information on computer programs on frequency domain heart rate variability analysis please send some my way, I'm new at this, thanks!

Jenn

-----------------------------------
AsianSensation
Tue Jan 20, 2004 8:33 pm


-----------------------------------
turing doesn't have that function, but you can easily make one for yourself.

to use a 2D array, do this:var num : array 1..10, 1..10 of realThis creates a 2D array. To call an element, do this: num (1, 2) := 4.53 To separate a complex number into real and imaginary parts, you have to do that yourself. It shouldn't be that hard.
