Grasshopper

algorithmic modeling for Rhino

The pow function contains an error.

 

If i try to raise an integer to the power 0 it just returns the integer instead of 1.

With 0.0 it works fine.

 

Daniel

Views: 393

Replies to This Discussion

Ouch... fixed. Thanks.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

There is another error.....

If you raise a negative number by the power of 0 it shoudl return -1 and not 1.

No it doesn't. Every number (with the possible exception of zero) raised to the zeroth power yields one by convention.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

ups found my mistake

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service