You are browsing as a guest. Sign up (or log in) to start making projects!

1h 28m 14s logged

So i added a minimum nd aximum functions for both equations. If you press the corresponding button it creates a dashed line through the global maximum/minimum of the function. Here’s how it works: First apoint gets selected. Than it checks if the point is bigger than an another point that is a pixel away from that point. If the next point is bigger, the next point becomes the fiirst point essentially. The code does that until the next point is smaller than the current point and it stores that point as max_y. Than it continues until it finds yet another point whose next point is smaller than the point. The code than chcecks if this point’s bigger than max_y and if it is than this point becomes max_y. And so on till it checks the entire function.

0
2

Comments 0

No comments yet. Be the first!