AnsweredAssumed Answered

Sine, Cos functions without float data types

Question asked by yadunandan kasu on Sep 25, 2011
Latest reply on Oct 19, 2011 by bigmac

I have to write Sine and Cos Math functions but without using the standard library functions from math.h file. 

Because, I dont want to write these functions with integer data type. But library functions support floating point.

I tried to do some research, but most of the algorithms are based on floating point itself (using Taylor series, horner method).

Can any one please provide sample code for Sin, Cos algorithms based on Integers. 

I'm using Codewarrior compiler v2.7 for MPC5604P.