| | Math Mike McFarlane
| | | 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 (...) (24 years ago, 12-Nov-00, to lugnet.robotics.rcx.legos)
| | | | | | | | Re: Math Michael Ash
| | | | | (...) 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 Ross Crawford
| | | | | 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)
| | | | | | | | | | | | Re: Math Mike McFarlane
| | | | | I received the following comments and code from Mike Ash, whose Lugnet 'connection' appears not to be working at present. Big thanks Mike. I've yet to try it, but it looks OK in theory. (...) Most math functions aren't available. They would require (...) (24 years ago, 14-Nov-00, to lugnet.robotics.rcx.legos)
| | | | | | |