Public Member Functions | Package Functions

jscicalc.expression.Power Class Reference

This class represents a power function. More...

List of all members.

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.

Detailed Description

This class represents a power function.

See also:
Dyadic
Author:
J. D. Lamb
Version:
Revision:
1.6

Constructor & Destructor Documentation

jscicalc.expression.Power.Power ( OObject  expression1,
OObject  expression2 
)

Construct from DFunction.

Parameters:
expression1 The first expression
expression2 The second expression

Referenced by jscicalc.expression.Power.auto_simplify().


Member Function Documentation

OObject jscicalc.expression.Power.auto_simplify (  ) 
OObject jscicalc.expression.Power.base (  )  [package]

Get base expression.

Returns:
base of power
int jscicalc.expression.Power.compareTo ( Power  power  ) 

The comparison operator.

Parameters:
power The Power to be compared.
Returns:
integer indicating how expression is compared to this.
OObject jscicalc.expression.Power.exponent (  )  [package]

Get exponent expression.

Returns:
exponent of power
Product jscicalc.expression.Power.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.

Parameters:
maxChars ignored
precision ignored
base ignored
notation ignored
polarFactor ignored
Returns:
a String representing the variable.

References jscicalc.StringArray.StringArray().


The documentation for this class was generated from the following file: