Public Member Functions | Static Public Member Functions | Static Private Attributes

jscicalc.pobject.Divide Class Reference

Division operation. More...

Collaboration diagram for jscicalc.pobject.Divide:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Divide ()
 Constructor.
double function (double x, double y)
 Calculate x / y.
OObject function (OObject x, OObject y)
 Calculate x / 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

Division operation.

Author:
J. D. Lamb
Version:
Revision:
1.5

Constructor & Destructor Documentation

jscicalc.pobject.Divide.Divide (  ) 

Constructor.

Sets a tooltip and shortcut.

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

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


Member Function Documentation

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

Calculate x / 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.MFunction.

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

Calculate x / 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.MFunction.

References jscicalc.OObject.divide().

static void jscicalc.pobject.Divide.main ( String  args[]  )  [static]
String [] jscicalc.pobject.Divide.name_array (  )  [virtual]

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

Returns:
an array

Implements jscicalc.pobject.PObject.

References jscicalc.pobject.Divide.fname.


Member Data Documentation

final String [] jscicalc.pobject.Divide.fname = { "÷" } [static, private]

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