mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
24 lines
584 B
C++
24 lines
584 B
C++
#ifndef GRAPH_FUNCTION_H
|
|
#define GRAPH_FUNCTION_H
|
|
|
|
#include "../shared/function.h"
|
|
|
|
namespace Graph {
|
|
|
|
class Function : public Shared::Function {
|
|
public:
|
|
static constexpr const char * Parameter = "(x)";
|
|
using Shared::Function::Function;
|
|
Function(const char * text = nullptr, KDColor color = KDColorBlack);
|
|
bool displayDerivative();
|
|
void setDisplayDerivative(bool display);
|
|
float approximateDerivative(float x, Poincare::Context * context, Poincare::Expression::AngleUnit angleUnit) const;
|
|
private:
|
|
char symbol() const override;
|
|
bool m_displayDerivative;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|