namespace Calculations.Electric
{
public class OhmLaw
{
///
/// Calculate Resistance from Voltage and Current
///
/// Voltage
/// Current
/// Resistance
public static decimal Resistance(decimal Voltage, decimal Current)
{
return Voltage / Current;
}
///
/// Calculate Voltage from Resistance and Current
///
/// Resistance
/// Current
/// Voltage
public static decimal Voltage(decimal Resistance, decimal Current)
{
return Current * Resistance;
}
///
/// Calculate Current from Voltage and Resistance
///
/// RVoltage
/// Resistance
/// Current
public static decimal Current(decimal Voltage, decimal Resistance)
{
return Voltage / Resistance;
}
}
}