Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2011-08-10 16:11:26

benice
Member
Registered: 2010-06-10
Posts: 112
Website

(Bug Report) Equation Grapher gives wrong graphs

Hi,
The MathsIsFun Equation Grapher gives wrong graph for
(abs(x-1) + abs(y) - 1) * (abs(x) + abs(y-1) - 1) = 0.

View Image: Correct Graph.png View Image: Incorrect Graph.png

Last edited by benice (2011-08-10 16:17:48)

Offline

#2 2011-08-10 20:27:19

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 89,002

Re: (Bug Report) Equation Grapher gives wrong graphs

Hi benice;

Mathematica agrees with you. I remember trying to write my own contour plotter. In two different languages! I do not think I ever really succeeded.

I tried to do it by solving for the points. That is difficult enough when you are standing over the computer and watching every move. In a plotter the program has to do it all by itself. Sometimes they are going to miss some and sometimes they will add a few.

By the way that is a clever way to draw two squares.


In mathematics, you don't understand things. You just get used to them.

I agree with you regarding the satisfaction and importance of actually computing some numbers. I can't tell you how often I see time and money wasted because someone didn't bother to run the numbers.

Offline

#3 2011-08-10 23:03:52

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,552

Re: (Bug Report) Equation Grapher gives wrong graphs

Hi benice,

Thanks for that, I will look into it.


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#4 2011-08-11 14:13:47

benice
Member
Registered: 2010-06-10
Posts: 112
Website

Re: (Bug Report) Equation Grapher gives wrong graphs

Hi bobbym,

I agree with you. It's difficult to write a contour plotter from scratch.
Many thanks to those kind people who make open/free plotters for us.

Offline

#5 2011-08-11 14:33:21

benice
Member
Registered: 2010-06-10
Posts: 112
Website

Re: (Bug Report) Equation Grapher gives wrong graphs

Hi MathsIsFun,

I have found this is a common problem in many open softwares including Graph, gnuplot and Scilab.
Maybe this page will be helpful to you.

Offline

#6 2011-08-11 19:42:27

bobbym
Administrator
From: Bumpkinland
Registered: 2009-04-12
Posts: 89,002

Re: (Bug Report) Equation Grapher gives wrong graphs

Hi benice;

Graph, gnuplot and Scilab

That is some good software there. I do not feel so bad now. I am not sure about his explanation of no sign changes.

y - x^2 = 0 has no sign changes either but graphs properly here. Or maybe you do not notice it because only (0,0) is left out!


In mathematics, you don't understand things. You just get used to them.

I agree with you regarding the satisfaction and importance of actually computing some numbers. I can't tell you how often I see time and money wasted because someone didn't bother to run the numbers.

Offline

#7 2011-08-11 22:00:38

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,552

Re: (Bug Report) Equation Grapher gives wrong graphs

Yes, sign changing abruptly back and forth is hard to detect. This will be an interesting test case for me.


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

Board footer

Powered by FluxBB