Re: [sympy] How to create a symbol with greek subscript

2021-09-28 Thread Paul Royik
Thank you. It works! On Tuesday, September 28, 2021 at 7:47:13 PM UTC+3 oscar.gu...@gmail.com wrote: > Symbol('x_alpha_beta') # SymPys own magic, works for pretty printer as well > Symbol('x_{\\alpha \\beta}') # Escape the \ > Symbol(r'x_{\alpha \beta}') # Python "raw" string, no need to

Re: [sympy] How to create a symbol with greek subscript

2021-09-28 Thread Oscar Gustafsson
Symbol('x_alpha_beta') # SymPys own magic, works for pretty printer as well Symbol('x_{\\alpha \\beta}') # Escape the \ Symbol(r'x_{\alpha \beta}') # Python "raw" string, no need to escape BR Oscar Den tis 28 sep. 2021 kl 16:15 skrev Paul Royik : > I'm trying to create a symbol, where both

[sympy] How to create a symbol with greek subscript

2021-09-28 Thread Paul Royik
I'm trying to create a symbol, where both alpha and beta are in subscript. Symbol('x_{\alpha \beta}') doesn't work. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to