On Wed, Aug 27, 2014 at 2:46 PM, Peter Mueller <[email protected]> wrote:
> My understanding of Sage is that var('e') declares e as a symbolic variable,
> no matter that it was the Euler number before. The last line leaves me
> clueless what goes wrong ...
>
> sage: var('e')
> e
> sage: matrix.diagonal([e,1,1]).det()
> e
> sage: matrix.diagonal([e,1,1,1]).det()
> _e
>
> -- Peter Mueller
The real bug is in conversion from Maxima to Sage. Observe:
~/wstein/sage-6.4.beta1$ ./sage
sage: maxima('_SAGE_VAR_e')._sage_()
_e
sage: maxima('_SAGE_VAR_x')._sage_()
x
sage: maxima('_SAGE_VAR_foo')._sage_()
foo
More precisely, this is wrong because of the function
sage.calculus.calculus.symbolic_expression_from_maxima_string having a
bug:
sage:
sage.calculus.calculus.symbolic_expression_from_maxima_string("_SAGE_VAR_e",maxima=maxima)
_e
sage:
sage.calculus.calculus.symbolic_expression_from_maxima_string("_SAGE_VAR_f",maxima=maxima)
f
This function is not easy to understand (I kind of think maybe I wrote
some version of it)... but it is just some pure python, so hopefully
somebody can fix this...
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org
[email protected]
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.