
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+n2)/2)*sin(m*pi*(2e6)/2*(140e6))*sin(m*pi*(2e6)/2*(140e6))*(symsum(symsum(cos(m*pi*s/(140e6)), s, ((231)/2), ((231)/2)), m, 1, Inf))*(symsum(symsum(cos(n*pi*r/(140e6)), r, ((231)/2), ((231)/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

