/**
 * Calculate the displacement by taking the absolute value of the difference between the initial and final positions
 *
 * @param xInitial The initial position
 * @param xFinal The final position
 * @return The displacement between the initial and final positions
 */
fun calculateDisplacement(xInitial: Double, xFinal: Double): Double {

    val displacement = Math.abs(xFinal - xInitial)
    return displacement
}
/**
 * Calculate the displacement by taking the absolute value of the difference between the initial and final positions
 *
 * @param xInitial The initial position
 * @param xFinal The final position
 * @return The displacement between the initial and final positions
 */
fun calculateDisplacement(xInitial: Double, xFinal: Double): Double {
/**
 * Calculate the displacement by taking the absolute value of the difference between the initial and final positions
 *
 * @param xInitial The initial position
 * @param xFinal The final position
 * @return The displacement between the initial and final positions
 */
fun calculateDisplacement(xInitial: Double, xFinal: Double): Double {

    val displacement = Math.abs(xFinal - xInitial)
    return displacement
}