Yes, functions need to be applied to some argument to make sense. Otherwise, it would be like writing exp(sin) or sin**2 instead of exp(sin(x)) and sin(x)**2.
Technically speaking, f is a class, while f(t) is an object, and SymPy expressions must consist of SymPy objects, not classes. Aaron Meurer On Wed, Oct 16, 2013 at 9:58 AM, Cavendish McKay <[email protected]> wrote: > Having worked through this a bit more, I've found the bit of syntax that > makes the difference between working and not working, but I'm not sure I > fully understand it. If I do > > m,g,r,b,t = symbols("m,g,r,b,t") > theta = Function('theta') > x = (r+b)*sin(theta(t)) + r*theta(t)*cos(theta(t)) > > I don't have problems, but if I do > > m,g,r,b,t = symbols("m,g,r,b,t") > theta = Function('theta') > x = (r+b)*sin(theta) + r*theta*cos(theta) > > I get the TypeError from my previous email. What exactly is the difference > between theta and theta(t) when I have declared theta=Function('theta')? > > Cavendish > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sympy. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
