# Technical problem with the program.

#### Xenon02

Joined Feb 24, 2021
500
Hello !

I've got a quick question.
Is it me or is the program wrong :

Left diagram shows the voltage on the source and right one shows the voltage on the resistor.

I am wrong maybe but shouldn't resistor have 5V instead of -5V ?

#### MrChips

Joined Oct 2, 2009
30,939
Depends on how you label your currents and voltages.

If you apply Kirchhoff's voltage law, the sum of all voltages in a closed loop is equal to zero.
See if you can work with that.

#### Papabravo

Joined Feb 24, 2006
21,261
In going around a loop it is conventional to regard a voltage rise, going from ground to +5V as positive, and a voltage drop across a resistor, going from +5V to ground as negative. KVL is compatible with the opposite convention if you wish. That is voltage drops are positive and a voltage rise is negative. Also you can go around the loop in either direction just as long as you are consistent.

#### Xenon02

Joined Feb 24, 2021
500
Found out the solution.

When I flip this resistor it shows corretly 5V not -5V.
Wierd ...

#### WBahn

Joined Mar 31, 2012
30,243