Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: complex error function and syms
Replies: 1   Last Post: Nov 26, 2012 10:30 AM

 Messages: [ Previous | Next ]
 Christopher Creutzig Posts: 323 Registered: 2/24/09
Re: complex error function and syms
Posted: Nov 26, 2012 10:30 AM

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

z =

w*i + 2

>> e=erf(z)

e =

erf(w*i + 2)

>> subs(e, w, 2)

ans =

erf(2 + 2*i)

>> double(subs(e, w, 2))

ans =

1.1513 + 0.1273i

Behaves exactly as I would have expected. (Tested in R2012a.)

Christopher

Date Subject Author
10/11/12 Rok mr
11/26/12 Christopher Creutzig