On Monday, August 1, 2011 8:28:57 PM UTC-7, Joon wrote:
>
> Hi,
>
> I just started using Sage, and I have a question about variable names.
> I skimmed through the documentation but could not find any answers.
>
> Is it possible to used latex tags in variable names so when I do
> "show(var)" I get the latex output?
> For example, I want to do:
>
> p_1star = var('p_1^*')
>
Try:
sage: p_1star = var('p_1star', latex_name='p_1^*')
--
John
--
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/sage-support
URL: http://www.sagemath.org