Skip to content

ExtendedNumerics.BigDecimal.Cot(ExtendedNumerics.BigDecimal,int)

Adam White edited this page Oct 7, 2024 · 1 revision

BigDecimal.Cot(BigDecimal, int) Method

Arbitrary precision cotangent function.
The input must not be zero, as the cotangent is undefined at that value.

public static ExtendedNumerics.BigDecimal Cot(ExtendedNumerics.BigDecimal radians, int precision);

Parameters

radians BigDecimal

An angle, measured in radians, which is not zero, π or a multiple of π.

precision System.Int32

The desired precision in terms of the number of digits to the right of the decimal.

Returns

BigDecimal
The cotangent of radians, in radians.

Exceptions

System.ArgumentException
Argument radians cannot be zero.

System.ArgumentException
Argument radians cannot be π or a multiple of π.

Clone this wiki locally