Sqrt class

The square root function. A specialisation of Root.

Inheritance

Constructors

Sqrt(Expression arg)
Creates the square root of arg.

Properties

arg Expression
no setterinherited
args List<Variable>
List of arguments of this function. Arguments ust be of type Variable.
getter/setter pairinherited
domainDimension int
The dimension of the domain of definition of this function.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
n int
N-th root.
latefinalinherited
name String
Name of this function.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

asPower() Expression
Returns the power form of this root. E.g. root_5(x) = x^(1/5)
inherited
derive(String toVar) Expression
Derives this expression with respect to the given variable.
inherited
evaluate(EvaluationType type, ContextModel context) → dynamic
Evaluates this expression according to given type and context.
override
getParam(int i) Variable
Returns the i-th parameter of this function (0-based).
inherited
getParamByName(String name) Variable
Returns the parameter with the given name.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
simplify() Expression
Possible simplifications:
override
toFullString() String
Returns the full string representation of this function. This could include the name, variables and expression.
inherited
toString() String
Returns a string version of this expression. Subclasses should override this method. The output should be kept compatible with the Parser.
override

Operators

operator %(Expression exp) Expression
Modulo operator. Creates a Modulo expression.
inherited
operator &(MathFunction g) MathFunction
Compose operator. Creates a CompositeFunction.
inherited
operator *(Expression exp) Expression
Multiply operator. Creates a Times expression.
inherited
operator +(Expression exp) Expression
Add operator. Creates a Plus expression.
inherited
operator -(Expression exp) Expression
Subtract operator. Creates a Minus expression.
inherited
operator /(Expression exp) Expression
Divide operator. Creates a Divide expression.
inherited
operator ==(Object other) bool
The equality operator.
inherited
operator ^(Expression exp) Expression
Power operator. Creates a Power expression.
inherited
operator unary-() Expression
Unary minus operator. Creates a UnaryMinus expression.
inherited