C# Programming
07-20-2009, 07:52 AM
Hello everyone,
I ran into a bit of an issue with Math.Pow() today while doing some work with cubic equations. The cubic root of a real negative number, is a real negative number, correct? For some reason, when X is a negative value, Math.Pow(X, (double)1/3) returns NaN instead of a negative real number.
Hopefully I'm not forgetting something...
Any help would be appreciated, thanks.
I ran into a bit of an issue with Math.Pow() today while doing some work with cubic equations. The cubic root of a real negative number, is a real negative number, correct? For some reason, when X is a negative value, Math.Pow(X, (double)1/3) returns NaN instead of a negative real number.
Hopefully I'm not forgetting something...
Any help would be appreciated, thanks.