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
vote
1 answer

Function solve() and sympy.solve() in sage

I do not use sage very often, and so I am sure I am overlooking something. Here is my problem: I have very complex formula, and I have to solve that formula for one of variables (get some variable from expression). If I use solve() function is sage,…
Bobesh
  • 229
1
vote
0 answers

Running gp in sage how do I access. e.g.. e.j

I am new to sage and I am trying to run the gp interface. In gp I can define an elliptic curve e and then access j by e.j ? e=ellinit([0,-1,1,0,0]); ? e.j %2 = -4096/11 Trying to do the same in sage I did e=gp.ellinit([0,-1,1,0,0]) What is the…
sopsku
  • 11
  • 1
1
vote
1 answer

Determining a limsup value

what is meant by 'lim sup' value? is it the convergence value of a sequence when $n$ goes to infinity? What is the answer for, $$\limsup \left(\frac{4}{3n}\right)^{1/n}?$$ can someone help me please?
1
vote
1 answer

nth root of huge integer number in sage

I have been reading for the last hour about different ways to take an nth root in sage. I am having trouble finding a way to do so for very large numbers. Any help would be much appreciated. I have tried ^(1/n) and pow and a number of others.
MathIsHard
  • 2,733
  • 16
  • 47
1
vote
1 answer

Plotting piecewise constant function in Sage gives "no way to make fast_float from None" error

I need to plot following piecewise constant function is Sage: def f(t): T = 2.0 * pi if t > 0 and t < T / 2.0: return 1.0 elif t == T / 2.0: return 0 elif t > T / 2.0 and t < T: return -1.0 t = var('t') …
irina
  • 61
0
votes
1 answer

In Sage Math, how do you implement a symbolic product? specifically I want the qPochhammer

Note : on math.stackexchange I searched for the following keyword combinations: sage math prod sage math prod product and found nothing so I think this is a new question. I want to implement a symbolic product, namely the qPochhammer symbol. I…
0
votes
0 answers

Multi-graded hilbert series in sage

Is there a way to compute the multi-graded Hilbert series in sage? I know that one can do it in Macaulay2, see https://mathoverflow.net/questions/20263/software-for-computing-multi-graded-hilbert-series. But I am wondering whether one can do…
0
votes
0 answers

Hilbert series of superpolynomial ring

I am recently trying to compute Hilbert series involving Grassmann variables. This means I have to deal with super-polynomials. Is there a way to compute the corresponding Hilbert series in sage once I specify the ideal? Thanks!
0
votes
0 answers

How can i write $\sqrt[4]{y}$ in sagemath

Well i know i that can write the square root as sqrt(y) but i want to be able to write $\sqrt[4]{y}$ and can't find any information anywhere about how it's done. Hope somebody knows if it's possible and in that case help me out here.
Mohammed
  • 109
0
votes
0 answers

How to substitute unevaluated expression in SageMath?

I have an expression x*y. I want to convert it to latex, while substituting numbers instead of variables. So if I want to substitute 10 instead of x and 20 instead of y, I would do: latex((x*y).subs(x=10,y=20)) 200 Now the code above returns 200,…
g00dds
  • 187
0
votes
0 answers

How to visualize a polyhedron with faces consisting of different number of vertices?

For each face of a polyhedron, I have a list of all vertices being a part of said face. Example data for a polyhedron consisting of $13$ vertices and $9$ faces, where vertices are numbered from $0$: 0 1 2 0 2 3 7 5 6 4 0 4 8 1 1 8 9 11 10 3 2 3 10…
pakut2
  • 101
  • 2
0
votes
3 answers

How to compute $\sum_{\gamma \in \text{SL}(2,\mathbb Z), \|\gamma\|<10}\frac{1}{\|\gamma \|^4}$ in Sagemath

Sorry for this question, but how to compute $$\sum_{\gamma \in \text{SL}(2,\mathbb Z), \|\gamma\|<1000}\frac{1}{\|\gamma \|^4}$$ in Sagemath? Here the norm is just Frobebius norm (square root of the sum of squares of entries) I tried something like …
taylor
  • 559
0
votes
1 answer

implementing Gram-Schmidt process using SageMaths

I'm trying to implement a function myGramSchmidt(L), which takes a list L of vectors living in some inner product space, and returns a new list which has implemented the Gram-Schmidt process above. (UPDATE) My code: def myGramSchmidt(L): n…
0
votes
0 answers

Testing if two algebras are isomorphic

Wish to establish if two finite-dimensional finitely-presented algebras (over rationals) are isomorphic, either through some built-in functionality or a brute force computation. Anybody know how/if sage can do this?
Ted Jh
  • 479
0
votes
1 answer

how to solve more inequalities all together instead of one by one by using sagemath?

If I want to solve two or more inequalities in the same input like those ones: solve((x-1)<8,x) solve((x-1)<15,x) I would like to have the two solution all together. But in the output I have only the solution of the last inequality. How to create a…
ryuk
  • 103