Skip to main content

Discrete Math with SageMath: Learn math with open-source software

Chapter 1 Getting Started

Welcome to our introduction to SageMath (also referred to as Sage). This chapter is designed for learners of all backgrounds—whether you’re new to programming or aiming to expand your mathematical toolkit. There are various options for running Sage, including the SageMathCell, CoCalc, and a local installation. The easiest way to get started is to use the SageMathCell embedded directly in this book. We will also cover how to use CoCalc, a cloud-based platform that provides a collaborative environment for running Sage code.
Sage is a free open-source mathematics software system that integrates various open-source mathematics software packages
 1 
doc.sagemath.org/html/en/reference/spkg/
. We will cover the basics, including SageMath’s syntax, data types, variables, and debugging techniques. Our goal is to equip you with the foundational knowledge needed to explore mathematical problems and programming concepts in an accessible and straightforward manner.
Join us as we explore the capabilities of SageMath!