SageMath, also known as Sage, is a powerful, free, and open-source mathematics software system designed to meet the needs of students, educators, and researchers across various mathematical disciplines. Sage's interface is built upon the popular Python programming language, making it accessible to a wide audience. SageMath is a free alternative to expensive software like Magma, Maple, Mathematica, and MATLAB. SageMath covers an extensive range of mathematics, including algebra, calculus, number theory, combinatorics, graph theory, numerical analysis, statistics, and more. One can perform symbolic computations, complex numerical calculations, visualize data and functions in 2D and 3D, and work with advanced mathematical structures. In this article, we will learn to use SageMath in our learning journey with MathLab.
How to install SageMath: SageMath is available for three major operating systems: macOS, Windows, and Linux. It can be installed from its official website. However, if you don't want to install this software, there are options like Cocalc and Sagemathcell (read below). We now discuss how to install it on your machine.
Sage on macOS: Visit the official website and follow the instructions given on the download page.
Sage on Windows: Download the .exe file from the official website and install it on your computer.
Sage on Linux: Open your Linux terminal and run the following commands one by one (this requires internet to download)-
sudo apt update
sudo apt upgrade
sudo apt install sagemath
If this last command doesn't work, try this
sudo snap install sagemath
If it still does not work, visit the official website of Sage to get help.
Sage without installation: Sage can be used without installing it on your machine. There are two ways to use SageMath online-
- CoCalc: CoCalc is a powerful, web-based collaborative cloud computing platform. It operates in web browser, which eliminates the need for local software installations. You can collaborate with your colleagues to work on the same documents simultaneously. With CoCalc, you can create LaTex document as well. CoCalc has free and paid plan. If you want, you can go with paid plan to access full features. Visit CoCalc website by clicling here.
- Sagemathcell: SageMathCell is essentially a web service that allows you to embed SageMath computations into web pages. It provides a simple way to execute SageMath code directly within a web browser, without requiring users to install SageMath software locally. The best part of SageMathCell is that you can access it directly from your mobile via the web browser. This makes it very useful for creating interactive mathematical content on websites. However, it also has some disadvantages. Visit the Sagemathcell website by clicking here.