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 <[email protected]> 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 [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.

Reply via email to