Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Graph::CartesianFunction Class Reference

#include <cartesian_function.h>

Inheritance diagram for Graph::CartesianFunction:
Shared::Function

Classes

struct  Point
 

Public Member Functions

 CartesianFunction (const char *text=nullptr, KDColor color=KDColorBlack)
 
bool displayDerivative ()
 
void setDisplayDerivative (bool display)
 
double approximateDerivative (double x, Poincare::Context *context) const
 
double sumBetweenBounds (double start, double end, Poincare::Context *context) const override
 
Point nextMinimumFrom (double start, double step, double max, Poincare::Context *context) const
 
Point nextMaximumFrom (double start, double step, double max, Poincare::Context *context) const
 
double nextRootFrom (double start, double step, double max, Poincare::Context *context) const
 
Point nextIntersectionFrom (double start, double step, double max, Poincare::Context *context, const Shared::Function *function) const
 
char symbol () const override
 
- Public Member Functions inherited from Shared::Function
 Function (const char *name=nullptr, KDColor color=KDColorBlack)
 
virtual ~Function ()
 
Functionoperator= (const Function &other)
 
Functionoperator= (Function &&other)=delete
 
 Function (const Function &other)=delete
 
 Function (Function &&other)=delete
 
virtual uint32_t checksum ()
 
const char * text () const
 
const char * name () const
 
KDColor color () const
 
Poincare::Expressionexpression (Poincare::Context *context) const
 
Poincare::ExpressionLayoutlayout ()
 
virtual bool isDefined ()
 
bool isActive ()
 
void setActive (bool active)
 
virtual bool isEmpty ()
 
virtual void setContent (const char *c)
 
void setColor (KDColor m_color)
 
virtual float evaluateAtAbscissa (float x, Poincare::Context *context) const
 
virtual double evaluateAtAbscissa (double x, Poincare::Context *context) const
 
virtual void tidy ()
 

Detailed Description

Definition at line 8 of file cartesian_function.h.

Constructor & Destructor Documentation

◆ CartesianFunction()

Graph::CartesianFunction::CartesianFunction ( const char *  text = nullptr,
KDColor  color = KDColorBlack 
)

Definition at line 9 of file cartesian_function.cpp.

Member Function Documentation

◆ approximateDerivative()

double Graph::CartesianFunction::approximateDerivative ( double  x,
Poincare::Context context 
) const

Definition at line 23 of file cartesian_function.cpp.

◆ displayDerivative()

bool Graph::CartesianFunction::displayDerivative ( )

Definition at line 15 of file cartesian_function.cpp.

◆ nextIntersectionFrom()

CartesianFunction::Point Graph::CartesianFunction::nextIntersectionFrom ( double  start,
double  step,
double  max,
Poincare::Context context,
const Shared::Function function 
) const

Definition at line 63 of file cartesian_function.cpp.

◆ nextMaximumFrom()

CartesianFunction::Point Graph::CartesianFunction::nextMaximumFrom ( double  start,
double  step,
double  max,
Poincare::Context context 
) const

Definition at line 50 of file cartesian_function.cpp.

◆ nextMinimumFrom()

CartesianFunction::Point Graph::CartesianFunction::nextMinimumFrom ( double  start,
double  step,
double  max,
Poincare::Context context 
) const

Definition at line 44 of file cartesian_function.cpp.

◆ nextRootFrom()

double Graph::CartesianFunction::nextRootFrom ( double  start,
double  step,
double  max,
Poincare::Context context 
) const

Definition at line 57 of file cartesian_function.cpp.

◆ setDisplayDerivative()

void Graph::CartesianFunction::setDisplayDerivative ( bool  display)

Definition at line 19 of file cartesian_function.cpp.

◆ sumBetweenBounds()

double Graph::CartesianFunction::sumBetweenBounds ( double  start,
double  end,
Poincare::Context context 
) const
overridevirtual

Implements Shared::Function.

Definition at line 33 of file cartesian_function.cpp.

◆ symbol()

char Graph::CartesianFunction::symbol ( ) const
overridevirtual

Implements Shared::Function.

Definition at line 127 of file cartesian_function.cpp.


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