File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ ExitStatus App::Application::run() {
112112 const ImVec2 base_pos = viewport->Pos ;
113113 const ImVec2 base_size = viewport->Size ;
114114
115- static char function[1024 ] = " sin (x)" ;
115+ static char function[1024 ] = " tan (x)" ;
116116
117117 // Left Pane (expression)
118118 {
@@ -179,7 +179,7 @@ ExitStatus App::Application::run() {
179179 exprtk::parser<double > parser;
180180 parser.compile (function, expression);
181181
182- for (x = -canvas_sz.x / (2 * zoom); x < canvas_sz.x / (2 * zoom); x += 0.1 ) {
182+ for (x = -canvas_sz.x / (2 * zoom); x < canvas_sz.x / (2 * zoom); x += 0.05 ) {
183183 // This loop uses the *mathematical* values of x. This is later converted to the pixel
184184 // values below
185185 const double y = expression.value ();
You can’t perform that action at this time.
0 commit comments