Numworks Epsilon  1.4.1
Graphing Calculator Operating System
root_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 RootGraphController::RootGraphController(Responder * parentResponder, GraphView * graphView, BannerView * bannerView, Shared::InteractiveCurveViewRange * curveViewRange, CurveViewCursor * cursor) :
10  CalculationGraphController(parentResponder, graphView, bannerView, curveViewRange, cursor, I18n::Message::NoZeroFound)
11 {
12 }
13 
15  return I18n::translate(I18n::Message::Zeros);
16 }
17 
18 CartesianFunction::Point RootGraphController::computeNewPointOfInterest(double start, double step, double max, Context * context) {
19  return {.abscissa = m_function->nextRootFrom(start, step, max, context), .value = 0.0};
20 }
21 
22 }
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
double nextRootFrom(double start, double step, double max, Poincare::Context *context) const
const char * title() override
void start()
Definition: rt0.cpp:31