Files
Upsilon/apps/graph/function.h
Émilie Feral e5e9f7cc41 [poincare][apps] Make preferences a const object accessible from
anywhere (poincare and apps)

Change-Id: I49cc6bf940d1efeb6b153daac949ffcb23999a8d
2017-02-20 09:39:24 +01:00

24 lines
541 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) const;
char symbol() const override;
private:
bool m_displayDerivative;
};
}
#endif