![]() 2.13. Doing Trigonometry in Degrees, not Radians2.13.2. SolutionUse deg2rad( ) and rad2deg( ) on your input and output: $cosine = rad2deg(cos(deg2rad($degree))); 2.13.3. DiscussionBy definition, 360 degrees is equal to 2 There is no built-in support for gradians. This is considered a feature, not a bug. 2.13.4. See AlsoRecipe 2.13 for trig basics; documentation on deg2rad( ) at http://www.php.net/deg2rad and rad2deg( ) at http://www.php.net/rad2deg. ![]() Copyright © 2003 O'Reilly & Associates. All rights reserved. |
|