Mathics icon indicating copy to clipboard operation
Mathics copied to clipboard

Plot complex functions

Open constip opened this issue 4 years ago • 6 comments

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...

constip avatar Nov 14 '19 19:11 constip

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

GarkGarcia avatar Aug 24 '20 20:08 GarkGarcia

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)

constip avatar Aug 25 '20 05:08 constip

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

asukaminato0721 avatar Sep 28 '20 14:09 asukaminato0721

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

cpiber avatar Sep 28 '20 14:09 cpiber

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

rocky avatar Sep 28 '20 15:09 rocky

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

GarkGarcia avatar Dec 26 '20 14:12 GarkGarcia