Blame view

epsilon-master/apps/graph/cartesian_function.h 1.12 KB
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  #ifndef GRAPH_CARTESIAN_FUNCTION_H
  #define GRAPH_CARTESIAN_FUNCTION_H
  
  #include "../shared/function.h"
  
  namespace Graph {
  
  class CartesianFunction : public Shared::Function {
  public:
    using Shared::Function::Function;
    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;
    Poincare::Expression::Coordinate2D nextMinimumFrom(double start, double step, double max, Poincare::Context * context) const;
    Poincare::Expression::Coordinate2D nextMaximumFrom(double start, double step, double max, Poincare::Context * context) const;
    double nextRootFrom(double start, double step, double max, Poincare::Context * context) const;
    Poincare::Expression::Coordinate2D nextIntersectionFrom(double start, double step, double max, Poincare::Context * context, const Shared::Function * function) const;
    char symbol() const override;
  private:
    bool m_displayDerivative;
  };
  
  }
  
  #endif