Class Monomial
Class defining a multivariate monomial.
Namespace: BRIDGES.Arithmetic.Polynomials.Multivariate
Assembly: BRIDGES.dll
Syntax
public class Monomial : object
Constructors
| Improve this Doc View SourceMonomial(Monomial)
Declaration
public Monomial(Monomial other)
Parameters
Type | Name | Description |
---|---|---|
Monomial | other | Monomial to deep copy. |
Monomial(Int32[])
Initialises a new instance of Monomial class by defining each variable's exponent .
Declaration
public Monomial(params int[] exponents)
Parameters
Type | Name | Description |
---|---|---|
Int32[] | exponents | Variable's exponents. |
Properties
| Improve this Doc View SourceItem[Int32]
Gets the exponent of the variable at a given index.
Declaration
public int this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index of the variable whose exponent to get. |
Property Value
Type | Description |
---|---|
Int32 | The exponent of the variable at the given index. |
One
Gets a new Monomial, constant equal to one.
Declaration
public static Monomial One { get; }
Property Value
Type | Description |
---|---|
Monomial |
TotalDegree
Gets the total degree of this Monomial.
Declaration
public int TotalDegree { get; }
Property Value
Type | Description |
---|---|
Int32 |
VariableCount
Gets the number of variable of this Monomial.
Declaration
public int VariableCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceEvaluateAt(Double[])
Evaluates this Monomial at a given point.
Declaration
public virtual double EvaluateAt(double[] point)
Parameters
Type | Name | Description |
---|---|---|
Double[] | point | Point to evaluate at. |
Returns
Type | Description |
---|---|
Double | The value of this Monomial at the given point. |
Multiply(Monomial, Monomial)
Computes the multiplication of two Monomial.
Declaration
public static Monomial Multiply(Monomial left, Monomial right)
Parameters
Type | Name | Description |
---|---|---|
Monomial | left | Left Monomial for the multiplication. |
Monomial | right | Right Monomial for the multiplication. |
Returns
Type | Description |
---|---|
Monomial | The new Monomial resulting from the multiplication. |
Operators
| Improve this Doc View SourceMultiply(Monomial, Monomial)
Computes the multiplication of two Monomial.
Declaration
public static Monomial operator *(Monomial left, Monomial right)
Parameters
Type | Name | Description |
---|---|---|
Monomial | left | Left Monomial for the multiplication. |
Monomial | right | Right Monomial for the multiplication. |
Returns
Type | Description |
---|---|
Monomial | The new Monomial resulting from the multiplication. |