1 | initial version |
var('xt1',latex_name='x_{t1}')
pretty_print(xt1)
f = xt1^2 + 4
print f._latex_(); pretty_print(f) # defining f creates a latex_name of f
var('xt1',latex_name='{xt}_1')
pretty_print(xt1)
print f._latex_(); pretty_print(f) # redefining xt1 does not change the latex_name of f
f = f.subs(xt1=xt1)
print f._latex_(); pretty_print(f) # the substitution rewrites the latex_name of f