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

jscicalc.pobject.Square Class Reference

Square operation. More...

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

List of all members.

Public Member Functions

 Square ()
 Constructor.
double function (double x)
 Square function x * x.
OObject function (OObject x)
 Square function x * x.
String[] name_array ()
 Array used to construct name() and shortName() String objects.
String shortName ()
 The short version of the name.

Static Public Member Functions

static void main (String args[])

Static Private Attributes

static final String[] fname = { "<sup>2</sup>" }

Detailed Description

Square operation.

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

Constructor & Destructor Documentation

jscicalc.pobject.Square.Square (  ) 

Constructor.

Sets a tooltip and shortcut.

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

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


Member Function Documentation

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

Square function x * x.

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

Implements jscicalc.pobject.LFunction.

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

Square function x * x.

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

Implements jscicalc.pobject.LFunction.

References jscicalc.OObject.square().

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

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

Returns:
an array

Implements jscicalc.pobject.PObject.

References jscicalc.pobject.Square.fname.

String jscicalc.pobject.Square.shortName (  ) 

The short version of the name.

Used for the key.

Returns:
short version of name.

Reimplemented from jscicalc.pobject.PObject.


Member Data Documentation

final String [] jscicalc.pobject.Square.fname = { "<sup>2</sup>" } [static, private]

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