You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
What code specifically do you want to use it in?
In my experience, dispatching in SymPy functions happens by expression
type, which is often reflected by Python class, but not always. A
pattern matching based dispatching system would be more useful in my
opinion.
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sympy
I was mulling over the possibility of adding support for series expansion of indexed objects and/or multivariate series.
The _eval_nseries method could be dispatched over its second argument (second means the one after self).
The alternative would be the classical if isinstance( ... ), which SymPy is full of. In this case, it would be necessary to rewrite almost all of the _eval_nseries around.
Aaron Meurer
unread,
Jun 24, 2016, 7:02:41 PM6/24/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
If it's the same logic in every function, it should be put in the main
series() method that calls _eval_nseries.