Of you have a tuple literal, it's redundant. Tuple(*(1,2)) is the same
as Tuple(1,2). But if you have a variable, you have to use Tuple(*a).

Aaron Meurer

On Dec 2, 2012, at 9:34 AM, Shriramana Sharma <samj...@gmail.com> wrote:

> On Sat, Dec 1, 2012 at 5:07 PM, Chris Smith <smi...@gmail.com> wrote:
>>>>> eqs=Tuple(*[A(0) + 5*A(1) - 2, -3*A(0) + 6*A(1) - 15])
>>>>> solve(eqs, eqs.atoms(Function))
>> {A(0): -3, A(1): 1}
>
> On Sun, Dec 2, 2012 at 6:59 AM, Chris Smith <smi...@gmail.com> wrote:
>>>>> eqs=Tuple(*([A[0] + 5*A[1] - 2, -3*A[0]+ 6*A[1] - 15]))
>
> Hi can you clarify why you have used a * inside the Tuple constructor
> in both the above cases and why the additional () around the []
> containing the list in the second case? The Tuple documentation
> doesn't seem to speak about either of these two. Thanks!
>
> --
> Shriramana Sharma
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sympy" group.
> To post to this group, send email to sympy@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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@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