/**
 * Computes the velocity of gas based on its temperature and pressure.
 *
 * Gas velocity can be calculated using the equation:
 * velocity = square root of (2 * gamma * R * T) / (gamma - 1)
 *
 * where:
 * gamma: specific heat ratio of the gas
 * R: specific gas constant
 * T: absolute temperature of the gas in Kelvin
 *
 * @param temp Temperature of the gas in Kelvin
 * @param pressure Pressure of the gas in Pascals
 * @return Velocity of the gas in meters per second
 */
fun computeGasVelocity(temp: Double, pressure: Double): Double {

    val gamma = 1.4  // Specific heat ratio of the gas
    val R = 287.05  // Specific gas constant in J/(kg·K)

    // Calculate velocity using the provided formula
    val velocity = Math.sqrt((2 * gamma * R * temp) / (gamma - 1))

    return velocity
}
/**
 * Computes the velocity of gas based on its temperature and pressure.
 *
 * Gas velocity can be calculated using the equation:
 * velocity = square root of (2 * gamma * R * T) / (gamma - 1)
 *
 * where:
 * gamma: specific heat ratio of the gas
 * R: specific gas constant
 * T: absolute temperature of the gas in Kelvin
 *
 * @param temp Temperature of the gas in Kelvin
 * @param pressure Pressure of the gas in Pascals
 * @return Velocity of the gas in meters per second
 */
fun computeGasVelocity(temp: Double, pressure: Double): Double {
/**
 * Computes the velocity of gas based on its temperature and pressure.
 *
 * Gas velocity can be calculated using the equation:
 * velocity = square root of (2 * gamma * R * T) / (gamma - 1)
 *
 * where:
 * gamma: specific heat ratio of the gas
 * R: specific gas constant
 * T: absolute temperature of the gas in Kelvin
 *
 * @param temp Temperature of the gas in Kelvin
 * @param pressure Pressure of the gas in Pascals
 * @return Velocity of the gas in meters per second
 */
fun computeGasVelocity(temp: Double, pressure: Double): Double {

    val gamma = 1.4  // Specific heat ratio of the gas
    val R = 287.05  // Specific gas constant in J/(kg·K)

    // Calculate velocity using the provided formula
    val velocity = Math.sqrt((2 * gamma * R * temp) / (gamma - 1))

    return velocity
}