1.40: code for natural logarithm and e^x exponential funct
Author
Message
Ford Prefect
Senior Roboticist
Joined: Sat Mar 01, 2008 12:52 pm Posts: 936 Location: a small planet in the vicinity of Beteigeuze
1.40: code for natural logarithm and e^x exponential funct
hi, I'm not sure what RobotC really does or how to do this (although I strongly hope it's like the standard C commands do...)
what is the correct RobotC code to obtain - the natural logarithm ln(x) - the e^x exponential function (2,718..^x)
_________________ Ford Prefect
Never purchase release 1.x ! (ancient programmer's wisdom) "Don't argue with idiots. They'll drag you down to their level and then beat you with experience."
Wed Aug 13, 2008 5:07 am
Dick Swan
Creator
Joined: Fri Feb 09, 2007 9:21 am Posts: 613
Re: 1.40: code for natural logarithm and e^x exponential funct
ROBOTC firmware simply calls the standard C library functions for this with identical parameter.
Read up on these functions in a standard C programming text.
Wed Aug 13, 2008 9:10 am
Ford Prefect
Senior Roboticist
Joined: Sat Mar 01, 2008 12:52 pm Posts: 936 Location: a small planet in the vicinity of Beteigeuze
Re: 1.40: code for natural logarithm and e^x exponential funct
thx, then everything is fine. exp(x)=e^x, and log(x) is ln(x)
_________________ Ford Prefect
Never purchase release 1.x ! (ancient programmer's wisdom) "Don't argue with idiots. They'll drag you down to their level and then beat you with experience."
Users browsing this forum: No registered users and 4 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum