[sage-support] Re: \sage inside \[\text{ $ $}\]

2018-03-18 Thread Dima Pasechnik
On Sunday, March 18, 2018 at 6:26:53 PM UTC, Harald Helfgott wrote: > > At some point I was getting inexplicable results while using SageTex- my > variables were all being shifted by one (variable b taking the value of > variable a, variable c taking the value of variable b, and worse). Then I

[sage-support] Displaying Sagetex code

2018-03-18 Thread Harald Helfgott
it is possible to (a) display Sagetex code within TeX in a relatively "clean" fashion (one that can be sent to referees, say, rather than just to one's friends), (b) make variable names appear as footnotes to their values, when displayed via \sage (as opposed to \sageblock)? Again, the purpose

[sage-support] \sage inside \[\text{ $ $}\]

2018-03-18 Thread Harald Helfgott
At some point I was getting inexplicable results while using SageTex- my variables were all being shifted by one (variable b taking the value of variable a, variable c taking the value of variable b, and worse). Then I realized that the problem was that I had some code of the following form:

Re: [sage-support] Re: [sage-cell] Where Oh Where is my Divide By Zero Error?

2018-03-18 Thread Johan S. H. Rosenkilde
Hi, It is not related to exponentiation; it is due to the difference between symbolic evaluation and real-valued evaluation when dividing by zero. Real-valued arithmetic mirrors the IEEE floating point standard, I expect: sage: 1.0/0 +infinity While symbolic evaluation gives the divide-by-zero