Difference between revisions of "Talk:Trigonometry Functions"
imported>JOG |
imported>HduL79 m |
||
Line 22: | Line 22: | ||
endif | endif | ||
if (Angolo > 180) | if (Angolo > 180) | ||
Revision as of 18:46, 11 April 2007
Creating a Trig Category
I'd love someone forever if they switched this article to a category and made a separate article for each of these. Not too much work, but I'm conversioned out right now...--DragoonWraith 21:58, 9 May 2006 (EDT)
The Stage Function thing
Completely replacing all trig functions with the stage function version seems to be a little extreme. Stage Functions are a good thing, but not everyone might want to use them. Furthermore the non-stage-functions might be a little easier to read. I think it would be best to leave the Trigonometry thread with non-stage functions and add those as an option instead. Yes, thats very redundant, but some people might feel patronised otherwise... and there is nothing we need less than anger on this wiki. :) It'd be good to hear the opinion of others about this. --JustTim 12:06, 10 May 2006 (EDT)
I agree, there is already a Stage_function_repository and we don't need two of them. The advantage of the script snipplets we had here originally was that you could easily copy/paste them into your script and do some tweaks. Stage functions are only useful when they are in one ESM which needs to be installed to use the mod. But even when such an math.esm is established on a broad user base, some modders might prefer a quick solution within their own script when they just need a sine or a square root.--JOG 12:23, 10 May 2006 (EDT)
Removed Sections
I see no reason for three versions of the Taylor series, and this one is, to me, the most difficult to read. If it has merit, re-add it to the main article, though it must be formatted for being a Stage Function.--DragoonWraith 20:35, 9 May 2006 (EDT)
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, 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) set Angolo to AngleZ ; Angolo is the angle of which we want to calculate the sin set Sign to 1 ; it's the sign adjustment of the result if (Angolo < 0) ; sin(-z) = -sin(z) set Angolo to Angolo * (-1) set Sign to Sign * (-1) endif if (Angolo > 180)