Hi,
I guess this will give you a tuple of required symbols-
n=900
symb=symbols("x:%d"%n)
On Fri, Nov 2, 2012 at 8:22 PM, Matthew Rocklin <[email protected]> wrote:
> Have you looked at the
> symbols<http://docs.sympy.org/0.7.2/modules/core.html#sympy.core.symbol.symbols>function?
>
> Perhaps this stackoverflow question might help
>
> http://stackoverflow.com/questions/9492944/sympy-arbitrary-number-of-symbols
>
>
> On Fri, Nov 2, 2012 at 3:59 AM, mohan <[email protected]> wrote:
>
>> Hi all,
>> I want to write an equation using sympy which contains a n
>> varibles. I have learnt from sympy tutorial to generate symbol in sympy. My
>> input contains a file , suppose the length of the file is 300 , I want to
>> generate 300*3 = 900 variables, x,y,z. How can i do that using sympy.Please
>> help me.
>>
>> Thank you in advance,
>> Mohan
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sympy" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/sympy/-/vr-85podz8oJ.
>> 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.
>>
>
> --
> 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.
>
--
Regards,
Rishabh Dixit
MSc.(Tech) Information Systems,
BITS Pilani
--
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.