/**
 * Searches for a particular force in an array of forces and returns its index if found.
 *
 * @param force A float value representing the force to be searched.
 * @param forces An array of float values representing different forces.
 * @return The index of the force in the array if found, otherwise returns -1.
 */
fun findAppliedForce(force: Float, forces: Array<Float>): Int {

    // Iterate over each force in the array
    for (i in forces.indices) {
        if (forces[i] == force) {
            return i
        }
    }
    
    // Force not found
    return -1
}
/**
 * Searches for a particular force in an array of forces and returns its index if found.
 *
 * @param force A float value representing the force to be searched.
 * @param forces An array of float values representing different forces.
 * @return The index of the force in the array if found, otherwise returns -1.
 */
fun findAppliedForce(force: Float, forces: Array<Float>): Int {
/**
 * Searches for a particular force in an array of forces and returns its index if found.
 *
 * @param force A float value representing the force to be searched.
 * @param forces An array of float values representing different forces.
 * @return The index of the force in the array if found, otherwise returns -1.
 */
fun findAppliedForce(force: Float, forces: Array<Float>): Int {

    // Iterate over each force in the array
    for (i in forces.indices) {
        if (forces[i] == force) {
            return i
        }
    }
    
    // Force not found
    return -1
}