|
Hi
What math functions are available under legOS? I can get the usual +-/ and *
to work, but not powers or square roots. Are these math functions available
and what others e.g. sine, cosine etc?
I thought it would be standard C stuff like pow and sqrt, but they don't
appear to work and I can't find a header file with any math functions in.
Not that I like the stuff or anything ;-)just need to use it.
Thanks
Mike
|
|
Message has 2 Replies: | | Re: Math
|
| (...) Most math functions aren't available. They would require so much computing power, and so few people would use them, that they probably aren't worth the code space in the kernel. You could probably find some sample implementations of pow and (...) (24 years ago, 12-Nov-00, to lugnet.robotics.rcx.legos)
| | | Re: Math
|
| Mike, You may have to look at writing your own. I know there's a libmint (integer math) library, but I'm currently at work, and can't check what else is there. Maybe need a libm to put all math functins in?? ROSCO mike mcfarlane (...) (24 years ago, 12-Nov-00, to lugnet.robotics.rcx.legos)
|
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|