public static double GetResistanceByPowerVoltage(double watts, double volts) { return ((volts*volts)/watts); //R = V2 / W }