jscicalc.pobject.Power Class Reference

DFunction that calculates powers. More...

Inheritance diagram for jscicalc.pobject.Power:

jscicalc.pobject.DFunction jscicalc.pobject.PObject jscicalc.GObject
Collaboration diagram for jscicalc.pobject.Power:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Power ()
 Constructor.
double function (double x, double y)
 Calculates x to the power of y.
OObject function (OObject x, OObject y)
 Calculates x to the power of y.
String[] name_array ()
 Array used to construct name() and shortName() String objects.

Static Public Member Functions

static void main (String args[])

Static Private Attributes

static final String[] fname = { "^" }


Detailed Description

DFunction that calculates powers.

Author:
J. D. Lamb
Version:
Revision
1.5

Constructor & Destructor Documentation

jscicalc.pobject.Power.Power (  ) 

Constructor.

Sets a tooltip and shortcut.

References jscicalc.pobject.PObject.fshortcut, and jscicalc.pobject.PObject.ftooltip.

Referenced by jscicalc.pobject.Power.main().


Member Function Documentation

double jscicalc.pobject.Power.function ( double  x,
double  y 
) [virtual]

Calculates x to the power of y.

Parameters:
x The first value (left of symbol)
y The second value (right of symbol)
Returns:
The result of the operation

Implements jscicalc.pobject.DFunction.

OObject jscicalc.pobject.Power.function ( OObject  x,
OObject  y 
) [virtual]

Calculates x to the power of y.

Parameters:
x The first value (left of symbol)
y The second value (right of symbol)
Returns:
The result of the operation

Implements jscicalc.pobject.DFunction.

References jscicalc.OObject.pow().

String [] jscicalc.pobject.Power.name_array (  )  [virtual]

Array used to construct name() and shortName() String objects.

Returns:
an array

Implements jscicalc.pobject.PObject.

References jscicalc.pobject.Power.fname.

static void jscicalc.pobject.Power.main ( String  args[]  )  [static]


Member Data Documentation

final String [] jscicalc.pobject.Power.fname = { "^" } [static, private]


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

Generated on Sun Jun 1 08:58:50 2008 for Java Scientific Calculator by  doxygen 1.5.5