  ## Utils

← Back to list of classes

## Description

Summary

Some additional functions that would be barely
ever used by the user, but kept for "just in case" as public

## Members

• ### SmartExpandOver (AngouriMath. Entity, AngouriMath. Entity. Variable)

Method

Summary

Performs the expansion operation over the given variable

• ### TryGetPolyLinear (AngouriMath. Entity, AngouriMath. Entity. Variable, AngouriMath. Entity@, AngouriMath. Entity@)

Method

Summary

Extracts the linear coefficient and the bias over a variable
a x + b

Parameter "expr"

From which to extract the linear function

Parameter "variable"

Over which to extract

Parameter "a"

The linear coefficient

Parameter "b"

The bias

Returns

Whether the extract was successful

• ### TryGetPolynomial (AngouriMath. Entity, AngouriMath. Entity. Variable, System. Collections. Generic. Dictionary{PeterO. Numbers. EInteger, AngouriMath. Entity}@)

Method

Summary

Extracts a polynomial with integer powers

Parameter "expr"

From which to extract the polynomial

Parameter "variable"

Over which variable to extract the polynomial

Parameter "dst"

Where to put the dictionary, whose keys
are powers, and values - coefficients

Returns

Whether the input expression is a valid polynomial

• ### TryGetPolyQuadratic (AngouriMath. Entity, AngouriMath. Entity. Variable, AngouriMath. Entity@, AngouriMath. Entity@, AngouriMath. Entity@)

Method

Summary

Extracts the quadratic coefficient, linear coefficient and the bias over a variable
a x ^ 2 + b x + c

Parameter "expr"

From which to extract the quadratic function

Parameter "variable"

Over which to extract

Parameter "a"

Parameter "b"

The linear coefficient

Parameter "c"

The bias

Returns

Whether the extract was successful

2019-2021 Angouri · Project's repo · Site's repo · Octicons