Questions tagged [sagemath]

For questions concerning the mathematical software system SageMath.

SageMath is a free open-source mathematics software system licensed under the GPL. It combines the power of many existing open-source packages into a common Python-based interface.

StackOverflow has a fairly heavily used [sage] tag as well for more programming-related question, with more links; see also the [sage] tag on MathOverflow.

Note also that Ask Sage, SageMath's questions-and-answers site, and sage-support, the user support mailing list, are very active and that questions asked there typically get answered faster than on the StackExchange network.

You can also look at the official documentation of SageMath.

402 questions
-1
votes
1 answer

Substitute variables in an expression in Sagemath

Somewhat similar to this question, I was trying to evaluate a Boolean expression given the right hand side variables in Sage. For simplicity, say, my Boolean expression is, $y=x_0+x_1$. For each of $(x_0,x_1) \in \{(0,0),(0,1),(1,0),(1,1)\}$, I want…
hola
  • 1,339
-1
votes
1 answer

Polynomial Ring on Sage

Somebody can explain me what does this function do? class fastfrac: def __init__(self,top,bot=1): if parent(top) == ZZ or parent(top) == R: self.top = R(top) self.bot = R(bot) elif top.__class__ == fastfrac: self.top =…
-2
votes
2 answers

Why is $(1-t)^2 == (t-1)^2$ in SageMath?

This is really odd, not much to say about it. ┌────────────────────────────────────────────────────────────────────┐ │ SageMath version 8.5, Release Date: 2018-12-22 │ │ Using Python 2.7.15. Type "help()" for help. …
1 2 3 4
5