Table of Contents

Struct Builder

Namespace
xFunc.Maths
Assembly
xFunc.Maths.dll

The expression builder.

public struct Builder
Inherited Members

Constructors

Builder(double)

Initializes a new instance of the Builder struct.

public Builder(double number)

Parameters

number double

The initial value of builder.

Builder(string)

Initializes a new instance of the Builder struct.

public Builder(string variable)

Parameters

variable string

The initial value of builder.

Builder(IExpression)

Initializes a new instance of the Builder struct.

public Builder(IExpression initial)

Parameters

initial IExpression

The initial value of builder.

Properties

Expression

Gets the current expression.

public readonly IExpression Expression { get; }

Property Value

IExpression

Methods

Abs()

Creates the Abs function. The Current state is used as argument.

public Builder Abs()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Add(double)

Creates the Add operation. The Current state is used as summand.

public Builder Add(double summand)

Parameters

summand double

The summand (number).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Add(string)

Creates the Add operation. The Current state is used as summand.

public Builder Add(string summand)

Parameters

summand string

The summand (variable).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Add(IExpression)

Creates the Add operation. The Current state is used as summand.

public Builder Add(IExpression summand)

Parameters

summand IExpression

The summand (expression).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Arccos()

Creates the Arccos operation. The Current state is used as argument.

public Builder Arccos()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Arccot()

Creates the Arccot operation. The Current state is used as argument.

public Builder Arccot()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Arccsc()

Creates the Arccsc operation. The Current state is used as argument.

public Builder Arccsc()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Arcosh()

Creates the Arcosh operation. The Current state is used as argument.

public Builder Arcosh()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Arcoth()

Creates the Arcoth operation. The Current state is used as argument.

public Builder Arcoth()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Arcsch()

Creates the Arcsch operation. The Current state is used as argument.

public Builder Arcsch()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Arcsec()

Creates the Arcsec operation. The Current state is used as argument.

public Builder Arcsec()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Arcsin()

Creates the Arcsin operation. The Current state is used as argument.

public Builder Arcsin()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Arctan()

Creates the Arctan operation. The Current state is used as argument.

public Builder Arctan()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Arsech()

Creates the Arsech operation. The Current state is used as argument.

public Builder Arsech()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Arsinh()

Creates the Arsinh operation. The Current state is used as argument.

public Builder Arsinh()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Artanh()

Creates the Artanh operation. The Current state is used as argument.

public Builder Artanh()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Cos()

Creates the Cos operation. The Current state is used as argument.

public Builder Cos()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Cosh()

Creates the Cosh operation. The Current state is used as argument.

public Builder Cosh()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Cot()

Creates the Cot operation. The Current state is used as argument.

public Builder Cot()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Coth()

Creates the Coth operation. The Current state is used as argument.

public Builder Coth()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Csc()

Creates the Csc operation. The Current state is used as argument.

public Builder Csc()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Csch()

Creates the Csch operation. The Current state is used as argument.

public Builder Csch()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Custom(Func<IExpression, IExpression>)

Inserts a custom expression to builder.

public Builder Custom(Func<IExpression, IExpression> customExpression)

Parameters

customExpression Func<IExpression, IExpression>

The custom expression.

Returns

Builder

The Current instance of builder.

Div(double)

Creates the Div operation. The Current state is used as numerator.

public Builder Div(double denominator)

Parameters

denominator double

The denominator (number).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Div(string)

Creates the Div operation. The Current state is used as numerator.

public Builder Div(string denominator)

Parameters

denominator string

The denominator (variable).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Div(IExpression)

Creates the Div operation. The Current state is used as numerator.

public Builder Div(IExpression denominator)

Parameters

denominator IExpression

The denominator (expression).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Exp()

Creates the Exp function. The Current state is used as argument.

public Builder Exp()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Lb()

Creates the Lb function. The Current state is used as argument.

public Builder Lb()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Lg()

Creates the Lg function. The Current state is used as argument.

public Builder Lg()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Ln()

Creates the Ln function. The Current state is used as argument.

public Builder Ln()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Log(double)

Creates the Log operation. The Current state is used as argument.

public Builder Log(double @base)

Parameters

base double

The base (number).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Log(string)

Creates the Log operation. The Current state is used as argument.

public Builder Log(string @base)

Parameters

base string

The base (variable).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Log(IExpression)

Creates the Log operation. The Current state is used as argument.

public Builder Log(IExpression @base)

Parameters

base IExpression

The base (expression).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Mul(double)

Creates the Mul operation. The Current state is used as factor.

public Builder Mul(double factor)

Parameters

factor double

The factor (number).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Mul(string)

Creates the Mul operation. The Current state is used as factor.

public Builder Mul(string factor)

Parameters

factor string

The factor (variable).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Mul(IExpression)

Creates the Mul operation. The Current state is used as factor.

public Builder Mul(IExpression factor)

Parameters

factor IExpression

The factor (expression).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Pow(double)

Creates the Pow operation. The Current state is used as base of power.

public Builder Pow(double exponent)

Parameters

exponent double

The exponent (number).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Pow(string)

Creates the Pow operation. The Current state is used as base of power.

public Builder Pow(string exponent)

Parameters

exponent string

The exponent (variable).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Pow(IExpression)

Creates the Pow operation. The Current state is used as base of power.

public Builder Pow(IExpression exponent)

Parameters

exponent IExpression

The exponent (expression).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Root(double)

Creates the Root operation. The Current state is used as radicand.

public Builder Root(double degree)

Parameters

degree double

The degree (number).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Root(string)

Creates the Root operation. The Current state is used as radicand.

public Builder Root(string degree)

Parameters

degree string

The degree (variable).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Root(IExpression)

Creates the Root operation. The Current state is used as radicand.

public Builder Root(IExpression degree)

Parameters

degree IExpression

The degree (expression).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Sec()

Creates the Sec operation. The Current state is used as argument.

public Builder Sec()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Sech()

Creates the Sech operation. The Current state is used as argument.

public Builder Sech()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Sin()

Creates the Sin operation. The Current state is used as argument.

public Builder Sin()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Sinh()

Creates the Sinh operation. The Current state is used as argument.

public Builder Sinh()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Sqrt()

Creates the Sqrt function. The Current state is used as argument.

public Builder Sqrt()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Sub(double)

Creates the Sub operation. The Current state is used as minuend.

public Builder Sub(double subtrahend)

Parameters

subtrahend double

The subtrahend (number).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Sub(string)

Creates the Sub operation. The Current state is used as minuend.

public Builder Sub(string subtrahend)

Parameters

subtrahend string

The subtrahend (variable).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Sub(IExpression)

Creates the Sub operation. The Current state is used as minuend.

public Builder Sub(IExpression subtrahend)

Parameters

subtrahend IExpression

The subtrahend (expression).

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Tan()

Creates the Tan operation. The Current state is used as argument.

public Builder Tan()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.

Tanh()

Creates the Tanh operation. The Current state is used as argument.

public Builder Tanh()

Returns

Builder

The builder.

Exceptions

ArgumentNullException

The Current builder is empty.