Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Regarding NaN
Replies: 3   Last Post: Jul 14, 2014 9:52 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
John D'Errico

Posts: 9,058
Registered: 12/7/04
Regarding NaN
Posted: Jul 13, 2014 8:31 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"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
Read Regarding NaN
SAONI
7/13/14
Read Regarding NaN
John D'Errico
7/14/14
Read Regarding NaN
SAONI
7/14/14
Read Regarding NaN
Curious

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.