# Exponential model for population growth

let initial_population = 50_000 people
let growth_rate = 2% per year

fn predict_population(t: Time) =
    initial_population × e^(growth_rate·t) // round

print("Population in  20 years: {predict_population(20 years)}")
print("Population in 100 years: {predict_population(1 century)}")
assert_eq(predict_population(20 years), 74_591 people)
