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

jscicalc.pobject.Cos Class Reference

Cosine operation. More...

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

List of all members.

Public Member Functions

 Cos (AngleType angleType)
 Constructor.
double function (double x)
 Cosine of x.
OObject function (OObject x)
 Cosine of x.
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 = { "c", "o", "s", " " }

Detailed Description

Cosine operation.

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

Constructor & Destructor Documentation

jscicalc.pobject.Cos.Cos ( AngleType  angleType  ) 

Constructor.

Sets a tooltip and shortcut.

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

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


Member Function Documentation

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

Cosine of x.

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

Implements jscicalc.pobject.RFunction.

References jscicalc.pobject.Trig.scale.

OObject jscicalc.pobject.Cos.function ( OObject  x  )  [virtual]
static void jscicalc.pobject.Cos.main ( String  args[]  )  [static]
String [] jscicalc.pobject.Cos.name_array (  )  [virtual]

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

Returns:
an array

Implements jscicalc.pobject.PObject.

References jscicalc.pobject.Cos.fname.


Member Data Documentation

final String [] jscicalc.pobject.Cos.fname = { "c", "o", "s", " " } [static, private]

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