We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45c13fa commit 3694a4eCopy full SHA for 3694a4e
1 file changed
src/core/Core/Application.cpp
@@ -112,7 +112,7 @@ ExitStatus App::Application::run() {
112
const ImVec2 base_pos = viewport->Pos;
113
const ImVec2 base_size = viewport->Size;
114
115
- static char function[1024] = "sin(x)";
+ static char function[1024] = "tan(x)";
116
117
// Left Pane (expression)
118
{
@@ -179,7 +179,7 @@ ExitStatus App::Application::run() {
179
exprtk::parser<double> parser;
180
parser.compile(function, expression);
181
182
- for (x = -canvas_sz.x / (2 * zoom); x < canvas_sz.x / (2 * zoom); x += 0.1) {
+ for (x = -canvas_sz.x / (2 * zoom); x < canvas_sz.x / (2 * zoom); x += 0.05) {
183
// This loop uses the *mathematical* values of x. This is later converted to the pixel
184
// values below
185
const double y = expression.value();
0 commit comments