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: Regarding NaN
Replies: 3   Last Post: Jul 14, 2014 9:52 AM

 Messages: [ Previous | Next ]
 John D'Errico Posts: 9,130 Registered: 12/7/04
Regarding NaN
Posted: Jul 13, 2014 8:31 PM

"BS" wrote in message <lpuav6\$pir\$1@newscl01ah.mathworks.com>...
> Hi,
>
> I have been trying to solve an equation as underneath:
>
> syms m n s r
> z = (4*(-1)^((m+n-2)/2)*sin(m*pi*(2e-6)/2*(140e-6))*sin(m*pi*(2e-6)/2*(140e-6))*(symsum(symsum(cos(m*pi*s/(140e-6)), s, (-(23-1)/2), ((23-1)/2)), m, 1, Inf))*(symsum(symsum(cos(n*pi*r/(140e-6)), r, (-(23-1)/2), ((23-1)/2)), n, 1, Inf)));
> z0 = vpa(z, 10)
>
> which produces the result " NaN" i.e. not a number.
>
> Could anyone help me how to convert this to a value

It is NOT a value. It is a NaN, that is, Not A Number.

What is 0/0? NaN.

You can't make it into a number.

John

Date Subject Author
7/13/14 SAONI
7/13/14 John D'Errico
7/14/14 SAONI
7/14/14 Curious