Thanks.

Jason
moorepants.info
+01 530-601-9791


On Mon, Oct 28, 2013 at 1:16 PM, Aaron Meurer <asmeu...@gmail.com> wrote:

> This is correct. type() in Python basically means "class of".
> Function('x') creates a class, called "x". When you apply it to t, it
> creates an instance of that class. The class of the class (i.e., metaclass)
> is UndefinedFunction.
>
> Aaron Meurer
>
> On Oct 28, 2013, at 11:01 AM, Jason Moore <moorepa...@gmail.com> wrote:
>
> I'm curious why x(t) in the following code doesn't display any type:
>
> In [9]: x = sympy.symbols('x', cls=sympy.Function)
>
> In [10]: type(x)
> Out[10]: sympy.core.function.UndefinedFunction
>
> In [11]: t = sympy.symbols('t')
>
> In [12]: t
> Out[12]: t
>
> In [13]: type(x(t))
> Out[13]: x
>
> Jason
> moorepants.info
> +01 530-601-9791
>
> --
> 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 sympy+unsubscr...@googlegroups.com.
> To post to this group, send email to sympy@googlegroups.com.
> 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 sympy+unsubscr...@googlegroups.com.
> To post to this group, send email to sympy@googlegroups.com.
> 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 sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to