Foating Point Math
rwgast_logicdesign
Posts: 1,464
Ok so I need to do floating point math in alot of my projects, especially the frequency counter I am building. I was wondering just how much is the floating point chip on here going to speed things up, and is there even a library written for it?? I mean i searched obex and just saw the float32 stuff which is the props fpu emulation correct?
Also do some other companys make a compatible float chip, TI, National, NXM, Linear tech, i.e somewhere i can request free samples. 20 bucks seems like a whole lot for something that may be only semi usefull in my situation, still nice to have the ability to crunch. I really wanted to do a graphing calc in the future so im sure eventually id need a chip for floats.
Also do some other companys make a compatible float chip, TI, National, NXM, Linear tech, i.e somewhere i can request free samples. 20 bucks seems like a whole lot for something that may be only semi usefull in my situation, still nice to have the ability to crunch. I really wanted to do a graphing calc in the future so im sure eventually id need a chip for floats.
Comments
I'm pretty sure F32 can do your floating point calculations faster than you could send data and receive an answer from the external chip.
I was pleasantly surprised to find F32 could handle all the FP IK calculations needed for the 18 servo positions of my hexapod within a servo's 20ms refresh cycle.
It might be worth considering an external chip if you wanted to use 64-bit floating point numbers. I believe cessnapilot has objects for using both the 32-bit and 64-bit floating point chips.
Bean
A good thread on F32 is here
http://forums.parallax.com/showthread.php?127302-F32-Concise-floating-point-code-for-the-Propeller/page2
and Bean was looking at an extended float, with better than 24b granularity,
http://forums.parallax.com/showthread.php?139598-Problem-Floating-point-cannot-hold-32-bit-values&highlight=floating+point
but not sure of the status of that ?