LanguageExt.Core

LanguageExt.Core Traits Floating

Contents

interface Floating <A> Source #

Floating point number trait

Parameters

type A

The floating point value type

Methods

method A Pi () Source #

Returns an approximation of pi.

Parameters

returns

A reasonable approximation of pi in this type

method A Exp (A x) Source #

The exponential function.

Parameters

param x

The value for which we are calculating the exponential

returns

method A Sqrt (A x) Source #

Calculates the square root of a value.

Parameters

param x

The value for which we are calculating the square root.

returns

.

method A Log (A x) Source #

Calculates the natural logarithm of a value.

Parameters

param x

The value for which we are calculating the natural logarithm.

returns

.

method A Pow (A x, A y) Source #

Raises x to the power y

Parameters

param x

The base to be raised to y

param y

The exponent to which we are raising x

returns

.

method A LogBase (A x, A y) Source #

Calculates the logarithm of a value with respect to an arbitrary base.

Parameters

param x

The base to use for the logarithm of t

param y

The value for which we are calculating the logarithm.

returns

.

method A Sin (A x) Source #

Calculates the sine of an angle.

Parameters

param x

An angle, in radians

returns

method A Cos (A x) Source #

Calculates the cosine of an angle.

Parameters

param x

An angle, in radians

returns

method A Tan (A x) Source #

Calculates the tangent of an angle.

Parameters

param x

An angle, in radians

returns

method A Asin (A x) Source #

Calculates an arcsine.

Parameters

param x

The value for which an arcsine is to be calculated.

returns

, in radians.

method A Acos (A x) Source #

Calculates an arc-cosine.

Parameters

param x

The value for which an arc-cosine is to be calculated

returns

, in radians

method A Atan (A x) Source #

Calculates an arc-tangent.

Parameters

param x

The value for which an arc-tangent is to be calculated

returns

, in radians

method A Sinh (A x) Source #

Calculates a hyperbolic sine.

Parameters

param x

The value for which a hyperbolic sine is to be calculated

returns

method A Cosh (A x) Source #

Calculates a hyperbolic cosine.

Parameters

param x

The value for which a hyperbolic cosine is to be calculated

returns

method A Tanh (A x) Source #

Calculates a hyperbolic tangent.

Parameters

param x

The value for which a hyperbolic tangent is to be calculated.

returns

method A Asinh (A x) Source #

Calculates an area hyperbolic sine

Parameters

param x

The value for which an area hyperbolic sine is to be calculated.

returns

.

method A Acosh (A x) Source #

Calculates an area hyperbolic cosine.

Parameters

param x

The value for which an area hyperbolic cosine is to be calculated.

returns

.

method A Atanh (A x) Source #

Calculates an area hyperbolic tangent.

Parameters

param x

The value for which an area hyperbolic tangent is to be calculated.

returns

class Trait Source #

Methods

method Ratio<A> Ratio <A> (A num, A den) Source #

Ratio constructor

Parameters

type A

Value type

param num

Numerator

param den

Denominator

returns

Ratio struct

method A pi <FLOAT, A> () Source #

where FLOAT : Floating<A>

Returns an approximation of pi.

Parameters

returns

A reasonable approximation of pi in this type

method A exp <FLOAT, A> (A x) Source #

where FLOAT : Floating<A>

The exponential function.

Parameters

param x

The value for which we are calculating the exponential

returns

method A sqrt <FLOAT, A> (A x) Source #

where FLOAT : Floating<A>

Calculates the square root of a value.

Parameters

param x

The value for which we are calculating the square root.

returns

.

method A log <FLOAT, A> (A x) Source #

where FLOAT : Floating<A>

Calculates the natural logarithm of a value.

Parameters

param x

The value for which we are calculating the natural logarithm.

returns

.

method A pow <FLOAT, A> (A x, A y) Source #

where FLOAT : Floating<A>

Raises x to the power y

Parameters

param x

The base to be raised to y

param y

The exponent to which we are raising x

returns

.

method A logBase <FLOAT, A> (A x, A y) Source #

where FLOAT : Floating<A>

Calculates the logarithm of a value with respect to an arbitrary base.

Parameters

param b

The base to use for the logarithm of x

param x

The value for which we are calculating the logarithm.

returns

.

method A sin <FLOAT, A> (A x) Source #

where FLOAT : Floating<A>

Calculates the sine of an angle.

Parameters

param x

An angle, in radians

returns

method A cos <FLOAT, A> (A x) Source #

where FLOAT : Floating<A>

Calculates the cosine of an angle.

Parameters

param x

An angle, in radians

returns

method A tan <FLOAT, A> (A x) Source #

where FLOAT : Floating<A>

Calculates the tangent of an angle.

Parameters

param x

An angle, in radians

returns

method A asin <FLOAT, A> (A x) Source #

where FLOAT : Floating<A>

Calculates an arcsine.

Parameters

param x

The value for which an arcsine is to be calculated.

returns

, in radians.

method A acos <FLOAT, A> (A x) Source #

where FLOAT : Floating<A>

Calculates an arc-cosine.

Parameters

param x

The value for which an arc-cosine is to be calculated

returns

, in radians

method A atan <FLOAT, A> (A x) Source #

where FLOAT : Floating<A>

Calculates an arc-tangent.

Parameters

param x

The value for which an arc-tangent is to be calculated

returns

, in radians

method A sinh <FLOAT, A> (A x) Source #

where FLOAT : Floating<A>

Calculates a hyperbolic sine.

Parameters

param x

The value for which a hyperbolic sine is to be calculated

returns

method A cosh <FLOAT, A> (A x) Source #

where FLOAT : Floating<A>

Calculates a hyperbolic cosine.

Parameters

param x

The value for which a hyperbolic cosine is to be calculated

returns

method A tanh <FLOAT, A> (A x) Source #

where FLOAT : Floating<A>

Calculates a hyperbolic tangent.

Parameters

param x

The value for which a hyperbolic tangent is to be calculated.

returns

method A asinh <FLOAT, A> (A x) Source #

where FLOAT : Floating<A>

Calculates an area hyperbolic sine

Parameters

param x

The value for which an area hyperbolic sine is to be calculated.

returns

.

method A acosh <FLOAT, A> (A x) Source #

where FLOAT : Floating<A>

Calculates an area hyperbolic cosine.

Parameters

param x

The value for which an area hyperbolic cosine is to be calculated.

returns

.

method A atanh <FLOAT, A> (A x) Source #

where FLOAT : Floating<A>

Calculates an area hyperbolic tangent.

Parameters

param x

The value for which an area hyperbolic tangent is to be calculated.

returns