Trignometry With Pure Python
Discovered by 7th century mathematician Bhaskara I, this formula is elegant and simpler than the next method that I am gonna discuss. While it does not give the perfect value, it is still a very good approximation
The graphs of sin x and the approximation formula are visually indistinguishable and are nearly identical.
So lets say you have a robot that can draw any function you want but its kinda like AI and gets better with more functions we feed it. The “sine” is a function that goes infinitely up and down. But the robot doesn’t know how to draw the sine curve directly.
So to teach it how to draw a complex curve, we give it a set of simpler instructions called the Taylor Series
. These instructions tell robot how to draw a bunch of smaller, simpler curves called “polynomials.”
Each polynomial is like a tiny part of the sine curve. The more polynomials we use, the more accurate our drawing becomes. It’s like putting together puzzle pieces to make a bigger picture.
Eventually there will be a point where there would be enough polynomials to make the robots drawing almost identical to the actual sine curve
Namish
( っ˶´ ˘ `)っ made out of ❤️ and boredom
built with astro