theta = Function('theta') is an undefined function with no arguments.
When you call 'theta(t)' the result is a function with the argument 't'.
Jason
moorepants.info
+01 530-601-9791
On Wed, Oct 16, 2013 at 11: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.