File Exchange

image thumbnail


version 1.0.1 (4.1 MB) by Edgar Guevara
Modular arithmetic or modulo multiplication circle


Updated 13 Mar 2020

GitHub view license on GitHub

Modular arithmetic or modulo multiplication circle. Display of the times table as secants in a circle.
Performs the following operation: multiplier mod numberOfPoints.
Renders a cardioid (a.k.a. the Heart of Mathematics) or Simon Plouffe patterns. Related to the reflection of light rays in a cup of coffee. Some patterns show up in the Mandelbrot set.
Animated video available on:

Copyright (C) 2019 Edgar Guevara, PhD

Cite As

Edgar Guevara (2020). modularArithmetic (, GitHub. Retrieved .

Comments and Ratings (0)



Added the option to create animated video

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux