dealing with complex values in plots

9 views
Skip to first unread message

krastano...@gmail.com

unread,
May 19, 2012, 5:31:24 PM5/19/12
to sy...@googlegroups.com
Another gsoc student sent a PR against my plotting branch:
https://github.com/Krastanov/sympy/pull/4

If a complex value is generated should the real part be plotted or
should the value be completely scrapped?

Vinzent Steinberg

unread,
May 25, 2012, 4:25:50 AM5/25/12
to sy...@googlegroups.com

I think it would be nice to let the user choose, so maybe introduce a flag.

Vinzent

krastano...@gmail.com

unread,
May 25, 2012, 6:44:57 AM5/25/12
to sy...@googlegroups.com
On 25 May 2012 10:25, Vinzent Steinberg
If the user wants to have the real part he should just plot
`re(whatever)`, hence I am against providing a flag.

The question was more about how to gracefully handle situations when
complex numbers are produced. I had only one argument against *not*
plotting anything for complex numbers that had to do with the sampling
and that can be looked up on the discussion pages, however there is
now work on adaptive sampling and my argument is void.

If nobody has any objections the solution will be to **not plot
anything for complex values, plot only the real ones**.
Reply all
Reply to author
Forward
0 new messages