/**
 * A carpenter is building a staircase with the given width and height per step.
 * The carpenter needs to calculate the length of each step in the staircase, considering the
 * height and width of each step as a complex number in the form (width + heightj), where j is the
 * imaginary unit. You need to calculate the length of each step in the form of a complex number.
 *
 * @param stairWidth The width of each step in the staircase.
 * @param stairHeight The height of each step in the staircase.
 * @return A list of complex numbers representing the length of each step in the staircase.
 */
fun calculateStaircaseLengths(stairWidth: Double, stairHeight: Double): List<Double> {

    // Calculate the length of each step using the formula sqrt(width^2 + height^2)
    val stepLengths = mutableListOf<Double>()
    stepLengths.add(Math.sqrt(stairWidth * stairWidth + stairHeight * stairHeight))
    return stepLengths
}
/**
 * A carpenter is building a staircase with the given width and height per step.
 * The carpenter needs to calculate the length of each step in the staircase, considering the
 * height and width of each step as a complex number in the form (width + heightj), where j is the
 * imaginary unit. You need to calculate the length of each step in the form of a complex number.
 *
 * @param stairWidth The width of each step in the staircase.
 * @param stairHeight The height of each step in the staircase.
 * @return A list of complex numbers representing the length of each step in the staircase.
 */
fun calculateStaircaseLengths(stairWidth: Double, stairHeight: Double): List<Double> {
/**
 * A carpenter is building a staircase with the given width and height per step.
 * The carpenter needs to calculate the length of each step in the staircase, considering the
 * height and width of each step as a complex number in the form (width + heightj), where j is the
 * imaginary unit. You need to calculate the length of each step in the form of a complex number.
 *
 * @param stairWidth The width of each step in the staircase.
 * @param stairHeight The height of each step in the staircase.
 * @return A list of complex numbers representing the length of each step in the staircase.
 */
fun calculateStaircaseLengths(stairWidth: Double, stairHeight: Double): List<Double> {

    // Calculate the length of each step using the formula sqrt(width^2 + height^2)
    val stepLengths = mutableListOf<Double>()
    stepLengths.add(Math.sqrt(stairWidth * stairWidth + stairHeight * stairHeight))
    return stepLengths
}