🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: can.schoolnet.math.sr
Article #750

Arctan expansion

#750
From: INJH000
Date: Mon, 15 Jan 1996 00:00
20 lines
995 bytes
An expansion of arctan(x) that converges fairly quickly is :

x - x^3/3 + x^5/5 - x^7/7 + x^9/9 - x^11/11 + ...

+ (-1)^k * x^(2n+1) / (2n+1) + ...

There is the condition, however, that -1 < x < 1. Actually, it also
works for x = +1 or -1. If your slope is between 1 and +oo, or
-1 and -oo, just take x=1/m and remember that your angle is now
between your line and the vertical, not the horizontal.

To get the expansion, you just integrate the power series expansion
of 1 / (1 + x^2).

1 / (1 + x^2) is just 1 / [1 - (-x^2)]

or 1 - x^2 + x^4 - x^6 + ... provided that -1 < -x^2 < 1.

Brian.
Technical Details
Message-ID: <15JAN96.00451834.0349@VM1.MCGILL.CA>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f7972,ad59105a74c676fa,start
X-Google-Attributes: gidf7972,public
From: <INJH000@MUSICB.MCGILL.CA>
Subject: Arctan expansion
Date: 1996/01/15
Message-ID: <15JAN96.00451834.0349@VM1.MCGILL.CA>
X-Deja-AN: 135251110
sender: usenet@MUSICB.MCGILL.CA
organization: McGill University
newsgroups: can.schoolnet.math.sr