| | Maths functions Ralph Clark
|
| | I'm having trouble finding a maths header file. It's usually called "math.h". I need to do stuff like sine and cosine, and use the "abs" function to make a number positive. Does a file like this exist? Are there any plans to incorporate a maths (...) (21 years ago, 29-Aug-03, to lugnet.robotics.rcx.legos)
|
| | |
| | | | Re: Maths functions Bapt Denaeyer
|
| | | | (...) (URL) (21 years ago, 29-Aug-03, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: Maths functions Ralph Clark
|
| | | | I've posted an enhancement request on the sourceforge website for someone to write a full math.h. I would do it myself but my programming skills aren't very good. Your math.h looks like a good start. Hopefully someone will build on that. Thanks for (...) (21 years ago, 30-Aug-03, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: Maths functions Bapt Denaeyer
|
| | | | (...) What do you need more than I wrote ? nanobapt (21 years ago, 30-Aug-03, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: Maths functions Ralph Clark
|
| | | | Natural log (ln), and square root. Also useful would be x^y where x and y have fractional parts. I see you have done it with just x as a float and y as an int. This would incorporate the square root by doing x^1/2 "nanobapt" <nanobapt@wanadoo.fr> (...) (21 years ago, 30-Aug-03, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: Maths functions Bapt Denaeyer
|
| | | | (...) That's nor really difficult ... nanobapt (21 years ago, 30-Aug-03, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: Maths functions Ralph Clark
|
| | | | Make my day. "nanobapt" <nanobapt@wanadoo.fr> wrote in message news:3F50F04C.204090...adoo.fr... (...) have (...) (21 years ago, 31-Aug-03, to lugnet.robotics.rcx.legos)
|
| | | | |