Difference between revisions of "Trigonometry Functions"
Jump to navigation
Jump to search
→Taylor Series Variant 3
imported>Bifmadeinsabbioni |
imported>Bifmadeinsabbioni |
||
Line 125: | Line 125: | ||
== Taylor Series Variant 3 == | == Taylor Series Variant 3 == | ||
The idea here is to approximate sin(z) and cos(z) with taylor. Since taylor works best with values close to 0, | The idea here is to approximate sin(z) and cos(z) with taylor. Since taylor works best with values close to 0, | ||
I think it's a good idea to use sin and cos periodicity as many times as possible. then I used taylor to approximate the functions. | I think it's a good idea to use sin and cos periodicity as many times as possible. then I used taylor to approximate the functions. (Scripts by bifmadeinsabbioni) | ||
ScriptName Sin(Z) | ScriptName Sin(Z) | ||
set Angolo to AngleZ ; Angolo is the angle of which we want to calculate the sin | set Angolo to AngleZ ; Angolo is the angle of which we want to calculate the sin | ||
Line 198: | Line 198: | ||
set CosZ to CosZ * Sign | set CosZ to CosZ * Sign | ||
endif | endif | ||
= Arcsine, Arccosine, and Arctangent = | = Arcsine, Arccosine, and Arctangent = |