Difference between revisions of "Trigonometry Functions"

Jump to navigation Jump to search
197 bytes added ,  12:42, 9 May 2006
imported>JOG
imported>Bifmadeinsabbioni
Line 122: Line 122:
  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
  set Sign to 1 ; it's the sign adjustment of the result  
  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)&& (Angolo <=360) ; if 180<=z<=360 sin(z) = -sin(z-180)
  if (Angolo > 180)&& (Angolo <=360) ; if 180<=z<=360 sin(z) = -sin(z-180)
Line 159: Line 164:
  set Sign to 1 ; it's the sign adjustment of the result  
  set Sign to 1 ; it's the sign adjustment of the result  
    
    
if (Angolo < 0) ; cos(-z) = cos(z)
        set Angolo to Angolo * (-1)
endif
  if (Angolo > 180)&& (Angolo <=360) ; if 180<=z<=360 cos(z) = -cos(z-180)
  if (Angolo > 180)&& (Angolo <=360) ; if 180<=z<=360 cos(z) = -cos(z-180)
  set Sign to Sign * (-1)
  set Sign to Sign * (-1)

Navigation menu