Ask Your Question
0

error: Some variable ranges specify variables while others do not

asked 2019-03-25 12:33:33 -0500

stockh0lm gravatar image

here is my code:

https://cocalc.com/share/f7766c5e-2f4...

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:

contour_plot(pic,(x,-0,5,1.5),(z,-1,2))

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
3

answered 2019-03-25 13:07:57 -0500

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

Comments

1

I've opened up https://trac.sagemath.org/ticket/27547: this should improve the error message in a case like this.

John Palmieri gravatar imageJohn Palmieri ( 2019-03-25 13:55:11 -0500 )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

Stats

Asked: 2019-03-25 12:33:33 -0500

Seen: 30 times

Last updated: Mar 25