r/sagemath • • Apr 27 '21

Intro to Graph Theory with SageMath

Thumbnail
youtu.be
19 Upvotes

r/sagemath • • May 05 '26

DiffAlg for SageMath

17 Upvotes

Hi all,

I'd like to announce DiffAlg for SageMath, a port of the DiffAlg Macaulay2 package to SageMath. See also, https://msp.org/jsag/2019/9-1/p02.xhtml

What it does

DiffAlg computes standard operations with polynomial differential forms and vector fields: exterior product, exterior differential, interior product (contraction), Lie derivative, pullback, singular ideals, involutivity of distributions, and kernel/image of linear operators on forms and vector fields. It works symbolically.

It's a little niche, I know — but I hope somebody out there finds it useful!

Any comment would be welcome!


r/sagemath • • Sep 18 '20

Whoever wrote the tutorials for sagemath.org is a cool dude

17 Upvotes

https://doc.sagemath.org/html/en/tutorial/index.html

They're great. I'm glad that this exists. I don't have a copy of mathematica, and obviously I can't have my local files interact with wolfram alpha. So sage it is.

I was surprised to see it in the official ubuntu repository, which was nice. I don't think mathematica is that easy to install. So boom up and running in 30s.

I started using sage cause half the time I'd open up a web browser just to integrate something or find the standard deviation, but that seems dumb. I'm used to using ipython, I'm used to doing things in the terminal so sage is really great for me.

I made a log file of the last 10k lines of sage shell output that isn't an exception for easy grep or ctrl + f reference.

This really is a great project.


r/sagemath • • Sep 10 '20

SageMath vs Mathematica

17 Upvotes

What do you guys think will be the future of CAS software? Open source like SageMath or closed like Mathematica? I am asking because I am still undecided on which one I should learn to benefit me 10 - 20 years from now. If you could share with me the reasons you choose Sage over Mathematica I would appreciate it. Thanks.


r/sagemath • • Jul 17 '19

SageMath v8.8 is out! Here is the installation guide.

Thumbnail doc.sagemath.org
13 Upvotes

r/sagemath • • Feb 29 '16

SageMath accepted for GSoC 2016

Thumbnail
summerofcode.withgoogle.com
13 Upvotes

r/sagemath • • Jan 16 '21

Intro to SageMath for Non-Programmers

Thumbnail
youtu.be
12 Upvotes

r/sagemath • • Jun 08 '20

My SageMath setup, using vim-Jupyter plugin for interaction.

Post image
12 Upvotes

r/sagemath • • Nov 13 '25

Finite Fields: The Unique GF(q) for Each Prime Power

Post image
11 Upvotes

One of the most elegant results in algebra: for every prime power q = pn, there exists exactly one finite field (up to isomorphism) with q elements. That's it - no ambiguity, no choices to make. You want a field with 8 elements? There's exactly one. Field with 49 elements? Exactly one.

If you work through the examples in this .ipynb notebook, the construction is beautifully concrete. For prime fields like GF(7), you just get {0,1,2,3,4,5,6} with arithmetic mod 7. For extension fields like GF(9) = GF(3²), you construct it as F₃[x]/(f(x)) where f is an irreducible degree-2 polynomial. The multiplicative group is always cyclic - so GF(q)* has order q-1 and you can find a primitive element that generates everything. Fermat's Little Theorem falls right out: ap-1 = 1 for all nonzero a in GF(p).

The Frobenius endomorphism x ↦ xp is remarkable too. It's a field homomorphism (which seems weird - raising to a power preserves addition!), but it works because of characteristic p. Apply it n times in GF(pn) and you get back where you started.

Link: https://cocalc.com/share/public_paths/4e15da9b7faea432e8fcf3b3b0a3f170e5f5b2c8


r/sagemath • • Aug 30 '20

Video I Made on SageMath Help Features and Other Resources - May Be of Interest Here

Thumbnail
youtu.be
11 Upvotes

r/sagemath • • Dec 04 '21

Happy Cakeday, r/sagemath! Today you're 10

8 Upvotes

r/sagemath • • Nov 20 '21

Writing a proof in Sage Math

8 Upvotes

I’d like to write proofs in a math programming language as a way of processing them, making sure I understand them, harnessing the power of computers to ensure the proof is valid, and studying the proof in more detail by having automatic functions for examining some of the relevant objects in the proof.

Is this a common use of Sage, to write proofs?


r/sagemath • • Jun 03 '21

Mathematics behind cryptography l homomorphism and modulo group applicat...

Thumbnail
youtube.com
8 Upvotes

r/sagemath • • Mar 29 '19

download sage 8.7

8 Upvotes

r/sagemath • • Feb 11 '16

Open source is now ready to directly compete with Mathematica for use in the classroom

