Sep 21, 2007 #1 V vedantam Junior Member level 2 Joined Jan 3, 2007 Messages 24 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,283 Location india Activity points 1,435 hi everyone, i need a C-language code for cosine,sine of a variable with out using math.h library function? THANX IN ADVANCE....
hi everyone, i need a C-language code for cosine,sine of a variable with out using math.h library function? THANX IN ADVANCE....
Sep 21, 2007 #2 G goosecool Junior Member level 3 Joined Jul 29, 2005 Messages 28 Helped 2 Reputation 4 Reaction score 1 Trophy points 1,283 Activity points 1,484 this should be simple .... use the infinite cosine series formula in x, any engineering math book should have the formula, go upto 4th or 5th degree for sufficient precision.
this should be simple .... use the infinite cosine series formula in x, any engineering math book should have the formula, go upto 4th or 5th degree for sufficient precision.
Sep 21, 2007 #3 avimit Banned Joined Nov 16, 2005 Messages 412 Helped 91 Reputation 182 Reaction score 23 Trophy points 1,298 Location Fleet, UK Activity points 0 I would advice, use cordic algorithm. look for it in google. Kr, Avi http://www.vlsiip.com