MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Trigonometric math functions

  • To: mathgroup at
  • Subject: [mg44569] Re: Trigonometric math functions
  • From: poujadej at (Jean-Claude Poujade)
  • Date: Fri, 14 Nov 2003 04:43:16 -0500 (EST)
  • References: <boig47$og2$>
  • Sender: owner-wri-mathgroup at

"Bruno" <bpa at> wrote in message news:<boig47$og2$1 at>...
> Hi all,
> I would like to implement an arc cos function on a 16 bits µcontroller
> (optimized sin() and cos() function are welcome).
> Does someone have some sources or an algorythm in this way ?
> Thanks in advance,
> Regards.

Why not simply use a series expansion?

Out[1]=Pi/2 - x - x^3/6
       acos[x_ /; 0<x<1] := Pi/2-x-x^3/6  ;
       acos[x_ /; x<0] := Pi-acos[-x];
No difference can be seen with a naked eye!

  • Prev by Date: Re: I have put "==" in every equation I have in NDSolve, why it keeps telling me they are not equations
  • Next by Date: Re: Trigonometric math functions
  • Previous by thread: Trigonometric math functions
  • Next by thread: Re: Trigonometric math functions