On 11.10.12 15:02, Rok mr wrote: > Hi, > I would like to use erf function for complex numbers. Where complex number contain symbol > example: > > sig=any real number > syms w > z=sig+i*w > e=erf(z) > (return: Complex number with symbol w) > > Any hints how to solve this problem?
I'm not sure what the ?problem? is.
>> sig = 2; >> syms w >> z=sig+i*w
w*i + 2
erf(w*i + 2)
>> subs(e, w, 2)
erf(2 + 2*i)
>> double(subs(e, w, 2))
1.1513 + 0.1273i
Behaves exactly as I would have expected. (Tested in R2012a.)