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

jscicalc.pobject.Subtract Class Reference

Subtraction. More...

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

List of all members.

Public Member Functions

 Subtract ()
 Constructor.
double function (double x, double y)
 This function subtracts y from x.
double function (double x)
 This changes the sign of x (unary minus).
OObject function (OObject x, OObject y)
 This function subtracts y from x.
OObject function (OObject x)
 This changes the sign of x (unary minus).
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

Subtraction.

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

Constructor & Destructor Documentation

jscicalc.pobject.Subtract.Subtract (  ) 

Constructor.

Sets a tooltip and shortcut.

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

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


Member Function Documentation

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

This function subtracts y from x.

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

Implements jscicalc.pobject.AFunction.

double jscicalc.pobject.Subtract.function ( double  x  )  [virtual]

This changes the sign of x (unary minus).

Parameters:
x The value (right of symbol)
Returns:
The result of the operation

Implements jscicalc.pobject.AFunction.

OObject jscicalc.pobject.Subtract.function ( OObject  x  )  [virtual]

This changes the sign of x (unary minus).

Parameters:
x The value (right of symbol)
Returns:
The result of the operation

Implements jscicalc.pobject.AFunction.

References jscicalc.OObject.negate().

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

This function subtracts y from x.

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

Implements jscicalc.pobject.AFunction.

References jscicalc.OObject.subtract().

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

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

Returns:
an array

Implements jscicalc.pobject.PObject.

References jscicalc.pobject.Subtract.fname.


Member Data Documentation

final String [] jscicalc.pobject.Subtract.fname = { "−" } [static, private]

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