/**
 * This function takes the initial voltage, a list of resistance values, and a list of current values, and returns the new voltage after performing division assignment.
 *
 * @param voltage The initial voltage value.
 * @param resistanceValues A list of resistance values.
 * @param currentValues A list of current values.
 * @return The new voltage value after division assignment.
 */
fun calculateNewVoltage(voltage: Double, resistanceValues: List<Double>, currentValues: List<Double>): Double {

    var newVoltage = voltage
    for ((resistance, current) in resistanceValues.zip(currentValues)) {
        newVoltage /= resistance * current
    }
    return newVoltage
}
/**
 * This function takes the initial voltage, a list of resistance values, and a list of current values, and returns the new voltage after performing division assignment.
 *
 * @param voltage The initial voltage value.
 * @param resistanceValues A list of resistance values.
 * @param currentValues A list of current values.
 * @return The new voltage value after division assignment.
 */
fun calculateNewVoltage(voltage: Double, resistanceValues: List<Double>, currentValues: List<Double>): Double {
/**
 * This function takes the initial voltage, a list of resistance values, and a list of current values, and returns the new voltage after performing division assignment.
 *
 * @param voltage The initial voltage value.
 * @param resistanceValues A list of resistance values.
 * @param currentValues A list of current values.
 * @return The new voltage value after division assignment.
 */
fun calculateNewVoltage(voltage: Double, resistanceValues: List<Double>, currentValues: List<Double>): Double {

    var newVoltage = voltage
    for ((resistance, current) in resistanceValues.zip(currentValues)) {
        newVoltage /= resistance * current
    }
    return newVoltage
}