On Wednesday, December 28, 2016 at 4:19:55 AM UTC-8, Fjordforsk A/S wrote: > > Hello, I am having trouble plotting this function: > > sage: *plot3d([(-t+x)^(0.5)*(sech[(t-x)^2]^2)] (x,-5,5), (t, -5, 5))* >
In python syntax, *sech[(t-x)^2]^2)] *is list indexing, so it will try to convert the argument into an integer index in order to retrieve that argument. In python (and hence sage, and most computer algebra systems, "[ ]" and "( )" are not interchangeable. -- 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.