/**
 * This function calculates the approximate economic growth after a given number of years,
 * considering a certain growth rate.
 *
 * @param growthRate The annual growth rate of the economy
 * @param years The number of years to calculate the economic growth for
 * @return The approximate economic growth value after the given number of years
 */
fun approximateEconomicGrowth(growthRate: Double, years: Int): Double {

    val epsilon = 1e-10
    var result = 1.0

    repeat(years) {
        result *= (1 + growthRate)
    }

    return result
}
/**
 * This function calculates the approximate economic growth after a given number of years,
 * considering a certain growth rate.
 *
 * @param growthRate The annual growth rate of the economy
 * @param years The number of years to calculate the economic growth for
 * @return The approximate economic growth value after the given number of years
 */
fun approximateEconomicGrowth(growthRate: Double, years: Int): Double {
/**
 * This function calculates the approximate economic growth after a given number of years,
 * considering a certain growth rate.
 *
 * @param growthRate The annual growth rate of the economy
 * @param years The number of years to calculate the economic growth for
 * @return The approximate economic growth value after the given number of years
 */
fun approximateEconomicGrowth(growthRate: Double, years: Int): Double {

    val epsilon = 1e-10
    var result = 1.0

    repeat(years) {
        result *= (1 + growthRate)
    }

    return result
}