comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » cubic root
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
cubic root [message #83966] Tue, 16 April 2013 08:08 Go to previous message
fd_luni is currently offline  fd_luni
Messages: 66
Registered: January 2013
Member
Hi all

I have a question about cubic roots. The cubic roots of a negative number there exists. The cubir root of -1 is -1, 0f -2 is -1.25 and so on why when I typed in IDL to calculate the cubic root of a negative value it print out NaN which means Not a Number?

E.g. I typed: (-1)^1.0/3 and it prints out NaN

Is there any way to fixed it and don't get NaNs but get the actual value?

Best Wishes
Maria
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: nearest node of Delauny tesselation
Next Topic: How to calculate the slope of a line in a graph ?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:30:10 PDT 2025

Total time taken to generate the page: 0.00448 seconds