complex numebrs

Dear Sir/madam

I would like to write a new function, for data fitting, which contains exponents e.g. exp(ikx). How can I write this? I couldn't find the operator for the i.

Is there any suggestion for that?

Thank you in advanced,

Giannis
For exp(ikx) you could do:
exp(cmplx(0, k * x))


BUT, please take note, the data fitting is set up for real dependent variables, not complex dependent variables. To do that you have to apply a bit of jiggery-pokery.