Greg Egan on Nostr: Today in Rough Approximations For ArcSine: The Taylor series for sin and cos start ...
Today in Rough Approximations For ArcSine:
The Taylor series for sin and cos start with:
sin θ ≈ θ - (1/6) θ^3
cos θ ≈ 1 - (1/2) θ^2
So:
(θ - sin θ) / (1 - cos θ) ≈ θ/3
Solving for θ:
θ ≈ 3 sin θ / (2 + cos θ)
or:
asin(x) ≈ 3 x / (2 + √[1-x^2])
This isn’t too bad for small x, and has the correct value and derivative at x = 0, but we can make it match those things at x = ±1 as well by tweaking the coefficients:
asin(x) ≈ π x / (2 + (π-2)√[1-x^2])
This has a maximum proportional error of 0.011.
Published at
2026-01-05 12:32:43 UTCEvent JSON
{
"id": "73e21896f46155359bfb96fd45d6327dd3559504a45cefdabeb7d8513e556784",
"pubkey": "563821004c3e4e4f4fbef74a2657db3299a0e71a78214bf97db0b6ca05fb73d3",
"created_at": 1767616363,
"kind": 1,
"tags": [
[
"proxy",
"https://mathstodon.xyz/@gregeganSF/115842506016769536",
"web"
],
[
"proxy",
"https://mathstodon.xyz/users/gregeganSF/statuses/115842506016769536",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mathstodon.xyz/users/gregeganSF/statuses/115842506016769536",
"pink.momostr"
],
[
"-"
]
],
"content": "Today in Rough Approximations For ArcSine:\n\nThe Taylor series for sin and cos start with:\n\nsin θ ≈ θ - (1/6) θ^3\ncos θ ≈ 1 - (1/2) θ^2\n\nSo:\n\n(θ - sin θ) / (1 - cos θ) ≈ θ/3\n\nSolving for θ:\n\nθ ≈ 3 sin θ / (2 + cos θ)\n\nor:\n\nasin(x) ≈ 3 x / (2 + √[1-x^2])\n\nThis isn’t too bad for small x, and has the correct value and derivative at x = 0, but we can make it match those things at x = ±1 as well by tweaking the coefficients:\n\nasin(x) ≈ π x / (2 + (π-2)√[1-x^2])\n\nThis has a maximum proportional error of 0.011.",
"sig": "9b6a0c10aef0bbbdbda828a6b7317cfca8b3fcff064621444fca5be763bacd8cc553692027f89c8eceaec2895242af16f88ea57fcc13c18325f348b62d0aba6c"
}