AdelKS / ZeGrapher

2D Math and Data plotter.
https://zegrapher.com
GNU General Public License v3.0
66 stars 8 forks source link

Graph behaving weirdly when approaching infinity #25

Open TheNeverMan opened 1 year ago

TheNeverMan commented 1 year ago

When function approaches infinity from two sides (e. g. f(x)=1/x) there is a straight line from -Infinity to +Infinity between limits of the function.

AdelKS commented 1 year ago

Hello, thanks for the feedback! Yeah I am aware of this problem, I did implement something to not connect infinities like this but it's not bullet proof. Have you tried increasing the curve quality in the settings?

TheNeverMan commented 1 year ago

I have tried using newest version on Win. Tried changing curve quality all options from maximum to minimum, also toggling curve smoothing. Nothing worked.

TheNeverMan commented 1 year ago

On Linux version 3.0.2 changing curve quality/smoothness does nothing aswell.

AdelKS commented 5 months ago

I believe have found the mistake I did in the code, are you able to compile to check if the change I am about to do fixed it ? I can make an AppImage otherwise.

AdelKS commented 5 months ago

Actually never mind, I am going on a different plotting algorithm on my latest code, I cannot back port it without significant useless work.

AdelKS commented 5 months ago

image