/**
 * Once an astronomer has measured the distance of a celestial object from the Earth and the time taken
 * by it to complete one revolution, this function can be used to calculate the angular velocity of the object.
 *
 * @param distance the distance of the celestial object from the Earth in parsecs
 * @param time the time taken by the celestial object to complete one revolution in years
 * @return the angular velocity of the celestial object in radians per year
 */
fun calculateAngularVelocity(distance: Double, time: Double): Double {

    // Calculate the circumference of the object's path
    val circumference = 2 * distance * 3.14159

    // Calculate the angular velocity using the formula: angular velocity = 2 * pi * (1 / time)
    val angularVelocity = 2 * 3.14159 * (1 / time)

    return angularVelocity
}
/**
 * Once an astronomer has measured the distance of a celestial object from the Earth and the time taken
 * by it to complete one revolution, this function can be used to calculate the angular velocity of the object.
 *
 * @param distance the distance of the celestial object from the Earth in parsecs
 * @param time the time taken by the celestial object to complete one revolution in years
 * @return the angular velocity of the celestial object in radians per year
 */
fun calculateAngularVelocity(distance: Double, time: Double): Double {
/**
 * Once an astronomer has measured the distance of a celestial object from the Earth and the time taken
 * by it to complete one revolution, this function can be used to calculate the angular velocity of the object.
 *
 * @param distance the distance of the celestial object from the Earth in parsecs
 * @param time the time taken by the celestial object to complete one revolution in years
 * @return the angular velocity of the celestial object in radians per year
 */
fun calculateAngularVelocity(distance: Double, time: Double): Double {

    // Calculate the circumference of the object's path
    val circumference = 2 * distance * 3.14159

    // Calculate the angular velocity using the formula: angular velocity = 2 * pi * (1 / time)
    val angularVelocity = 2 * 3.14159 * (1 / time)

    return angularVelocity
}