[Edu-sig] Pythonic Alg 2, Trig/Func

kirby urner kirby.urner at gmail.com
Wed Jun 14 03:21:26 CEST 2006


On 6/13/06, kirby urner <kirby.urner at gmail.com> wrote:
> If you had a Rational class handy, you could carry out a series
> expansion for sine and cosine to get fully rational results, e.g.:
>
> sine (x) == sigma (  ((-1)**n * x ** (2*n + 1))/fact(2*n + 1) )
>

Like, sine of 1/3 radian is about:

27047072606210481759999009438891363156074338083237552748240939073
------------------------------------------------------------------------------------------------------------------
82663542138830139150090619203306227146181541524716231065600000000

expanding by some 20 terms.

Kirby


More information about the Edu-sig mailing list