Files
Upsilon/apps/graph/function.h
Émilie Feral 59553e69e0 [apps/shared] Move function model in shared to be used by sequences
Change-Id: I2fbd4136b8352497da30c8c959cd0f0b25d36642
2017-02-13 17:15:06 +01:00

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