Use the sliders to set the voltage between 0 and 10 Volts. The current is depicted by the blue arrow.

Vin=+2

Vin=-2

R1= kOhms.       0 kOhm 10 kOhm
R2= kOhms.       1 kOhm 10 kOhm

The gain of the circuit is $G = \frac{Vout}{Vin} = \frac{R1+R2}{R2}$ =
The input voltage is Vin = Vp = Volts.

The output voltage is calculated as $Vout = G \cdot Vp$ = Volts.