To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 1514
    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)
 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR