home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 February / PCWorld_2006-02_cd.bin / software / vyzkuste / triky / triky.exe / autoit-v3-setup.exe / Examples / Sin.au3 < prev    next >
Text File  |  2004-09-22  |  176b  |  6 lines

  1. $pi = 3.14159265358979
  2. $x = sin($pi / 4)  ;returns 0.707106781186547 which you should recognize as sqrt(2)/2
  3.  
  4. $degToRad = $pi / 180
  5. $y = Sin(90 * $degToRad)  ;sine of 90░
  6.