Questions tagged [sage]

SageMath, the Sage Mathematical Software System: free software for Computational Mathematics, based on Python. See longer description for links to other similar-sounding tags.

SageMath

SageMath, formerly SAGE, then Sage, is computational mathematics free software. It includes

SageMath uses the Python language, with a tiny bit of syntactic sugar to ease definition of mathematical objects such as symbolic functions, number fields, polynomial rings. Some parts are written in or C/C++ for speed, but a typical user would only use Python syntax. Python wrappers help call other software included in SageMath pythonically.

It is possible to use SageMath using .

External links

Similar-sounding but unrelated tags

Many other things are called Sage. Please use the appropriate tags.

Only use the tag for questions about SageMath, the Sage mathematics software system.

The TeX.SE website has a [sagetex] tag for SageTeX questions.

MathOverflow also has a [sage] tag for Sage questions.

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.

934 questions
0
votes
1 answer

sage emacs mode not working in ubuntu

I am new to linux. and starteing to use Sage. I installed the sage mode for emacs. However its not working. I am not sure where is the init.el file for emacs located. I added the script given at the end of the installation in site-start.el(or a…
Anil
  • 3
  • 2
0
votes
2 answers

Strange event when evaluating 2D Sage Code

After installing sage on my Macbook Pro (10.6.8), I tried the following code, which worked. Then I tried: Yikes! What happened? Any thoughts? D.
David
  • 981
  • 1
  • 15
  • 27
0
votes
1 answer

Solving simultaneous equations in Sage

In Sage (using the Sage terminal in Sage Cloud), I expected the following to yield the result [t == (1/2)]. However, it yields the result []. sage: var('x1 y1 x2 y2 t') (x1, y1, x2, y2, t) sage: eq1 = x1==t sage: eq2 = y1==t sage: eq3 = x2==t sage:…
user82216
0
votes
1 answer

Using Sage-provided Scipy with own python

I'm trying to install Scipy from source on Red Hat, but having some issues with the installation process, especially with ATLAS. I saw that Sage includes Scipy and Numpy along with various other packages, and requires minimal configuration. If I…
drodrigues
  • 118
  • 6
0
votes
1 answer

SAGE: coefficients of Polynomial over finite fields

I need some help to get the coefficients of Polynomial. If tried y = var('y') q = y^3 -2*y + 1 coeff_list = [q(y=0)] + [q.coeff(y^k) for k in range(1, q.degree(y)+1)] but in GF(q) S. = PolynomialRing(GF(q),'y') q = y^3 -2*y + 1 coeff_list =…
user3327260
  • 1
  • 1
  • 1
0
votes
2 answers

Need help writing algorithm in Python/Sage

I'm a complete novice to python and sage so I need some help and clarification on the steps all the way through. This is a question concerning game theory. First I will describe the algorithm and then I will propose a solution the best I can. The…
user3200098
  • 109
  • 5
0
votes
1 answer

how to find roots of a multivariate polynomial with only one variable

Say I have a multivariate polynomial ring: R. = PolynomialRing(ZZ, 4, order='lex') and a polynomial contains only one variable, for example: f = w^4 - 1 How can I find the roots of f. Thx.
Neo
  • 45
  • 2
0
votes
1 answer

Can't not compute sum in Sage - Setup error?

Im typing in the sage terminal the following k = var('k') sum(k^2, k, 1, n) Output should be: 1/3*n^3 + 1/2*n^2 + 1/6*n Output actually is: TypeError Traceback (most recent call…
Bython
  • 1,135
  • 1
  • 12
  • 21
0
votes
1 answer

ZeroDivisionError: Inverse does not exist

The problem is 2 is non invertible at Integer Mode Ring (6). I would like to divide the result into 2 as an ordinary integer. In another word, I like to escape from integer mode ring's trap and bring the result to ordinary integer and then divide it…
0
votes
0 answers

importing sage function errors

I have a .spyx file that i'm running with using sage. I have this: from sage.all import * which has been handling built-in sage functions like: complement(), clique_number(), and graph(). BUT, it absolutely does not recognize chromatic_number(),…
Niles Bernoulli
  • 127
  • 1
  • 3
  • 9
0
votes
1 answer

Why Sage cannot pass a value of variable from one function to another nested function?

The first i ran this: sage: f(x)=(2/n)*(sin(n*x)*(-1)^(n+1)) sage: sum(f, n, 1, 2) #using summation function -sin(2*x) + 2*sin(x) So, In this case the result was evaluated correctly. But if i tried to combine the first line and the second line…
fronthem
  • 4,011
  • 8
  • 34
  • 55
0
votes
1 answer

Solve Linear System Over Finite Field with Module

Is there in sage, any instruction to solve a linear system equations module p(x) (polynomial over finite field), where the system coefficients are polynomials over finite field in any indeterminate?. I know that for integers exists something like,…
Juan
  • 2,073
  • 3
  • 22
  • 37
0
votes
2 answers

Best way to get Sage (I already have python)

I have and use Python 2.7 on Windows 7. I'm wanting to download Sage, but I already have python and I don't want it to interfere somehow (double installing python, making my current programs run under the wrong installation of python, ect.). Should…
Robinson
  • 349
  • 1
  • 5
  • 11
0
votes
1 answer

Passing constant arguments to a multidimensional rootfinder in Sage

I have a five-dimensional rootfinding problem I'd like to solve from within a Sage notebook, but the functions I wish to solve depend on other parameters that shouldn't be varied during the rootfinding. Figuring out how to set up a call to, say,…
user2275987
  • 129
  • 11
0
votes
2 answers

Python: A variable which is assigned and not changed changes along with another

Working in Sage which is basically python, I believe. I gave the following code. def lfsr_1(regs,tabs): I=regs leng=len(I) count=0 while True: FB=0 print "Before" print I print regs print temp …
Mkl Rjv
  • 6,815
  • 5
  • 29
  • 47