What online graphing tools handle complex numbers well?

$\begingroup$

What online graphing tools handle complex numbers well?

Desmos is generally excellent by breaking functions down into their real and imaginary parts and plotting on the Euclidean plane. For example it can relatively easily graph:

$f:\Bbb N\to\Bbb C$

$f(x)=x\cdot\exp{(2\pi i\log_{\frac23}x)}$

as shown here, and it displays and prints nicely.

But I want to plot $f(x)=x\cdot\exp{(2\pi i\log_{\frac{-1}3}x)}$ which is a little more tricky as it requires the imaginary unit within the exponent because $\log(-1/3)=i\pi-\log(3)$

Is there a way with desmos, or an easy-to-use alternative tool?

$\endgroup$ 5

1 Answer

$\begingroup$

You can try WolframCloud, it is Mathematica with some limitations (computing time, ...)

f[x_]:= x Exp[2 Pi I Log[-1/3,x]];
t = Table[{Re[f[x]],Im[f[x]]},{x,1,10}];
ListPlot[t, Joined->True]

enter image description here


EDIT

To include labels you can use something like this

f[x_]:= x Exp[2 Pi I Log[-1/3,x]];
t = Table[{Re[f[x]],Im[f[x]]},{x,1,10}];
ListLinePlot[t->Range[10], PlotMarkers -> {Automatic, 10},LabelingFunction->Left]

enter image description here

$\endgroup$ 5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like