CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   how to plot this function (https://www.cfd-online.com/Forums/main/15561-how-plot-function.html)

ztdep August 13, 2008 01:52

how to plot this function
 
dear friends: i have a function

sin(i*Pi*x), x=varied from 0 to 1. i want to know how to plot this function, since it include a complex number (i) regards

Markus Lummer August 13, 2008 06:41

Re: how to plot this function
 
1) You can use gnuplot. gnuplot can handle complex functions.

2) You can split the sine in real and complex part:

sin(x+iy) = sin(x)cosh(y) + i cos(x) sinh(y)

Regards, Markus


All times are GMT -4. The time now is 01:21.