Thanks Chris. One thing to note is that this would be slower than the cbrt "c" function that can be hardware optimized. But it does solve my problem. One thing I was thinking was that if a were a complex, can you take a**(1/3.0)? What is the cube root of a complex? Its been a long time since I've had to do any complex algebra? Do you think it would be worth it to add this function on those platforms that support it?

David

I just Echo'd Compute("8**(1/3.0)") and got 2.
The trick was (as always) to force the denominator to float, else you get 1.


On Tuesday, Sep 21, 2004, at 19:19 America/New_York, David Thompson wrote:

I was going to add the cbrt function to Compute, I really needed it today--so I did. Problem is, that cbrt is not available on all platforms. Anybody know of a good place to look for an algorithm for cbrt that could be included in OpenDX?

David
--
.............................................................................
David L. Thompson                   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]    5515 Skyway Drive, Missoula, MT 59804
                                    Phone : (406)756-7472


_______________________________
Chris Pelkie
Scientific Visualization Producer
622 Rhodes Hall, Cornell Theory Center
Ithaca, NY 14853


--
.............................................................................
David L. Thompson                   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]    5515 Skyway Drive, Missoula, MT 59804
                                    Phone : (406)756-7472

Reply via email to