ASin.htm 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>ASin# ( s# )</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. s = a number in the range -1 to +1 <br />
  13. <br />
  14. It is considered to be the sine of an angle.
  15. </td>
  16. </tr>
  17. </table>
  18. <h1>Description</h1>
  19. <table>
  20. <tr>
  21. <td>
  22. ASin( s ) is an angle which has sine = s. <br />
  23. It is in the range -90 to +90 degrees.
  24. </td>
  25. </tr>
  26. </table>
  27. <h1><a href=../2d_examples/ASin.bb>Example</a></h1>
  28. <table>
  29. <tr>
  30. <td>
  31. ; ASin example <br />
  32. <br />
  33. ; NaN means "Not a Number", the numerical result is invalid. <br />
  34. <br />
  35. Const width = 640, height = 480 <br />
  36. <br />
  37. Graphics width, height <br />
  38. <br />
  39. <br />
  40. Local S#, AS# ; Sin and ASin <br />
  41. <br />
  42. Print " S ASin( S )" <br />
  43. Print "==================" <br />
  44. <br />
  45. For n = -11 To 11 <br />
  46. <br />
  47. S = n / 10.0 <br />
  48. AS = ASin( S ) <br />
  49. Print RSet(S, 6) + RSet( AS, 10) <br />
  50. <br />
  51. Next <br />
  52. <br />
  53. WaitKey() : End
  54. </td>
  55. </tr>
  56. </table>
  57. <br>
  58. <a target=_top href=../index.htm>Index</a><br>
  59. <br>
  60. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=ASin&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  61. </html>