What is the Function of sin(x)?

  • Thread starter Thread starter Helicobacter
  • Start date Start date
  • Tags Tags
    Function
AI Thread Summary
The sine function, sin(x), can be expressed using a Taylor series expansion, which approximates the function through an infinite sum of terms. Calculators typically compute sin(x) by first mapping the input to a specific interval, often (0, 2π), and then applying symmetry and identities to simplify the calculation. The CORDIC algorithm is a common method used in calculators for efficiently computing trigonometric functions, leveraging recursive sequences. Various approaches, including accelerated series and numerical methods, can also yield accurate results for sin(x). Understanding these methods provides insight into how calculators derive the sine value from an input.
Helicobacter
Messages
158
Reaction score
0
I searched my textbook and Wikipedia-D but I couln't find the function of sine composed with operations and values.

sin(x)=what?

I typed it in my graphing calculator but I can't really figure out the formula by only looking at the outputs. What operations does the calculator execute with my input x to spit out the output?

Thanks in advance!
 
Mathematics news on Phys.org
Helicobacter said:
I searched my textbook and Wikipedia-D but I couln't find the function of sine composed with operations and values.

sin(x)=what?

I typed it in my graphing calculator but I can't really figure out the formula by only looking at the outputs. What operations does the calculator execute with my input x to spit out the output?

Thanks in advance!

Is this what you are looking for?
sin(x)= \sum_{n=0}^{ \infty} \frac{(-1)^{2n}}{(2n+1)!} x^{2n+1}

Otherwise you have to go back to Trigonometry and define the sine function in terms of a right triangle. There is no "closed-form" (aka "nice looking") function for the sine function.

-Dan
 
Last edited:
In other words, sin(x) is not an "algebraic" function.
 
I know there are tons of ways to approximate a sine function, the most obvious being taylor series and numerical solutions of y''+y=0, but does anyone know how the "average" scientific calculator does it? The "best" way I think is to first map the argument onto (0,2pi) and then take advantage of symmetry to make your interval (0,pi/2). Taking pi/2 as a worst case value, and using the macluauren series I needed to go up to x^19 to get a value "equal" to 1 within double floating point accuracy. Is this what a calculator does? My best guess is that calculates on a smaller interval than (0,pi/2) where the series converges faster and then uses various identities to go back up.
Of course I don't think taylor series are your only option. There are things like accelerated series. I believe brent and soloman have done work in quadratically convergent methods for elementary functions (exp,sin,cos,log). (R. P. Brent, Fast multiple-precision evaluation of elementary functions, J. ACM 23 (1976) 242-251)
 
I recall reading an article in College Math Journal, a publication of the MAA, that showed a very fast way to get sin x, most likely the method used by calculators. After a little bit of searching, I found the article was in the November 2001 issue: College Math Journal: Volume 32, Number 5, Pages: 330-333.

CORDIC: Elementary Function Computation Using Recursive Sequences
Neil Eklund
Using a single family of recursion relations, it is possible to calculate products, quotients, sines, cosines, arctangents, square roots, hyperbolic sines and cosines, logarithms, exponentials, and hyperbolic arctangents. That’s the way computers do it.

I have misplaced all my CMJ's, so that's about all I can dig up on it atm, besides the official CMJ website: http://www.maa.org/pubs/cmj.html
 
After looking on the internet a little bit I found the so called cordic method. It's been around for 40 years or so and was used on the first hand calculators. Check out the website: www.emesystems.com/BS2mathC.htm
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Thread 'Imaginary Pythagoras'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top