amath  1.8.5
Simple command line calculator
HyperbolicArcCotangentNode Class Reference

An inverse hyperbolic cotangent function in a syntax tree. More...

#include <hyparccotangent.h>

Inheritance diagram for HyperbolicArcCotangentNode:
Collaboration diagram for HyperbolicArcCotangentNode:

Public Member Functions

 HyperbolicArcCotangentNode (ExpressionNode *expression, char *text, char *sys)
 
NumberEvaluate ()
 
- Public Member Functions inherited from FunctionNode
 FunctionNode (ExpressionNode *expression, char *text, char *sys)
 
 ~FunctionNode ()
 
int GetPrecedence ()
 
char * GetText ()
 
virtual SyntaxNodeGetNext ()
 
virtual void Attach (SyntaxNode *node)
 
virtual void Detach (SyntaxNode *node)
 
virtual void Replace (SyntaxNode *n, SyntaxNode *x)
 
- Public Member Functions inherited from ExpressionNode
 ExpressionNode ()
 
 ExpressionNode (Number *value)
 
virtual ~ExpressionNode ()
 
NodeType GetNodeType ()
 
virtual bool IsSilent ()
 
char * GetTextCode ()
 
char * Execute ()
 
- Public Member Functions inherited from SyntaxNode
 SyntaxNode ()
 
virtual ~SyntaxNode ()
 
void SetFirstNode ()
 
bool GetFirstNode () const
 
SyntaxNodeGetParent () const
 
void SetParent (SyntaxNode *node)
 
virtual ReductionType GetReductionType ()
 
virtual void ResetIterator ()
 

Static Public Member Functions

static FunctionNodeCreate (ExpressionNode *expression, char *text, char *sys)
 

Additional Inherited Members

- Protected Member Functions inherited from FunctionNode
virtual char * GetNodeText ()
 
- Protected Attributes inherited from FunctionNode
ExpressionNodeexpression
 
char * name
 
char * sysname
 
- Protected Attributes inherited from ExpressionNode
Numberresult
 
- Protected Attributes inherited from SyntaxNode
CharBufferoutput
 
SyntaxNodeparent
 
SyntaxNodeiterator
 
bool leftBottom
 

Detailed Description

An inverse hyperbolic cotangent function in a syntax tree.

More info on the inverse hyperbolic cotangent function is available at Wikipedia: https://wikipedia.org/wiki/Inverse_hyperbolic_cotangent

Definition at line 42 of file hyparccotangent.h.

Constructor & Destructor Documentation

◆ HyperbolicArcCotangentNode()

HyperbolicArcCotangentNode::HyperbolicArcCotangentNode ( ExpressionNode expression,
char *  text,
char *  sys 
)
explicit

Definition at line 32 of file hyparccotangent.cpp.

References FunctionNode::FunctionNode().

Referenced by Create().

32  :
33  FunctionNode(expression, text, sys)
34 {
35 }
FunctionNode(ExpressionNode *expression, char *text, char *sys)
Definition: node.cpp:34
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ Create()

FunctionNode * HyperbolicArcCotangentNode::Create ( ExpressionNode expression,
char *  text,
char *  sys 
)
static

Definition at line 37 of file hyparccotangent.cpp.

References HyperbolicArcCotangentNode().

38 {
39  return new HyperbolicArcCotangentNode(expression, text, sys);
40 }
HyperbolicArcCotangentNode(ExpressionNode *expression, char *text, char *sys)
Here is the call graph for this function:

◆ Evaluate()

Number * HyperbolicArcCotangentNode::Evaluate ( )
virtual

Implements ExpressionNode.

Definition at line 42 of file hyparccotangent.cpp.

References ExpressionNode::Evaluate(), FunctionNode::expression, Number::HypArcCotangent(), and ExpressionNode::result.

43 {
45  return result;
46 }
virtual Number * HypArcCotangent()=0
virtual Number * Evaluate()=0
Number * result
Definition: nodes.h:116
ExpressionNode * expression
Definition: node.h:66
Here is the call graph for this function:

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