+ 1

how to write python program to find the value of sinx using while loop and function

29th Oct 2016, 5:35 PM
Anju kv
Anju kv - avatar
2 Respostas
+ 2
Sin(x) is #24 here. The second term contains 3! and the next is 5! (etc) which you can more clearly see at the second link: http://mathworld.wolfram.com/SeriesExpansion.html http://math2.org/math/algebra/functions/sincos/expansions.htm You might want to review this to see the similarity in calculation, and potentially to watch for the pitfall under 'unusual behavior': https://en.m.wikipedia.org/wiki/Leibniz_formula_for_π
30th Oct 2016, 6:35 AM
Kirk Schafer
Kirk Schafer - avatar
+ 1
You could do it with a Taylor series (you could just use math.sin but whatever)
29th Oct 2016, 6:57 PM
Adrian Ellis
Adrian Ellis - avatar