Does anyone know of a good C math library for 8 bit PICs (PIC16F type)? The ones HI-TECH C provides are a bit strange. The sine values that the sin function calculates are a bit off. My calculators and computers are all giving the right answer, but the HI-TECH library is only accurate to about three decimal places. After that, the numbers don't match my calculator and my computer. I looked at the source code for sine and it *looks* like they're using the CORDIC algorithm. I thought that (after reading various articles on the Internet) that most calculators use CORDIC to compute sine. So shouldn't my calculator and HI-TECH be giving the same answer? I'm building a calculator, so I want my math functions to be giving the right values. If anyone has any answers to explain this anomaly or any links to other math libraries, I would really appreciate it. I tried to look through uClibc but their library is HUGE and designed for 32 bit architectures I believe. It would take wayyyyy too long to strip out the useful bits from their library. Same with other libraries I've looked at. -- solarwind -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist