pub fn rectangle_perimeter(base: f64, height: f64) -> f64
Calculates the perimeter of a rectangle ($2 \cdot (base + height)$).