Share via


Math Functions

Glossary Item Box

Microsoft Robotics Developer Studio Send feedback on this topic

Math Functions

Math Functions

Math Functions - Icon

The Math Functions service provides a series of functions that perform common mathematical operations. (These are similar to the set of methods implemented by the .Net System.Math class).

The following messages are provided

Request Display Name Description
Constants PiandE Returns the mathematical constants π (pi) and e
Acos ArcCosine Returns the angle (in radians) whose cosine is the specified number.
Asin ArcSine Returns the angle (in radians) whose sine is the specified number.
Atan ArcTangent Returns the angle (in radians) whose tangent is the specified number.
Atan2 ArcTangent2 Returns the angle (in radians) whose tangent is the quotient of two specified numbers.
Cos Cosine Returns the cosine of the specified angle (in radians).
Exp Exponent Returns e raised to the specified power.
Log Logarithm Returns the logarithm of a specified number. If base is specified as 0 then a natural logarithm (base e) is calculated.
Pow Power Raises A to the power Exponent.
Random Random Returns a pseudo-random number between 0.0 and 1.0.
Round Round Rounds a double-precision floating-point value to the specified precision.
Sin Sine Returns the sine of the specified angle (in radians).
Sqrt SquareRoot Returns the square root of the specified number. (The number must be positive).
Tan Tangent Returns the tangent of the specified angle (in radians).
Truncate Truncate Calculates the integral part of a specified double-precision floating-point number.
ToRadians ToRadians Converts a value in degrees to radians.
ToDegrees ToDegrees Converts a value in radians to degrees.

 

 

© 2012 Microsoft Corporation. All Rights Reserved.