Michael, I appreciate your very thoughtful reply.
On Jan 20, 10:45 pm, Michael Orlitzky wrote:
> > -- Forwarded message --
> > From: storne...@mathisasport.com
>
> > That's fine, but now I want to solve for dy/dx, so I try:
>
> > sage: solve(equation2.diff(),diff(f(x),x,1))
> > /h
> > error:
> > -
> > *** SyntaxError: can't assign to function call (, line 1)
>
> > the code I used was:
> > -
> > r,p,z,g,k,ro,gro = var('r,p,z,g,k,ro,gro')
> > g = 1; k = 1; ro = 1; gro = 1
> > Psi(r,z) = lambda r,z: ((r*bessel_J(1, g*r))/
> > (ro*bessel_J(1,gro)))*(cos(k*z))
>
> > The
I have this file 'myclass.py' that contains the following
class MyClass(object):
@staticmethod
def myt(l):
"""
sage: from myclass import MyClass
sage: MyClass.myt([1,2])
[1, 2]
"""
return l
when run sage -t myclass.py , it give