mathics / Mathics

This repository is for archival. Please see https://github.com/Mathics3/mathics-core
https://mathics.org
Other
2.07k stars 206 forks source link

Plot complex functions #794

Open constip opened 4 years ago

constip commented 4 years ago

When using Plot on a function with an imaginary part (e.g. Plot[Ix,{x,1,10}], only an empty coordinate system is returned. WolframAlpha's solution is to show two grafs: Plot[{Re[Ix],Re[Ix]},{x,1,10}]`, which might be a better default...

GarkGarcia commented 4 years ago

Hey, I'm not sure I follow. Is the behaviour of Plot simply broken or are you suggesting we change Plot's behaviour?

constip commented 4 years ago

I do not know what the intended output was, but an empty graph seems wrong to me. Either an error or a proper graph needs to be returned (i.e. two graphs either separate or overlaid with two colours)

asukaminato0721 commented 3 years ago

Plot[Ix,{x,1,10}] is different from Plot[I x,{x,1,10}], Ix is a var while I x means I times x

Even Mathematica return an empty img.

image

cpiber commented 3 years ago

Indeed, however Plot[I x,{x,1,10}] returns an empty plot as well.

rocky commented 3 years ago

We are always looking for folks to help fixing if you want to get involved (and probably see this fixed sooner)

GarkGarcia commented 3 years ago

This probably an error in Graphics and isn't directly related to the web-interface.