You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.
I recently started using Sagemath and I noticed this behavior:
>>> a1=var('a_1')
>>> E=x^a1
>>> E(a1=1)
a₁
x
>>> E(a_1=1)
x
Should this be the behavior? I feel like this is a bug and the correct way would be to indeed use E(a1=1) because that is the name of the variable, while a_1 is just its representation. For example, if I use Sympy's syntax it works as it should:
>>> E.subs({a1:1})
x
I'm using SageMath version 7.5.1 compiled for Linux Mint 18.1.
The text was updated successfully, but these errors were encountered:
I think you're right, I have created a trac ticket: https://trac.sagemath.org/ticket/23320
Please follow there. We don't use github yet for development so this issue will be closed.
I recently started using Sagemath and I noticed this behavior:
Should this be the behavior? I feel like this is a bug and the correct way would be to indeed use
E(a1=1)
because that is the name of the variable, whilea_1
is just its representation. For example, if I use Sympy's syntax it works as it should:I'm using SageMath version 7.5.1 compiled for Linux Mint 18.1.
The text was updated successfully, but these errors were encountered: