Ask Your Question

Revision history [back]

The problem here is that I1 is a Python name whose value is the symbolic expression 3*t, so they are not of the same nature at all, and the symbolic system of Sage is not able to make symbolic expressions with arbitrary Sage objects while keeping the information of their name and meaning (e.g. the log of a graph named G).

One unsatisfactory solution to your problem would be, if it is about printing, to define I1 as a symbol (independenly of its meaning):

sage: var('I1')
I1
sage: Q=exp(I1)
sage: show(Q)

It is not clear to me what you would like to achieve, but i am not sure you can expect more.

The problem here is that I1 is a Python name whose value is the symbolic expression 3*t, so they are not of the same nature at all, and the symbolic system of Sage is not able to make symbolic expressions with arbitrary Sage objects while keeping the information of their name and meaning (e.g. the log of a graph named G).

One An unsatisfactory solution to your problem would be, if it is only about printing, to define I1 as a symbol (independenly of its meaning):

sage: var('I1')
I1
sage: Q=exp(I1)
sage: show(Q)

It is not clear to me what you would like to achieve, but i am not sure you can expect more.