Numworks Epsilon  1.4.1
Graphing Calculator Operating System
extremum_graph_controller.cpp
Go to the documentation of this file.
2 #include "../app.h"
3 
4 using namespace Shared;
5 using namespace Poincare;
6 
7 namespace Graph {
8 
9 MinimumGraphController::MinimumGraphController(Responder * parentResponder, GraphView * graphView, BannerView * bannerView, Shared::InteractiveCurveViewRange * curveViewRange, Shared::CurveViewCursor * cursor) :
10  CalculationGraphController(parentResponder, graphView, bannerView, curveViewRange, cursor, I18n::Message::NoMinimumFound)
11 {
12 }
13 
15  return I18n::translate(I18n::Message::Minimum);
16 }
17 
18 CartesianFunction::Point MinimumGraphController::computeNewPointOfInterest(double start, double step, double max, Context * context) {
19  return m_function->nextMinimumFrom(start, step, max, context);
20 }
21 
23  CalculationGraphController(parentResponder, graphView, bannerView, curveViewRange, cursor, I18n::Message::NoMaximumFound)
24 {
25 }
26 
28  return I18n::translate(I18n::Message::Maximum);
29 }
30 
31 CartesianFunction::Point MaximumGraphController::computeNewPointOfInterest(double start, double step, double max, Context * context) {
32  return m_function->nextMaximumFrom(start, step, max, context);
33 }
34 
35 }
Point nextMaximumFrom(double start, double step, double max, Poincare::Context *context) const
MaximumGraphController(Responder *parentResponder, GraphView *graphView, BannerView *bannerView, Shared::InteractiveCurveViewRange *curveViewRange, Shared::CurveViewCursor *cursor)
Definition: i18n.h:6
Definition: app.cpp:9
enum Message uint16_t enum Language uint16_t const char * translate(Message m, Language l=(Language) 0)
Definition: i18n.cpp:5
void start()
Definition: rt0.cpp:31
Point nextMinimumFrom(double start, double step, double max, Poincare::Context *context) const