/**
 * This function calculates the escape velocity of a planet.
 *
 * @param planetMass the mass of the planet in kilograms
 * @param planetRadius the radius of the planet in meters
 * @return the escape velocity of the planet in meters per second
 */
fun calculateEscapeVelocity(planetMass: Double, planetRadius: Double): Double {

    // Constants
    val G = 6.67430e-11  // Gravitational constant in m^3/(kg*s^2)

    // Calculate the escape velocity
    val escapeVelocity = Math.sqrt(2 * G * planetMass / planetRadius)

    return escapeVelocity
}
/**
 * This function calculates the escape velocity of a planet.
 *
 * @param planetMass the mass of the planet in kilograms
 * @param planetRadius the radius of the planet in meters
 * @return the escape velocity of the planet in meters per second
 */
fun calculateEscapeVelocity(planetMass: Double, planetRadius: Double): Double {
/**
 * This function calculates the escape velocity of a planet.
 *
 * @param planetMass the mass of the planet in kilograms
 * @param planetRadius the radius of the planet in meters
 * @return the escape velocity of the planet in meters per second
 */
fun calculateEscapeVelocity(planetMass: Double, planetRadius: Double): Double {

    // Constants
    val G = 6.67430e-11  // Gravitational constant in m^3/(kg*s^2)

    // Calculate the escape velocity
    val escapeVelocity = Math.sqrt(2 * G * planetMass / planetRadius)

    return escapeVelocity
}