Lissajous curves

All the standard trigonometric functions such as sin, cos, tan, and so on are represented by universal functions in NumPy (see https://www.khanacademy.org/math/trigonometry). Lissajous curves are a fun way of using trigonometry. I remember producing Lissajous figures on an oscilloscope in the physics lab. Two parametric equations describe the figures:

x = A sin(at + π/2)
y = B sin(bt)

Get NumPy : Beginner's Guide - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.