Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sage]

The tag has no usage guidance.

0
votes
0answers
15 views

Find a probable prime congruent to 6 mod 7 of a particular form [on hold]

I am searching for a prime of this form: $$(2^k - 1) 10^d + 2^{k-1} - 1$$ where $d$ is the number of decimal digits of $2^{k-1} - 1$, which is congruent to 6 mod 7. I reached k=565.000 and there is ...
2
votes
0answers
47 views

localizing rings in SAGE [closed]

I am a bit of SAGE newb, so I apologize if this is a simplistic question. I want to use SAGE to compute some invariants of elliptic curves defined over rings which aren't the integers $\mathbb{Z}$ ...
1
vote
1answer
76 views

How do you save a large amount of data using SAGE?

I'm trying to save a 'big' rational matrix in SAGE, but I'm running into problems. After computing my matrix A, which has size 5 x 10,000 and each entry contains rational numbers in fraction form with ...
8
votes
3answers
2k views

random number generation from cython

I want to make my python program fast by using cython, but my inner loop is still making slow python calls to the random number generator! Several years ago this same issue was raised by someone on ...
3
votes
1answer
829 views

Solve log equations problem [SageMath]

Input var('x') solve((log((x**2 - x), 6) - log((6*x - 10), 6) == 0), x) Output [log(x^2 - x) == log(6*x - 10)] But real ...