[Fwd: Re: Trigonometric math functions]

• To: mathgroup at smc.vnet.net
• Subject: [mg44606] [Fwd: [mg44584] Re: Trigonometric math functions]
• From: Bob Walker <walkerbg at ieee.org>
• Date: Mon, 17 Nov 2003 03:38:41 -0500 (EST)
• Sender: owner-wri-mathgroup at wolfram.com

```  I don't have a direct reference handy but try an internet search for
"trig Cordic" algorithms.
Good luck
bgw

-------- Original Message --------
Subject: [mg44606] [mg44584] Re: Trigonometric math functions
From: drbob at bigfoot.com (Bobby R. Treat)
To: mathgroup at smc.vnet.net
References: <boig47\$og2\$1 at smc.vnet.net>

You can get a very good rational function approximation as follows:

<< Graphics`Colors`
pade = Pade[ArcCos[x], {x, 0, 6, 6}] // Simplify
series = Normal@Series[ArcCos[x], {x, 0, 19}]
Plot[{pade, series} - ArcCos[x] // Evaluate, {x, 0, 1}, PlotStyle -> {Red,
Blue}]

The Pade approximation of order {6,6} looks better than the series of order 19.

Bobby

"Bruno"  wrote in message news:...
> 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.

```

• Prev by Date: Linear Regression and Hat Matrix
• Next by Date: Re: Automatic comment coloring
• Previous by thread: Re: Linear Regression and Hat Matrix
• Next by thread: A MapLevelParts Routine