"Bo" <bo*****@yahoo.com> wrote in message
news:a7**************************@posting.google.c om...
double v = -0.17665577379401631
double f = 0.016666666666666666
Math.Pow(v, f) returns me NaN.
What should I do now?
Use different numbers? f = 1/60, so you are asking for the 60th root
of v, or, what number when multiplied by itself 60 times will equal v.
But no number can, because, as 60 is even, any number raised to the 60th
power will be positive. In fact, Math.Pow is documented as refusing to
calculate the root of any negative number. The Calculator app that comes
with Windows operates the same way.
--
Truth,
James Curran
[erstwhile VC++ MVP]
Home:
www.noveltheory.com Work:
www.njtheater.com
Blog:
www.honestillusion.com Day Job:
www.partsearch.com