/**
 * Calculate the power dissipated in a circuit element.
 *
 * @param current The current flowing through the circuit element.
 * @param voltage The voltage applied across the circuit element.
 * @return The calculated power.
 */
fun calculatePower(current: Double, voltage: Double): Double {

    // Use the formula P = IV to calculate the power
    val power = current * voltage
    return power
}
/**
 * Calculate the power dissipated in a circuit element.
 *
 * @param current The current flowing through the circuit element.
 * @param voltage The voltage applied across the circuit element.
 * @return The calculated power.
 */
fun calculatePower(current: Double, voltage: Double): Double {
/**
 * Calculate the power dissipated in a circuit element.
 *
 * @param current The current flowing through the circuit element.
 * @param voltage The voltage applied across the circuit element.
 * @return The calculated power.
 */
fun calculatePower(current: Double, voltage: Double): Double {

    // Use the formula P = IV to calculate the power
    val power = current * voltage
    return power
}