/**
 * Calculate the factor of safety for a structural element given the stress applied and the yield strength.
 *
 * @param stress The stress applied on the structural element.
 * @param yieldStrength The yield strength of the structural element.
 * @return The factor of safety of the structural element.
 */
fun calculateFactorOfSafety(stress: Double, yieldStrength: Double): Double {

    val factorOfSafety = yieldStrength / stress
    return factorOfSafety
}
/**
 * Calculate the factor of safety for a structural element given the stress applied and the yield strength.
 *
 * @param stress The stress applied on the structural element.
 * @param yieldStrength The yield strength of the structural element.
 * @return The factor of safety of the structural element.
 */
fun calculateFactorOfSafety(stress: Double, yieldStrength: Double): Double {
/**
 * Calculate the factor of safety for a structural element given the stress applied and the yield strength.
 *
 * @param stress The stress applied on the structural element.
 * @param yieldStrength The yield strength of the structural element.
 * @return The factor of safety of the structural element.
 */
fun calculateFactorOfSafety(stress: Double, yieldStrength: Double): Double {

    val factorOfSafety = yieldStrength / stress
    return factorOfSafety
}