Home :: Examples :: Cardioid

Cardioid

The name Cardioid was first used by de Castillon in Philosophical Transactions of the Royal Society in 1741.

Cardioid is an Epicycloid with one cusp: produced as the path of a point on the circumference of a circle as that circle rolls around another fixed circle with the same radius.

The parametric equations for the Cardioid are:

To plot function graph use the folowing script:

# Example
# 2D. Cardioid

# z must be zero
z = 0

# t-parameter
tmin = 0
tmax = 2*pi
tgrid = 400

# Constant
a = 2.5
n = 1

# Calculations
r = 2*a * (1 + cos(t*n))

x = r * cos(t)
y = r * sin(t)