Hi,

I have an application in which many symbolic variables (close to 100) need 
to be defined.

I am aware that one can do

x,y,z = sympy.symbols('x y z')

or

x = sympy.Symbol('x'); y = sympy.Symbol('y'); z = sympy.Symbol('z')

For my application, many of the symbol names are very close in spelling, so 
it takes a great deal of care to assure that the exact same variable name 
is used on the left-hand and right-hand sides of the assignment.

Is there a way to assign them in a more automatic and potentially error 
free manner? 

For instance, it would be convenient, and less error prone in my case, if I 
could do something like

vars = ['x,'y','z']
for v in vars:
  sympy.implicit_symbol(v)

and then use x, y, and z as symbolic variables.

Thank you. 

Kind regards,
Brad

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