On Sun, Dec 2, 2012 at 7:58 AM, Shriramana Sharma <[email protected]> wrote:

> On Sun, Dec 2, 2012 at 6:59 AM, Chris Smith <[email protected]> wrote:
> > If you work with the current master you won't get the Indexed error:
> >
> >>>> from sympy import IndexedBase
> >>>> A=IndexedBase('A')
> >>>> solve([A[0] + 5*A[1] - 2, -3*A[0]+ 6*A[1] - 15])
> > []
> >
> > But no solution...so let's try the Tuple-atoms trick:
>
> Hi, the atoms trick will work whether I use IndexedBase or Function,
> but the point is to have an IndexedBase such that A[i] for any
> symbolic or integer i will represent a distinct symbolic object, so
> that it can be used with solve(), right? So this doesn't really seem
> to be a solution...
>
>
I don't follow you...if the function or Indexed has a different name then
it's different from others, and if the argument(s) of any function or
Indexed are different they represent different objects.

>>> eqs=Tuple(f(1,2)+f(i)-3,f(1,2)-f(i)-4)
>>> solve(eqs, eqs.atoms(Function))
{f(i): -1/2, f(1, 2): 7/2}
>>> eqs=Tuple(g(j)+f(i)-3,g(j)-f(i)-4)
>>> solve(eqs, eqs.atoms(Function))
{f(i): -1/2, g(j): 7/2}

-- 
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.

Reply via email to