<s> """<STR_LIT>""" <EOL> from __future__ import division <EOL> from sympy import pi <EOL> from sympy . physics . unitsystems . dimensions import Dimension <EOL> from sympy . physics . unitsystems . units import Unit , Constant <EOL> from sympy . physics . unitsystems . prefixes import PREFIXES , prefix_unit <EOL> from sympy . physics . unitsystems . systems . mks import mks_dim , mks <EOL> current = Dimension ( name = '<STR_LIT>' , symbol = '<STR_LIT:I>' , current = <NUM_LIT:1> ) <EOL> voltage = Dimension ( name = '<STR_LIT>' , symbol = '<STR_LIT>' , mass = <NUM_LIT:1> , length = <NUM_LIT:2> , current = - <NUM_LIT:1> , <EOL> time = - <NUM_LIT:3> ) <EOL> impedance = Dimension ( name = '<STR_LIT>' , symbol = '<STR_LIT>' , mass = <NUM_LIT:1> , length = <NUM_LIT:2> , <EOL> current = - <NUM_LIT:2> , time = - <NUM_LIT:3> ) <EOL> conductance = Dimension ( name = '<STR_LIT>' , symbol = '<STR_LIT>' , mass = - <NUM_LIT:1> , length = - <NUM_LIT:2> , <EOL> current = <NUM_LIT:2> , time = <NUM_LIT:3> ) <EOL> capacitance = Dimension ( name = '<STR_LIT>' , mass = - <NUM_LIT:1> , length = - <NUM_LIT:2> , current = <NUM_LIT:2> , <EOL> time = <NUM_LIT:4> ) <EOL> inductance = Dimension ( name = '<STR_LIT>' , mass = <NUM_LIT:1> , length = <NUM_LIT:2> , current = - <NUM_LIT:2> , time = - <NUM_LIT:2> ) <EOL> charge = Dimension ( name = '<STR_LIT>' , symbol = '<STR_LIT>' , current = <NUM_LIT:1> , time = <NUM_LIT:1> ) <EOL> magnetic_density = Dimension ( name = '<STR_LIT>' , symbol = '<STR_LIT:B>' , mass = <NUM_LIT:1> , current = - <NUM_LIT:1> , <EOL> time = - <NUM_LIT:2> ) <EOL> magnetic_flux = Dimension ( name = '<STR_LIT>' , length = <NUM_LIT:2> , mass = <NUM_LIT:1> , current = - <NUM_LIT:1> , time = - <NUM_LIT:2> ) <EOL> dims = ( voltage , impedance , conductance , capacitance , inductance , charge , <EOL> magnetic_density , magnetic_flux ) <EOL> mksa_dim = mks_dim . extend ( base = ( current , ) , dims = dims , name = '<STR_LIT>' ) <EOL> A = Unit ( current , abbrev = '<STR_LIT:A>' ) <EOL> V = Unit ( voltage , factor = <NUM_LIT:10> ** <NUM_LIT:3> , abbrev = '<STR_LIT>' ) <EOL> ohm = Unit ( impedance , factor = <NUM_LIT:10> ** <NUM_LIT:3> , abbrev = '<STR_LIT>' ) <EOL> S = Unit ( conductance , factor = <NUM_LIT:10> ** - <NUM_LIT:3> , abbrev = '<STR_LIT:S>' ) <EOL> F = Unit ( capacitance , factor = <NUM_LIT:10> ** - <NUM_LIT:3> , abbrev = '<STR_LIT:F>' ) <EOL> H = Unit ( inductance , factor = <NUM_LIT:10> ** <NUM_LIT:3> , abbrev = '<STR_LIT:H>' ) <EOL> C = Unit ( charge , abbrev = '<STR_LIT:C>' ) <EOL> T = Unit ( magnetic_density , abbrev = '<STR_LIT:T>' ) <EOL> Wb = Unit ( magnetic_flux , abbrev = '<STR_LIT>' ) <EOL> Z0 = Constant ( impedance , factor = <NUM_LIT> * pi , abbrev = '<STR_LIT>' ) <EOL> units = [ A , V , ohm , S , F , H , C , T , Wb ] <EOL> all_units = [ ] <EOL> for u in units : <EOL> all_units . extend ( prefix_unit ( u , PREFIXES ) ) <EOL> all_units . extend ( [ Z0 ] ) <EOL> mksa = mks . extend ( base = ( A , ) , units = all_units , name = '<STR_LIT>' ) </s>
