How to calc the cube root in ICE?

Discussions about SOFTIMAGEs© Interactive Creative Environment©
Pancho
Posts: 659
Joined: 19 Sep 2010, 09:28

How to calc the cube root in ICE?

Post by Pancho » 12 Oct 2012, 14:59

Mmmh, nothing more to add. Not the square root, but the cube root is need.

Cheers

Pancho
Posts: 659
Joined: 19 Sep 2010, 09:28

Re: How to calc the cube root in ICE?

Post by Pancho » 12 Oct 2012, 15:06

Guess I found it myself. Use exponent and use 1/3 as the power.

User avatar
Daniel Brassard
Posts: 878
Joined: 18 Mar 2010, 22:38
Location: St. Thomas, Ontario

Re: How to calc the cube root in ICE?

Post by Daniel Brassard » 12 Oct 2012, 18:53

Correct!

Word of advice, for very small number approaching zero, test the main number x against a tolerance number say 0.0001 and skip the exponent operation all together by forcing the result to equal zero! You will save some computer cycle.

Dan
$ifndef "Softimage"
set "Softimage" "true"
$endif