Capacitor Energy Formula.
A simple function to calculate the stored voltage (in Joules)
in a capacitor with a charged voltage.
- Parameters:
- C : float
Capacitance in Farads.
- V : float
Voltage across capacitor.
- Returns:
energy – Energy stored in capacitor (Joules).
- Return type:
float