Series/parallel resistive circuit 5

.PS
include(pstricks.m4)

scale=25.4  # Scale in mm per inch

cct_init

vsp=25  # Vertical spacing
hsp=25  # Horizontal spacing

O: (0,0)  # Define the origin point for the circuit

move to O

resistor(up_ vsp from O); llabel(,12 \Omega,); rarrow(i_1)
line right hsp
{ # Push current location to the "stack"
  dot(at Here)
  resistor(down_ to (Here.x,O.y)); llabel(,24 \Omega,)
  N1: dot(at Here) # Define node N1 at the current location
} # Return to the previous location on the "stack"
source(right_ hsp*1.5,I); llabel(,2 \text{A},); dlabel(7,-7,-,v,+)
{ # Push current location to the "stack"
  dot(at Here)
  resistor(down_ to (Here.x,O.y)); llabel(,6 \Omega,)
  N2: dot(at Here) # Define node N2 at the current location
} # Return to the previous location on the "stack"
line right hsp
resistor(down_ to (Here.x,O.y)); llabel(,12 \Omega,);rarrow(i_2)
line left to N2
resistor(left_ from N2 to N1); rlabel(,8 \Omega,)
line to O

.PE