r/mathematics • • 13d ago

Good approximation to sin(x)

Post image

Found a new approximation to sin(x), it covers 0 to pi, made using a Padé approximant, satisfying x=0, x=pi/2 and x=pi, while also satisfying the slope at x=0 and the slope at x=pi.

33 Upvotes

7 comments sorted by

11

u/waxen_earbuds 13d ago

Any approximation to a simple harmonic should probably have the property of being periodic. This is not. I'd suggest exploring what you can do with elementary periodic functions, such as g(x) = f(x mod 2pi) for some basic functions f that you define on 0 to 2 pi and such that f(0) = f(2 pi)

13

u/Pt4FN455 13d ago

i did say it covers only from x=0 to pi, hadn't said anything about periodicity

0

u/waxen_earbuds 13d ago

I understand wanting to do this as an exercise, and I think its great you're doing it. But its not clear to me what you perceive the value of this to be beyond a learning exercise. Based on the way you're motivating it and the properties you are focusing on (also noting a strange omission of matching the slope at pi/2) I have to assume you're early in your education, so I was providing a perspective on what properties you might consider.

6

u/Pt4FN455 13d ago edited 13d ago

thanks for the tips, i started with 6 unknown coefficients, so i need 5 constraints, i picked the easiest ones, which are x=0, x=pi/2, x=pi, the slope at x=0 and finally the slope at x=pi, and i got this expression

3

u/Pt4FN455 13d ago

There's a similar historic expression similar to this, only way cooler since it uses only integers instead of real numbers, called Bhaskara's Approximation

2

u/gre485 12d ago

Not a mathematician but would a continuous function/calculas in it give us a better approximation?

23

u/elevenelodd 13d ago

Idk about that. You can trivially extend OP’s approximation to be periodic. Besides, Taylor series is the poster child approximation and only preserves local properties.