Tomo, On Thu, Jun 9, 2011 at 4:05 PM, Tomo Lazovich <[email protected]> wrote: > Hi everyone, > > I'm thinking of implementing a Wavefunction class in sympy.physics.quantum, > and as a start I'm wondering about functions in sympy in general. Disclaimer > is that this is a potentially very noobish question.
Definitely use the existing Function stuff in sympy. I am not sure you will even have to subclass to do this. Cheers, Brian > Is there already a way in sympy to define an arbitrary functional form? I.e. > to be able to easily say something like f(x) = x**2 and then evaluate f(2) > or whatever else you'd like to do. > > Apologies if this is obvious! > > Tomo > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > -- Brian E. Granger Cal Poly State University, San Luis Obispo [email protected] and [email protected] -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
