Hello everyone,
  I was hoping to get some input on people's thoughts regarding the SymPy
cache. In the branch I have going to remove the old assumption system, I run
into the problem of equations being simplified under a certain set of
assumptions, and then retrieved later on when those assumptions no longer
hold. A workaround I've settled on is to flush out the cache (entirely)
whenever an assumption is added or removed from the global assumption
context.

  Another option would be to remove results from the cache associated with a
single symbol, whenever that symbol is created (via Symbol(...) or
symbols(...)). But that raises the question of whether or not just those
expressions that contain the symbol in question is enough. For example, if I
evaluate something that uses Symbol('x') under certain assumptions, and then
that result is used for some other calculation without Symbol('x'), then
wouldn't that other expression depend on the assumptions regarding
Symbol('x') at the time it was created?

  Care also needs to be given to the assumptions used in the core itself. In
a few places, there are variables created with global assumptions attached
to them that are used time and time again depending on the parts of SymPy
one is using.

  So what do people feel would be the best option for the future of the
SymPy cache?

  Cheers,
   Christian

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sy...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to