Skip to content

ashwin2rai/math-thru-python

Repository files navigation

math-thru-python

Introduction

This repo adds to Mathematical Notation: A Guide for Engineers and Scientists by Professor Edward Scheinerman by including code for notations, to make it easier to understant the concept behing standard mathematical notations.

These set of notebooks serve two purposes

  1. Introduces and expands on commonly used mathematical symbols and notations
  2. Shows the symbol in code form using Python

The motivation behind (1) is to assist people that are trying to slog through mathematics literature and need a handy guide to look up notations and the associated meaning behind it. It is commonly believed that mathematical notations help mathematicians and other trained professionals to pack a lot of information in a compact form, thus aiding in effective communication, but the same notations can be a barrier for individuals that are not familiar with the lexicon. This notebook can then be used to learn or recall the meaning behind symbols used to communicate mathematical concepts.

The motivation behind (2) is to help individuals grasp the concept behind these notations by mapping it into code. It is often felt by programmers and developers that a 10 minute explanation behind a concept can be grasped in 1 minute by simply looking at the accompanying code that executes the concept. The same philosophy is used in this notebook where-in a notation is associated with a block of code to fully comprehend the concept behind the notation.

Python is an appropriate programming language for this endevour since Pythonic syntax commonly has a 1:1 mapping with it's corresponding mathematical syntax.

Notes

  1. The notebooks are largely self-contained, i.e, if you see a symbol there will be an explanation about it at some point in the notebook.

    • Most often there will be links to the cell where the symbols are explained
    • If the symbols are not explained in this notebook, a reference to the appropriate notebook will be provided
  2. Github does a poor job of rendering these notebooks. The online render of these notebooks are missing links, symbols, and notations are badly formatted. It is advised that you clone a local copy (or download the notebook) and open it locally, or refer to the PDFs.

Essential list of notations

If you do not have the time to peruse all the content in this repo, below is a cheat sheet of items you should look at to gain basic familiarity with the most widely used notaions in order. It is written in Subtopic - Main Topic - Notebook format.

Collections/Numbers

  1. Membership - Sets - Collections
  2. Real set - Sets - Collections
  3. Integer set - Sets - Collections
  4. Set builder notation - Sets - Collections
  5. Intervals - Subset of the reals - Numbers
  6. Subset - Sets - Collections
  7. Superset - Sets - Collections
  8. Union - Sets - Collections
  9. Interesection - Sets - Collections
  10. Cartesian Product - Sets - Collections
  11. Infimum, Supremum - Sets - Collections
  12. Introduction - Lists - Collections
  13. Big sum - Aggregations - Collections
  14. Big product - Aggregations - Collections

Logic

  1. For all - Quantifiers - Logics
  2. There exists - Quantifiers - Logic
  3. Combining quantifiers - Quantifiers - Logic
  4. Implies - Proof symbols - Logic

Numbers

  1. Absolute value - Real Numbers - Numbers
  2. Defined - Real Numbers - Numbers
  3. Identically equal to - Real Numbers - Numbers
  4. Higher dimension - Real Numbers - Numbers
  5. Decorations - Subset of the reals - Numbers

Functions

  1. Set map - Fundamentals - Functions
  2. Value notation - Fundamentals - Functions
  3. Dot notation - Fundamentals - Functions
  4. Arg min max - Fundamentals - Functions
  5. Operator/Transform - Fundamentals - Functions
  6. Piecewise notation - Fundamentals - Functions
  7. Function exponentiation - Fundamentals - Functions

References

  1. The excellent - Mathematical Notation: A Guide for Engineers and Scientists by Professor Edward Scheinerman;
  2. https://en.wikipedia.org/wiki/Glossary_of_mathematical_symbols
  3. https://oeis.org/wiki/List_of_LaTeX_mathematical_symbols
  4. http://www-cs-students.stanford.edu/~csilvers/proof/node1.html#intro
  5. https://math.libretexts.org/Bookshelves/Mathematical_Logic_and_Proof/Book%3A_Book_of_Proof_(Hammack)/07%3A_Proving_Non-Conditional_Statements/7.01%3A_If-and-Only-If_Proof

About

Like math-in-code but specifically using Jupyter Notebooks and in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published