Skip to content

Commit 3694a4e

Browse files
committed
feat: change default function
Project is now ready for public contributions
1 parent 45c13fa commit 3694a4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/Core/Application.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)