Thumbnail
sagemath.blogspot.com
8 Upvotes

r/sagemath • • Aug 13 '26

Why SageMath isn't natively working on Windows?

7 Upvotes

So I managed to install 10.7 on the Linux subsystem and it works more or less. I've also found an installation of the 9.3 version on my PC (from years ago), which, if I remember correctly, was an officially supported Windows native installation.

This got me wondering, why is SageMath not supported natively on Windows anymore? Is there a good reason why they discontinued, despite the majority of people using Windows? If I understand correctly, you can compile the source yourself for windows, but this or installing on a Linux subsystem is complicated and doesn't favour widespread adoption.


r/sagemath • • Sep 19 '20

Making examples of practical undergrad uses of sagemath?

7 Upvotes

https://i.imgur.com/ab8lDWa.png

I made an example for calculating the standard deviation of a line separated text file containing pendulum period data I had. Obviously it's not the most complex example, but it shows a use of sage that a typical student in a variety of fields might use.

I feel like sage's greatest strengths is having generic python syntax and the Ipython stuff like cd. Stuff like ease of reading files, ease of parsing them, list comprehensions, all the stuff that makes python great is also part of sage.

I enjoyed the thematic examples on the website, and thought about making some examples that are your sort of everyday scenario, where you would do something like read in a file parse it, use numpy, etc.

Edit: Unrelated, but is there a way to specify numpy to always be imported as np whenever I start my sage shell? I almost always use it for something.

Edit: Don't know why I used print for this. Oh well.


r/sagemath • • Aug 10 '18

Okay, I’ll be that guy: how does Sage compare to Mathematica?

7 Upvotes

I have a friend in college who actually shelled out for Mathematica and loves it. Not just for math, but also because it’s a great all-purpose language, and really concise for things like Project Euler problems.

I tend to suspect Sage probably isn’t quite adept at general coding, and surely lacks Mathematica’s outrageous number of unusually specific and often very poweful default functions, like analyzing an image to determine if it is of a goat. (Yes, really. It can also parse sentences.)

However, I would love to hear some general thought on how the two compare, both for math work and as all-purpose languages.


r/sagemath • • Feb 06 '16

Open source project to produce individual documentation pages for SageMath functions and operations

Thumbnail paulmasson.github.io
7 Upvotes

r/sagemath • • Sep 29 '14

Collaborative Mathematics with SageMathCloud and Google Cloud Platform

Thumbnail
googleresearch.blogspot.com
7 Upvotes

r/sagemath • • Jan 09 '26

Question regarding the functions "defining_ideal()" and "hilbert_series()" for chow rings of matroids in sagemath

6 Upvotes

Hey,

for some part of my thesis I wanted to compute some chow polynomials of especially graphic matroids for bipartite graphs and wanted to compare the run tim two different functions to obtain them.

One function is the implementation of theorem 1 of the paper chow and augmented chow polynomials as evaluations of poincaré-extended ab-indices from Christian Stump.

The other function is sagemath´s inbuild-function hilbert_seres() for the defining_ideal()-class of chow rings.
As example (here I am using sage as a python-package) :

G = graphs.CompleteBipartiteGraph(3, 4)
G1 = Graph()
G1.add_edges([(u, v, i) for i, (u, v) in enumerate(edges)])
M1 = Matroid(graph=G1)  
ch = M1.chow_ring(QQ, False)
poly = ch.defining_ideal().hilbert_series() 

Then poly is the chow polynomial for the bipartite graphs on 3 + 4 vertices.
For n + m >= 8 and n,m >= 3, the runtime of this functions explodes.
I have 16 GB RAM and this was not enough to compute the chow polynomial of the bipartite graph with n = 2 and m = 6, before my program just crushed.

I tried to take a look at the documentation on how the calculation is done for this specific function, but I couldn´t really see it.

Does someone know, where to find in the documentation of sagemath which method is used to calculate the chow polynomial this way or does someone know this?

Sincerely,
OkEar3108


r/sagemath • • Dec 04 '22

Happy Cakeday, r/sagemath! Today you're 11

6 Upvotes

r/sagemath • • Dec 16 '21

Trouble with sage

6 Upvotes

Hi guys, can anyone help me?

I've never worked with sage, but I decided to use it to get some simple results in my research.

The problem is the following: I end up with a equation which depends on variable 'a' and 't', what I need is to isolate variable 'a' so I will get a(t), I've tried using solve command but it didn't work. Does anyone know how to do it?


r/sagemath • • Jun 28 '21

OEIS Sequence with SageMath (YouTube Short)

Thumbnail
youtube.com
6 Upvotes

r/sagemath • • Dec 04 '20

Happy Cakeday, r/sagemath! Today you're 9

6 Upvotes