cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Ploting real and imaginary numbers in 3D

tgonzales
1-Newbie

Ploting real and imaginary numbers in 3D

Hello,

I'm trying to plot the square root of the independent variable x,y. The z variable is the dependent.

Screenshot (2011).png

Not sure to put it in matrix form or if there is a better way. Also how would it be possible to show real and imaginary numbers.

Thanks.

4 REPLIES 4

Like so?

3dplots.PNG

Alan

Yes thank you very much. That worked perfectly. Now also I have a similar example where I tried to graph ln(2x^2+y^2). Its giving the same error as before. I tried using the setup you mentioned previously unable to make it work.

Screenshot (202).png

Thanks

RichardJ
19-Tanzanite
(To:tgonzales)

It's a different problem. ln(0) is undefined. Click on the x-axis, and change the lower limit to -9.9 instead of -10. That will make Mathcad miss the 0,0 point that causes the problem.

As an alternative to Richards approach you could use the if function or the if statement in the function definition to avoid invalid values:

Here is a small utility routine which should work for most functions:

Usage:

Regards Werner

P.S.: Wish we could use NaN in 3D plots in Mathcad 15 😞

Top Tags