ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 16 Jun 2024 18:23:19 +0200Plot real to complex functionhttps://ask.sagemath.org/question/77872/plot-real-to-complex-function/I have a function that has real domain and a complex co-domain. I want to plot the real and imaginary parts together, like this: imgur.com/a/yb7g5Ce
The code that I used to generate that plot (`plot(real(F(x)),(-2,2)) + plot(imag(F(x)),(-2,2),color="red")`) works, but I think every value is being calculated two times, discarding either the real or the imaginary part. Is there any way to get this effect more efficiently, without doing useless calculations?ThePirate42Sun, 16 Jun 2024 18:23:19 +0200https://ask.sagemath.org/question/77872/