This is how its supposed to go: sage: plot3d(((1 - (3/8 - 3*t^2 - 2*t^4 - 9*x^2 - 10*x^4 - 12*t^2*x^2) + i*x*(15/4 + 6*t^2 - 4*t^2 - 2*x^2 - 4*x^4 + 8*t^2*x^2))/(1/8*(3/4 + 9*t^2 + 4*t^2+ 16/3*t^6 + 33*x^2 + 36*x^24 + 16/3*x^6)))*e^(i*x)), (x, -2, 2), (t, -2, 2)
However, Sage thinks that 3*t^2 = Integer(3)*t****Integer(2) That is , twice multiplied with 2, and not exponent to two. How should I otherwise write this function? --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-46-c5f2adcd43ea> in <module>() ----> 1 plot3d(((Integer(1) - (Integer(3)/Integer(8) - Integer(3)*t**Integer(2) - Integer(2)*t**Integer(4) - Integer(9)*x**Integer(2) - Integer(10)*x**Integer(4) - Integer(12)*t**Integer(2)*x**Integer(2)) + i*x*(Integer(15)/Integer(4) + Integer(6)*t**Integer(2) - Integer(4)*t**Integer(2) - Integer(2)*x**Integer(2) - Integer(4)*x**Integer(4) + Integer(8)*t**Integer(2)*x**Integer(2)))/(Integer(1)/Integer(8)*(Integer(3)/Integer(4) + Integer(9)*t**Integer(2) + Integer(4)*t**Integer(2)+ Integer(16)/Integer(3)*t**Integer(6) + Integer(33)*x**Integer(2) + Integer(36)*x**Integer(24) + Integer(16)/Integer(3)*x**Integer(6))))*e**(i*x)), (x, -Integer(2), Integer(2)), (t, -Integer(2), Integer(2)) TypeError: plot3d() takes at least 3 arguments (1 given) sage: onsdag 28. desember 2016 13.19.55 UTC+1 skrev Fjordforsk A/S følgende: > > Hello, I am not sure on the reply sage gives me on plotting a long > function: > > sage: plot3d(((1 - (3/8 - 3*t^2 - 2*t^4 - 9*x^2 - 10*x^4 - 12*t^2*x^2) + > x*(15/4 + 6*t^2 - 4*t^2 - 2*x^2 - 4*x^4 + 8*t^2*x^2))/(1/8*(3/4 + 9*t^2 + > 4*t^2+ 16/3*t^6 + 33*x^2 + 36*x^24 + 16/3*x^6)))*e^(x)), (x, -2, 2), (t, > -2, 2) > > > TypeError: plot3d() takes at least 3 arguments (1 given) > > I have defined x and t as variables, should I define e as well? > > Thanks! > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.