Trigonometric functions

Trigonometric functions are supported for arbitrary uncertain values of different types. Like for elementary operations, a resampling approach is used for the computations.

Syntax

Because elementary operations should work on arbitrary uncertain values, a resampling approach is used to perform the mathematical operations. All mathematical operations thus return a vector containing the results of repeated element-wise operations (where each element is a resampled draw from the furnishing distribution(s) of the uncertain value(s)).

Each trigonometric function comes in two versions.

  • The first syntax allows skipping providing the number of draws, which is set to 10000 by default (e.g. cos(x::AbstractUncertainValue; n::Int = 10000).
  • Using the second syntax, you have to explicitly provide the number of draws (e.g. cos(x::AbstractUncertainValue, n::Int)).

Possible errors

Beware: if the support of the funishing distribution for an uncertain value lies partly outside the domain of the function, you risk encountering errors.

Supported trigonometric functions

Sine

Base.sin — Method
Base.sin(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the sine of the uncertain value x, where x is in radians. Computes the element-wise sine for n realizations.

source
Base.sin — Method
Base.sin(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the sine of the uncertain value x, where x is in radians. Computes the element-wise sine for n realizations.

source
Base.Math.sind — Method
Base.sind(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the sine of the uncertain value x, where x is in degrees. Computes the element-wise sine for n realizations.

source
Base.Math.sind — Method
Base.sind(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the sine of the uncertain value x, where x is in degrees. Computes the element-wise sine for n realizations.

source
Base.sinh — Method
Base.sinh(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the hyperbolic sine of the uncertain value x. Computes the element-wise hyperbolic sine for n realizations.

source
Base.sinh — Method
Base.sinh(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the hyperbolic sine of the uncertain value x. Computes the element-wise hyperbolic sine for n realizations.

source

Cosine

Base.cos — Method
Base.cos(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the cosine of the uncertain value x, where x is in radians. Computes the element-wise cosine for n realizations.

source
Base.cos — Method
Base.cos(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the cosine of the uncertain value x, where x is in radians. Computes the element-wise cosine for n realizations.

source
Base.Math.cosd — Method
Base.cos(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the cosine of the uncertain value x, where x is in degrees. Computes the element-wise cosine for n realizations.

source
Base.Math.cosd — Method
Base.cos(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the cosine of the uncertain value x, where x is in degrees. Computes the element-wise cosine for n realizations.

source
Base.cosh — Method
Base.cos(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the hyperbolic cosine of the uncertain value x. Computes the element-wise hyperbolic cosine for n realizations.

source
Base.cosh — Method
Base.cos(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the hyperbolic cosine of the uncertain value x. Computes the element-wise hyperbolic cosine for n realizations.

source

Tangent

Base.atan — Method
Base.atan(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the inverse tangent of the uncertain value x, where x is in radians. Computes the element-wise inverse tangent for n realizations.

source
Base.atan — Method
Base.atan(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the inverse tangent of the uncertain value x, where x is in radians. Computes the element-wise inverse tangent for n realizations.

source
Base.Math.atand — Method
Base.atand(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the inverse tangent of the uncertain value x, where x is in degrees. Computes the element-wise inverse tangent for n realizations.

source
Base.Math.atand — Method
Base.atand(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the inverse tangent of the uncertain value x, where x is in degrees. Computes the element-wise inverse tangent for n realizations.

source
Base.atanh — Method
Base.atanh(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the inverse hypoerbolic tangent of the uncertain value x. Computes the element-wise inverse hypoerbolic tangent for n realizations.

source
Base.atanh — Method
Base.atanh(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the inverse hypoerbolic tangent of the uncertain value x. Computes the element-wise inverse hypoerbolic tangent for n realizations.

source

Reciprocal trig functions

Cosecant

Base.Math.csc — Method
Base.csc(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the cosecant of the uncertain value x, where x is in radians. Computes the element-wise cosecant for n realizations.

source
Base.Math.csc — Method
Base.csc(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the cosecant of the uncertain value x, where x is in radians. Computes the element-wise cosecant for n realizations.

source
Base.Math.cscd — Method
Base.cscd(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the cosecant of the uncertain value x, where x is in degrees. Computes the element-wise cosecant for n realizations.

source
Base.Math.cscd — Method
Base.cscd(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the cosecant of the uncertain value x, where x is in degrees. Computes the element-wise cosecant for n realizations.

source
Base.Math.csch — Method
Base.cscd(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the hyperbolic cosecant of the uncertain value x, where x is in degrees. Computes the element-wise hyperbolic cosecant for n realizations.

source
Base.Math.csch — Method
Base.cscd(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the hyperbolic cosecant of the uncertain value x, where x is in degrees. Computes the element-wise hyperbolic cosecant for n realizations.

source

Secant

Base.Math.sec — Method
Base.sec(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the secant of the uncertain value x, where x is in radians. Computes the element-wise secant for n realizations.

source
Base.Math.sec — Method
Base.sec(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the secant of the uncertain value x, where x is in radians. Computes the element-wise secant for n realizations.

source
Base.Math.secd — Method
Base.secd(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the secant of the uncertain value x, where x is in degrees. Computes the element-wise cosecant for n realizations.

source
Base.Math.secd — Method
Base.secd(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the secant of the uncertain value x, where x is in degrees. Computes the element-wise cosecant for n realizations.

source
Base.Math.sech — Method
Base.sech(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the hyperbolic secant of the uncertain value x, where x is in degrees. Computes the element-wise hyperbolic secant for n realizations.

source
Base.Math.sech — Method
Base.sech(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the hyperbolic secant of the uncertain value x, where x is in degrees. Computes the element-wise hyperbolic secant for n realizations.

source

Cotangent

Base.Math.cot — Method
Base.cot(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the cotangent of the uncertain value x, where x is in radians. Computes the element-wise cotangent for n realizations.

source
Base.Math.cot — Method
Base.cot(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the cotangent of the uncertain value x, where x is in radians. Computes the element-wise cotangent for n realizations.

source
Base.Math.cotd — Method
Base.cotd(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the cotangent of the uncertain value x, where x is in degrees. Computes the element-wise cotangent for n realizations.

source
Base.Math.cotd — Method
Base.cotd(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the cotangent of the uncertain value x, where x is in degrees. Computes the element-wise cotangent for n realizations.

source
Base.Math.coth — Method
Base.coth(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the hyperbolic cotangent of the uncertain value x, where x is in radians. Computes the element-wise hyperbolic cotangent for n realizations.

source
Base.Math.coth — Method
Base.coth(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the hyperbolic cotangent of the uncertain value x, where x is in radians. Computes the element-wise hyperbolic cotangent for n realizations.

source

Inverse trig functions

Sine

Base.asin — Method
Base.asin(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the inverse sine of the uncertain value x, where x is in radians. Computes the element-wise inverse sine for n realizations.

source
Base.asin — Method
Base.asin(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the inverse sine of the uncertain value x, where x is in radians. Computes the element-wise inverse sine for n realizations.

source
Base.Math.asind — Method
Base.asind(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the inverse sine of the uncertain value x, where x is in degrees. Computes the element-wise inverse sine for n realizations.

source
Base.Math.asind — Method
Base.asind(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the inverse sine of the uncertain value x, where x is in degrees. Computes the element-wise inverse sine for n realizations.

source
Base.asinh — Method
Base.asinh(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the inverse hyperbolic sine of the uncertain value x. Computes the element-wise inverse hyperbolic csine for n realizations.

source
Base.asinh — Method
Base.asinh(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the inverse hyperbolic sine of the uncertain value x. Computes the element-wise inverse hyperbolic csine for n realizations.

source

Cosine

Base.acos — Method
Base.acos(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the inverse cosine of the uncertain value x, where x is in radians. Computes the element-wise inverse cosine for n realizations.

source
Base.acos — Method
Base.acos(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the inverse cosine of the uncertain value x, where x is in radians. Computes the element-wise inverse cosine for n realizations.

source
Base.Math.acosd — Method
Base.acosd(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the inverse cosine of the uncertain value x, where x is in degrees. Computes the element-wise inverse cosine for n realizations.

source
Base.Math.acosd — Method
Base.acosd(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the inverse cosine of the uncertain value x, where x is in degrees. Computes the element-wise inverse cosine for n realizations.

source
Base.acosh — Method
Base.acosh(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the inverse hyperbolic cosine of the uncertain value x. Computes the element-wise inverse hyperbolic cosine for n realizations.

source
Base.acosh — Method
Base.acosh(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the inverse hyperbolic cosine of the uncertain value x. Computes the element-wise inverse hyperbolic cosine for n realizations.

source

Tangent

Base.tan — Method
Base.tan(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the tangent of the uncertain value x, where x is in radians. Computes the element-wise tangent for n realizations.

source
Base.tan — Method
Base.tan(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the tangent of the uncertain value x, where x is in radians. Computes the element-wise tangent for n realizations.

source
Base.Math.tand — Method
Base.tand(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the tangent of the uncertain value x, where x is in degrees. Computes the element-wise tangent for n realizations.

source
Base.Math.tand — Method
Base.tand(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the tangent of the uncertain value x, where x is in degrees. Computes the element-wise tangent for n realizations.

source
Base.tanh — Method
Base.tanh(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the hyperbolic tangent of the uncertain value x. Computes the element-wise hyperbolic tangent for n realizations.

source
Base.tanh — Method
Base.tanh(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the hyperbolic tangent of the uncertain value x. Computes the element-wise hyperbolic tangent for n realizations.

source

Inverse cosecant

Base.Math.acsc — Method
Base.acsc(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the inverse cosecant of the uncertain value x, where x is in radians. Computes the element-wise inverse cosecant for n realizations.

source
Base.Math.acsc — Method
Base.acsc(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the inverse cosecant of the uncertain value x, where x is in radians. Computes the element-wise inverse cosecant for n realizations.

source
Base.Math.acscd — Method
Base.acscd(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the inverse cosecant of the uncertain value x, where x is in degrees. Computes the element-wise inverse cosecant for n realizations.

source
Base.Math.acscd — Method
Base.acscd(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the inverse cosecant of the uncertain value x, where x is in degrees. Computes the element-wise inverse cosecant for n realizations.

source
Base.Math.acsch — Method
Base.acscd(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the inverse hyperbolic cosecant of the uncertain value x. Computes the element-wise inverse hypoerbolic cosecant for n realizations.

source
Base.Math.acsch — Method
Base.acscd(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the inverse hyperbolic cosecant of the uncertain value x. Computes the element-wise inverse hypoerbolic cosecant for n realizations.

source

Inverse secant

Base.Math.asec — Method
Base.asec(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the inverse secant of the uncertain value x, where x is in radians. Computes the element-wise inverse secant for n realizations.

source
Base.Math.asec — Method
Base.asec(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the inverse secant of the uncertain value x, where x is in radians. Computes the element-wise inverse secant for n realizations.

source
Base.Math.asecd — Method
Base.asecd(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the inverse secant of the uncertain value x, where x is in degrees. Computes the element-wise inverse secant for n realizations.

source
Base.Math.asecd — Method
Base.asecd(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the inverse secant of the uncertain value x, where x is in degrees. Computes the element-wise inverse secant for n realizations.

source
Base.Math.asech — Method
Base.asech(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the inverse hyperbolic secant of the uncertain value x. Computes the element-wise inverse hyperbolic secant for n realizations.

source
Base.Math.asech — Method
Base.asech(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the inverse hyperbolic secant of the uncertain value x. Computes the element-wise inverse hyperbolic secant for n realizations.

source

Inverse cotangent

Base.Math.acot — Method
Base.acot(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the inverse cotangent of the uncertain value x, where x is in radians. Computes the element-wise inverse secant for n realizations.

source
Base.Math.acot — Method
Base.acot(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the inverse cotangent of the uncertain value x, where x is in radians. Computes the element-wise inverse secant for n realizations.

source
Base.Math.acotd — Method
Base.acotd(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the inverse cotangent of the uncertain value x, where x is in degrees. Computes the element-wise inverse secant for n realizations.

source
Base.Math.acotd — Method
Base.acotd(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the inverse cotangent of the uncertain value x, where x is in degrees. Computes the element-wise inverse secant for n realizations.

source
Base.Math.acoth — Method
Base.acoth(x::AbstractUncertainValue; n::Int = 10000) -> Vector{Float64}

Compute the inverse hyperbolic cotangent of the uncertain value x. Computes the element-wise inverse hyperbolic secant for n realizations.

source
Base.Math.acoth — Method
Base.acoth(x::AbstractUncertainValue, n::Int = 10000) -> Vector{Float64}

Compute the inverse hyperbolic cotangent of the uncertain value x. Computes the element-wise inverse hyperbolic secant for n realizations.

source

Other trig functions

Base.Math.sincos — Method
Base.sincos(x::AbstractUncertainValue; n::Int = 10000)

Simultaneously compute the sine and cosine of the uncertain value x, where x is in radians. Computes the element-wise sincos for n realizations.

source
Base.Math.sincos — Method
Base.sincos(x::AbstractUncertainValue, n::Int = 10000)

Simultaneously compute the sine and cosine of the uncertain value x, where x is in radians. Computes the element-wise sincos for n realizations.

source
Base.Math.sinc — Method
Base.sinc(x::AbstractUncertainValue; n::Int = 10000)

In an element-wise manner for n realizations of the uncertain value x, compute $\sin(\pi x) / (\pi x)$ if $x \neq 0$, and $1$ if $x = 0$.

source
Base.Math.sinc — Method
Base.sinc(x::AbstractUncertainValue, n::Int = 10000)

Compute $\sin(\pi x) / (\pi x)$ if $x \neq 0$, and $1$ if $x = 0$ element-wise over n realizations of the uncertain value x.

source
Base.Math.sinpi — Method
Base.sinpi(x::AbstractUncertainValue; n::Int = 10000)

Compute $\sin(\pi x)$ more accurately than sin(pi*x), especially for large x, in an element-wise over n realizations of the uncertain value x.

source
Base.Math.sinpi — Method
Base.sinpi(x::AbstractUncertainValue; n::Int = 10000)

Compute $\sin(\pi x)$ more accurately than sin(pi*x), especially for large x, in an element-wise over n realizations of the uncertain value x.

source
Base.Math.cosc — Method
Base.cosc(x::AbstractUncertainValue; n::Int = 10000)

Compute $\cos(\pi x) / x - \sin(\pi x) / (\pi x^2)$ if $x \neq 0$, and $0$ if $x = 0$, in an element-wise manner over n realizations of the uncertain value x.

This is the derivative of sinc(x).

source
Base.Math.cosc — Method
Base.cosc(x::AbstractUncertainValue, n::Int = 10000)

Compute $\cos(\pi x) / x - \sin(\pi x) / (\pi x^2)$ if $x \neq 0$, and $0$ if $x = 0$, in an element-wise manner over n realizations of the uncertain value x.

This is the derivative of sinc(x).

source
Base.Math.cospi — Method
Base.cospi(x::AbstractUncertainValue; n::Int = 10000)

Compute $\cos(\pi x)$ more accurately than cos(pi*x), especially for large x, in an element-wise over n realizations of the uncertain value x.

source
Base.Math.cospi — Method
Base.cospi(x::AbstractUncertainValue, n::Int = 10000)

Compute $\cos(\pi x)$ more accurately than cos(pi*x), especially for large x, in an element-wise over n realizations of the uncertain value x.

source