Math
| Line 14: | Line 14: | ||
| − | {| width="100" cellpadding="2" cellspacing="0" style="border-collapse: collapse; border-width: 1px; border-style: solid; border-color: #000" | + | {| |
| + | |- | ||
| + | |style="vertical-align:top"| __TOC__ | ||
| + | |style="vertical-align:top"| | ||
| + | {| width="100" cellpadding="2" cellspacing="0" style="border-collapse: collapse; border-width: 1px; border-style: solid; border-color: #000" | ||
!colspan="2" class="wikiHeader"|Color Key | !colspan="2" class="wikiHeader"|Color Key | ||
| + | |- | ||
| + | |class="wikiText" width="75%" style="border-style: solid; border-width: 1px 0px 0px 0px"|Function: | ||
| + | |width="25%" style="border-style: solid; border-width: 1px 0px 0px 0px;" class="colorKeyFunc"| | ||
| + | |- | ||
| + | |class="wikiText" width="75%" style="border-style: solid; border-width: 0px 0px 0px 0px"|Variable: | ||
| + | |width="25%" style="border-style: solid; border-width: 0px 0px 0px 0px;" class="colorKeyVar"| | ||
| + | |} | ||
|- | |- | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|} | |} | ||
| − | |||
| − | |||
| − | |||
| Line 31: | Line 34: | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">float </span><span class="bigKeywordB">abs</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">input</span><span class="bigCodePunc">)</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|Returns the absolute value of a number. | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) Returns the absolute value of a number. |
| − | + | |- | |
| − | + | | | |
| − | {| | + | {| class="parameterTable" cellpadding="5%" width="100%" |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''input'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''input'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the absolute value of (can be: int, long, short, float). | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the absolute value of (can be: int, long, short, float). | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 55: | Line 60: | ||
|- | |- | ||
|} | |} | ||
| − | + | <br /> | |
== acos == | == acos == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">float </span><span class="bigKeywordB">acos</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">Cosine</span><span class="bigCodePunc">)</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|Returns the arc-cosine of a number in radians. | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) Returns the arc-cosine of a number in radians. |
| − | + | |- | |
| − | + | | | |
| − | {| | + | {| class="parameterTable" cellpadding="5%" width="100%" |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''Cosine'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''Cosine'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the arc-cosine of (in radians). | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the arc-cosine of (in radians). | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 86: | Line 93: | ||
|- | |- | ||
|} | |} | ||
| − | + | <br /> | |
== asin == | == asin == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">float </span><span class="bigKeywordB">asin</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">Sine</span><span class="bigCodePunc">)</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|Returns the arc-sine of a number in radians. | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) Returns the arc-sine of a number in radians. |
| − | + | |- | |
| − | + | | | |
| − | {| | + | {| class="parameterTable" cellpadding="5%" width="100%" |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''Sine'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''Sine'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the arc-sine of (in radians). | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the arc-sine of (in radians). | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 117: | Line 126: | ||
|- | |- | ||
|} | |} | ||
| + | <br /> | ||
== atan == | == atan == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">float </span><span class="bigKeywordB">atan</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">Tangent</span><span class="bigCodePunc">)</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|Returns the arc-tangent of a number in radians. | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) Returns the arc-tangent of a number in radians. |
| − | + | |- | |
| − | + | | | |
| − | {| | + | {| class="parameterTable" cellpadding="5%" width="100%" |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''Tangent'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''Tangent'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the arc-tangent of (in radians). | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the arc-tangent of (in radians). | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 147: | Line 159: | ||
|- | |- | ||
|} | |} | ||
| − | + | <br /> | |
== ceil == | == ceil == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">float </span><span class="bigKeywordB">ceil</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">input</span><span class="bigCodePunc">)</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|Returns the '''smallest integer''' value that is greater than or equal to <span class="codeBasic">input</span>. | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) Returns the '''smallest integer''' value that is greater than or equal to <span class="codeBasic">input</span>. |
| − | + | |- | |
| − | + | | | |
| − | {| | + | {| class="parameterTable" cellpadding="5%" width="100%" |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''input'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''input'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The floating point number to take the ceiling value of. | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The floating point number to take the ceiling value of. | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 176: | Line 190: | ||
|- | |- | ||
|} | |} | ||
| − | + | <br /> | |
== cos == | == cos == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">float </span><span class="bigKeywordB">cos</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">fRadians</span><span class="bigCodePunc">)</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|Returns the cosine of a number of radians. | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) Returns the cosine of a number of radians. |
| − | + | | | |
| − | + | {| class="parameterTable" cellpadding="5%" width="100%" | |
| − | {| | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | |
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''fRadians'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''fRadians'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the cosine of (in radians). | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the cosine of (in radians). | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 206: | Line 221: | ||
|- | |- | ||
|} | |} | ||
| + | <br /> | ||
== cosDegrees == | == cosDegrees == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">float </span><span class="bigKeywordB">cosDegrees</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">fDegrees</span><span class="bigCodePunc">)</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|Returns the cosine of a number of degrees. | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) Returns the cosine of a number of degrees. |
| − | + | | | |
| − | + | {| class="parameterTable" cellpadding="5%" width="100%" | |
| − | {| | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | |
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''fDegrees'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''fDegrees'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the cosine of (in degrees). | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the cosine of (in degrees). | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 235: | Line 252: | ||
|- | |- | ||
|} | |} | ||
| + | <br /> | ||
== degreesToRadians == | == degreesToRadians == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">float </span><span class="bigKeywordB">degreesToRadians</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">fDegrees</span><span class="bigCodePunc">)</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|Returns the radian equivalent of <span class="codeBasic">fDegrees</span>. | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) Returns the radian equivalent of <span class="codeBasic">fDegrees</span>. |
| − | + | |- | |
| − | + | | | |
| − | {| | + | {| class="parameterTable" cellpadding="5%" width="100%" |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''fDegrees'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''fDegrees'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The number of degrees to convert into radians. | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The number of degrees to convert into radians. | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| Line 264: | Line 284: | ||
|- | |- | ||
|} | |} | ||
| − | + | <br /> | |
== exp == | == exp == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">float </span><span class="bigKeywordB">exp</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">input</span><span class="bigCodePunc">)</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|Returns the number 'e' rasied to the power of <span class="codeBasic">input</span>. | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) Returns the number 'e' rasied to the power of <span class="codeBasic">input</span>. |
| − | + | |- | |
| − | + | | | |
| − | {| | + | {| class="parameterTable" cellpadding="5%" width="100%" |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''input'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''input'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The floating point number to raise the constant 'e' to. | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The floating point number to raise the constant 'e' to. | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 294: | Line 316: | ||
|- | |- | ||
|} | |} | ||
| − | + | <br /> | |
== floor == | == floor == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">float </span><span class="bigKeywordB">floor</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">input</span><span class="bigCodePunc">)</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|Returns the '''largest integer''' value that is less than or equal to <span class="codeBasic">input</span>. | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) Returns the '''largest integer''' value that is less than or equal to <span class="codeBasic">input</span>. |
| − | + | |- | |
| − | + | | | |
| − | {| | + | {| class="parameterTable" cellpadding="5%" width="100%" |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''input'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''input'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The floating point number to take the floor value of. | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The floating point number to take the floor value of. | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 323: | Line 347: | ||
|- | |- | ||
|} | |} | ||
| + | <br /> | ||
== log == | == log == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">float </span><span class="bigKeywordB">log</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">input</span><span class="bigCodePunc">)</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|Returns the natural logarithm ''(ln)'' of <span class="codeBasic">input</span>. | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) Returns the natural logarithm ''(ln)'' of <span class="codeBasic">input</span>. |
| − | + | |- | |
| − | + | | | |
| − | {| | + | {| class="parameterTable" cellpadding="5%" width="100%" |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''input'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''input'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The floating point number to take the natural logarithm of. | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The floating point number to take the natural logarithm of. | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 351: | Line 378: | ||
|- | |- | ||
|} | |} | ||
| − | + | <br /> | |
== log10 == | == log10 == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">float </span><span class="bigKeywordB">log10</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">input</span><span class="bigCodePunc">)</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|Returns the base-10 logarithm of <span class="codeBasic">input</span>. | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) Returns the base-10 logarithm of <span class="codeBasic">input</span>. |
| − | + | |- | |
| − | + | | | |
| − | {| | + | {| class="parameterTable" cellpadding="5%" width="100%" |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''input'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''input'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The floating point number to take the base-10 logarithm of. | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The floating point number to take the base-10 logarithm of. | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 380: | Line 409: | ||
|- | |- | ||
|} | |} | ||
| − | + | <br /> | |
== PI == | == PI == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="variableType"| <span class="bigKeywordBI">const float </span><span class="bigKeywordB">PI </span><span class="bigCodePunc">= </span><span class="bigCodeStringsNums">3.14159265358979323846264338327950288419716939937510</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|The constant <span style="font-family: Trebuchet MS, sans-serif">π</span>. | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) The constant <span style="font-family: Trebuchet MS, sans-serif">π</span>. |
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 409: | Line 438: | ||
|- | |- | ||
|} | |} | ||
| − | + | <br /> | |
== pow == | == pow == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">float </span><span class="bigKeywordB">pow</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">base</span><span class="bigCodePunc">, </span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">exponent</span><span class="bigCodePunc">)</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|Returns <span class="codeBasic">base</span> to the power of <span class="codeBasic">exponent</span>. | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) Returns <span class="codeBasic">base</span> to the power of <span class="codeBasic">exponent</span>. |
| − | + | |- | |
| − | + | | | |
| − | {| | + | {| class="parameterTable" cellpadding="5%" width="100%" |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''base'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''base'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The floating point base to raise to the power of 'power'. | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The floating point base to raise to the power of 'power'. | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''exponent'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''exponent'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The floating point exponent to raise 'base' to. | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The floating point exponent to raise 'base' to. | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 442: | Line 474: | ||
|- | |- | ||
|} | |} | ||
| − | + | <br /> | |
== radiansToDegrees == | == radiansToDegrees == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">short </span><span class="bigKeywordB">radiansToDegrees</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">fRadians</span><span class="bigCodePunc">)</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|Returns the degree equivalent of <span class="codeBasic">fRadians</span>. | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_short|short]]) Returns the degree equivalent of <span class="codeBasic">fRadians</span>. |
| − | + | |- | |
| − | + | | | |
| − | {| | + | {| class="parameterTable" cellpadding="5%" width="100%" |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''fRadians'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''fRadians'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The number of radians to convert into degrees. | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The number of radians to convert into degrees. | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 472: | Line 506: | ||
|- | |- | ||
|} | |} | ||
| − | + | <br /> | |
== sgn == | == sgn == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">short </span><span class="bigKeywordB">sgn</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">input</span><span class="bigCodePunc">)</span> |
| + | |- | ||
| + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_short|short]]) Returns a value less than 0 if <span class="codeBasic">input</span> is negative, and a value greater than 0 if <span class="codeBasic">input</span> is positive. | ||
|- | |- | ||
| − | | | + | | |
| − | + | {| class="parameterTable" cellpadding="5%" width="100%" | |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | |
| − | + | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''input'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''input'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to test the sign of | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to test the sign of | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 503: | Line 539: | ||
|- | |- | ||
|} | |} | ||
| − | + | <br /> | |
== sin == | == sin == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">float </span><span class="bigKeywordB">sin</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">fRadians</span><span class="bigCodePunc">)</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|Returns the sine of a number of radians. | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) Returns the sine of a number of radians. |
| − | + | |- | |
| − | + | | | |
| − | {| | + | {| class="parameterTable" cellpadding="5%" width="100%" |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''fRadians'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''fRadians'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the sine of (in radians). | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the sine of (in radians). | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 533: | Line 571: | ||
|- | |- | ||
|} | |} | ||
| − | + | <br /> | |
== sinDegrees == | == sinDegrees == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">float </span><span class="bigKeywordB">sinDegrees</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">fDegrees</span><span class="bigCodePunc">)</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|Returns the sine of a number of degrees. | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) Returns the sine of a number of degrees. |
| − | + | |- | |
| − | + | | | |
| − | {| | + | {| class="parameterTable" cellpadding="5%" width="100%" |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''fDegrees'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''fDegrees'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the sine of (in degrees). | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the sine of (in degrees). | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 563: | Line 603: | ||
|- | |- | ||
|} | |} | ||
| − | + | <br /> | |
== sqrt == | == sqrt == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">float </span><span class="bigKeywordB">sqrt</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">input</span><span class="bigCodePunc">)</span> |
| + | |- | ||
| + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) Returns the square-root of <span class="codeBasic">input</span>. | ||
|- | |- | ||
| − | | | + | | |
| − | + | {| class="parameterTable" cellpadding="5%" width="100%" | |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | |
| − | + | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''input'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''input'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the square-root of. | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the square-root of. | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 593: | Line 635: | ||
|- | |- | ||
|} | |} | ||
| − | + | <br /> | |
<!-- == tan == | <!-- == tan == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">float </span><span class="bigKeywordB">tan</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">fRadians</span><span class="bigCodePunc">)</span> |
| + | |- | ||
| + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) Returns the tangent of a number of radians. | ||
|- | |- | ||
| − | | | + | | |
| − | + | {| class="parameterTable" cellpadding="5%" width="100%" | |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | |
| − | + | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''fRadians'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''fRadians'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the tangent of (in radians). | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the tangent of (in radians). | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 622: | Line 666: | ||
|- | |- | ||
|} | |} | ||
| − | + | <br /> | |
== tanDegrees == | == tanDegrees == | ||
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
|- | |- | ||
| − | | | + | | class="functionType"| <span class="bigKeywordBI">float </span><span class="bigKeywordB">tanDegrees</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const float </span><span class="bigCodeBasic">fDegrees</span><span class="bigCodePunc">)</span> |
|- | |- | ||
| − | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|Returns the tangent of a number of degrees. | + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_float|float]]) Returns the tangent of a number of degrees. |
| − | + | |- | |
| − | + | | | |
| − | {| | + | {| class="parameterTable" cellpadding="5%" width="100%" |
| − | + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | |
| − | + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | |
| + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|''fDegrees'' | | style="border-style: solid; border-width: 0px 0px 0px 0px"|''fDegrees'' | ||
| style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the tangent of (in degrees). | | style="border-style: solid; border-width: 0px 0px 0px 0px"|The number to take the tangent of (in degrees). | ||
| + | | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_float|float]] | ||
|- | |- | ||
|} | |} | ||
| − | + | |- | |
| − | + | | | |
{| | {| | ||
|- | |- | ||
| Line 650: | Line 696: | ||
|} | |} | ||
|- | |- | ||
| − | |} --> | + | |} |
| + | <br /> --> | ||
Revision as of 13:08, 25 January 2012
|
Main >> NXT >> Functions and Variables >> Math |
| ROBOTC has a powerful collection of useful math functions for the NXT, TETRIX, and VEX CORTEX platforms. The RCX and VEX PIC platforms do not have enough memory to store these more advanced math functions. |
|
| |||||||
abs
| float abs(const float input) | ||||||
| (float) Returns the absolute value of a number. | ||||||
| ||||||
|
acos
| float acos(const float Cosine) | ||||||
| (float) Returns the arc-cosine of a number in radians. | ||||||
| ||||||
|
asin
| float asin(const float Sine) | ||||||
| (float) Returns the arc-sine of a number in radians. | ||||||
| ||||||
|
atan
| float atan(const float Tangent) | ||||||
| (float) Returns the arc-tangent of a number in radians. | ||||||
| ||||||
|
ceil
| float ceil(const float input) | ||||||
| (float) Returns the smallest integer value that is greater than or equal to input. | ||||||
| ||||||
|
cos
| float cos(const float fRadians) | |||||||
| (float) Returns the cosine of a number of radians. |
| ||||||
|
cosDegrees
| float cosDegrees(const float fDegrees) | |||||||
| (float) Returns the cosine of a number of degrees. |
| ||||||
|
degreesToRadians
| float degreesToRadians(const float fDegrees) | |||||||
| (float) Returns the radian equivalent of fDegrees. | |||||||
|
exp
| float exp(const float input) | ||||||
| (float) Returns the number 'e' rasied to the power of input. | ||||||
| ||||||
|
floor
| float floor(const float input) | ||||||
| (float) Returns the largest integer value that is less than or equal to input. | ||||||
| ||||||
|
log
| float log(const float input) | ||||||
| (float) Returns the natural logarithm (ln) of input. | ||||||
| ||||||
|
log10
| float log10(const float input) | ||||||
| (float) Returns the base-10 logarithm of input. | ||||||
| ||||||
|
PI
| const float PI = 3.14159265358979323846264338327950288419716939937510 | |
| (float) The constant π. | |
|
pow
| float pow(const float base, const float exponent) | |||||||||
| (float) Returns base to the power of exponent. | |||||||||
| |||||||||
|
radiansToDegrees
| short radiansToDegrees(const float fRadians) | ||||||
| (short) Returns the degree equivalent of fRadians. | ||||||
| ||||||
|
sgn
| short sgn(const float input) | ||||||
| (short) Returns a value less than 0 if input is negative, and a value greater than 0 if input is positive. | ||||||
| ||||||
|
sin
| float sin(const float fRadians) | ||||||
| (float) Returns the sine of a number of radians. | ||||||
| ||||||
|
sinDegrees
| float sinDegrees(const float fDegrees) | ||||||
| (float) Returns the sine of a number of degrees. | ||||||
| ||||||
|
sqrt
| float sqrt(const float input) | ||||||
| (float) Returns the square-root of input. | ||||||
| ||||||
|