Each reactance consists an ohmic resistor.
Capacitive reactances additionally include a capacitor and inductive reactances include a coil.
Each series of complex resistances can be replaced by an electrically equivalent of a parallel reactances and vice versa.
If you want to know, how looks the equations used into the script, then see at the mathematical background: Parallel reactance, Series reactance.