![]() Pi Angle_Degrees : constant Float := 45.0 Angle_Radians : constant Float := Ada. ![]() With _Functions use _Functions with Ada.Float_Text_Io use Ada.Float_Text_Io with Ada.Text_IO use Ada.Text_IO procedure Trig is Degrees_Cycle : constant Float := 360.0 Radians_Cycle : constant Float := 2.0 * Ada. The output of the inverse trig functions is in units of the specified cycle (degrees or radians). The examples below specify the cycle for degrees and for radians. PI ) AdaĪda provides library trig functions which default to radians along with corresponding library functions for which the cycle can be specified. Trace ( "Radians:" ) trace ( "sin(Pi/4) = ", Math. ![]() Tangent of pi / 4 radians: 0.99999999999999999999 ActionScriptĪctionscript supports basic trigonometric and inverse trigonometric functions via the Math class, including the atan2 function, but not the hyperbolic functions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |