|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.epochx.representation.Node<TYPE>
com.epochx.representation.FunctionNode<java.lang.Double>
com.epochx.representation.dbl.CotangentFunction
public class CotangentFunction
A FunctionNode which performs the reciprocal trigonometric
function of cotangent. Cotangent x is equal to 1/tan x.
| Constructor Summary | |
|---|---|
CotangentFunction()
Construct a CotangentFunction with no children. |
|
CotangentFunction(Node<java.lang.Double> child)
Construct a CotangentFunction with one child. |
|
| Method Summary | |
|---|---|
java.lang.Double |
evaluate()
Evaluating a CotangentFunction involves calculating tan of the
child once it's been evaluated, then dividing 1 by the result. |
java.lang.String |
getFunctionName()
Get the unique name that identifies this function. |
| Methods inherited from class com.epochx.representation.FunctionNode |
|---|
equals, toString |
| Methods inherited from class com.epochx.representation.Node |
|---|
clone, getArity, getChild, getChildren, getDepth, getFunctionNodes, getLength, getNodesAtDepth, getNoDistinctFunctions, getNoDistinctTerminals, getNoFunctions, getNoTerminals, getNthNode, getTerminalNodes, hashCode, setChild, setChildren, setNthNode |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CotangentFunction()
public CotangentFunction(Node<java.lang.Double> child)
child - The child which cotangent will be performed on.| Method Detail |
|---|
public java.lang.Double evaluate()
CotangentFunction involves calculating tan of the
child once it's been evaluated, then dividing 1 by the result.
evaluate in class Node<java.lang.Double>public java.lang.String getFunctionName()
getFunctionName in class FunctionNode<java.lang.Double>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||