Ask Your Question

error: Some variable ranges specify variables while others do not

asked 2019-03-25 18:33:33 +0200

stockh0lm gravatar image

here is my code:

I output the function to plot, after subs'ing values, and x and z are the only remaining variables:

1/4/(pi*sqrt(x^2 + z^2)*((1.46359724615010e-8)*z*heaviside(z - 0.250000000000000)*heaviside(-z + 0.750000000000000)/(76*z - 13.5625000000000) + (1.46359724615010e-8)*z*heaviside(z - 0.750000000000000)/(21.7500000000000*z + 27.1250000000000) + (6.72918274092000e-10)*heaviside(-z + 0.250000000000000)))

but when i try to contour_plot this it gives me the error in the title.

the plot command is this:


what can I do to specify more variables?I googled the error message and found it in the documentation, but there it is without explanation how to fix it.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-03-25 19:07:57 +0200

You have a typo in "(x, -0,5, 1.5)": change the comma in "-0,5" to a period.

edit flag offensive delete link more



I've opened up this should improve the error message in a case like this.

John Palmieri gravatar imageJohn Palmieri ( 2019-03-25 19:55:11 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-03-25 18:33:33 +0200

Seen: 239 times

Last updated: Mar 25 '19