This class represents a power function. More...
Public Member Functions | |
| Power (OObject expression1, OObject expression2) | |
| Construct from DFunction. | |
| Product | negate () |
| jscicalc.StringArray | toHTMLSubString (int maxChars, int precision, final Base base, final Notation notation, double polarFactor) |
| Function to create an HTML string representation of the Power. | |
| OObject | auto_simplify () |
| Simplify a Power expression. | |
| int | compareTo (Power power) |
| The comparison operator. | |
Package Functions | |
| OObject | base () |
| Get base expression. | |
| OObject | exponent () |
| Get exponent expression. | |
This class represents a power function.
Construct from DFunction.
| expression1 | The first expression | |
| expression2 | The second expression |
Referenced by jscicalc.expression.Power.auto_simplify().
| OObject jscicalc.expression.Power.auto_simplify | ( | ) |
Simplify a Power expression.
Returns Error or Complex or jscicalc.Power.
References jscicalc.OObject.auto_simplify(), jscicalc.expression.Product.integer_power(), jscicalc.complex.Complex.isInteger(), jscicalc.expression.Product.multiply(), jscicalc.complex.Complex.pow(), and jscicalc.expression.Power.Power().
| OObject jscicalc.expression.Power.base | ( | ) | [package] |
Get base expression.
| int jscicalc.expression.Power.compareTo | ( | Power | power | ) |
The comparison operator.
| power | The Power to be compared. |
| OObject jscicalc.expression.Power.exponent | ( | ) | [package] |
Get exponent expression.
| Product jscicalc.expression.Power.negate | ( | ) |
References jscicalc.expression.Product.negate().
| jscicalc.StringArray jscicalc.expression.Power.toHTMLSubString | ( | int | maxChars, | |
| int | precision, | |||
| final Base | base, | |||
| final Notation | notation, | |||
| double | polarFactor | |||
| ) |
Function to create an HTML string representation of the Power.
The arguments are ignored except for Complex values.
| maxChars | ignored | |
| precision | ignored | |
| base | ignored | |
| notation | ignored | |
| polarFactor | ignored |
References jscicalc.StringArray.StringArray().
1.7.1