Microsoft.Quantum.Extensions.Math

Functions

AbsD

Returns the absolute value of a double-precision floating-point number.

AbsI

Returns the absolute value of an integer.

ArcCos

Returns the angle whose cosine is the specified number.

ArcSin

Returns the angle whose sine is the specified number.

ArcTan

Returns the angle whose tangent is the specified number.

ArcTan2

Returns the angle whose tangent is the quotient of two specified numbers.

Ceiling

Returns the smallest integer greater than or equal to the specified number.

Cos

Returns the cosine of the specified angle.

Cosh

Returns the cosine of the specified angle.

E

Returns the natural logarithmic base $e$.

ExpD

Returns $e$ raised to the specified power.

Floor

Returns the largest integer less than or equal to the specified number.

IEEERemainder

Returns the remainder resulting from the division of a specified number by another specified number.

Log

Returns the natural (base $e$) logarithm of a specified number.

Log10

Returns the base 10 logarithm of a specified number.

MaxD

Returns the larger of two specified numbers.

MaxI

Returns the larger of two specified numbers.

MinD

Returns the smaller of two specified numbers.

MinI

Returns the smaller of two specified numbers.

PI

Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π.

PowD

Returns the number x raised to the power y.

Round

Rounds a value to the nearest integer or to the specified number of fractional digits.

SignD

Returns an integer that indicates the sign of a number.

SignI

Returns an integer that indicates the sign of a number.

Sin

Returns the sine of the specified angle.

Sinh

Returns the hyperbolic sine of the specified angle.

Sqrt

Returns the square root of a specified number.

Tan

Returns the tangent of the specified angle.

Tanh

Returns the hyperbolic tangent of the specified angle.

Truncate

Calculates the integral part of a number.