outPNxy = {RLC_js ;
pyPN`
h = 0.01 #sampling period
p = PolyNum('const:(~2~,-4~4~-4~4~...~)') / h # = 2/h * (~1~-1~)/(~1~1~)
E_0 = 10
[R, L, C] = window.RLC # print(R, L, C)
E = PolyNum('const:(~1~,2~2~2~2~...~)') * (E_0 / 2) # E_0 for t > 0
Z_C = 1 / ( p*C )
Z = p*L + R + Z_C
U_R = E * R / Z
U_C = E * Z_C / Z
# data for d3chartPN()
window._h = h
window._E_asPointsList = E.asPointsList(h)
window._U_R_asPointsList = U_R.asPointsList(h)
window._U_C_asList = U_C.asList()
`
return ([
{'xy':window._E_asPointsList, 'nmHtml':'<b>‒‒‒</b> <i>e(t)</i>', 'color':`${colors_[0]}`}
, {'xy':window._U_R_asPointsList, 'nmHtml':'‒○‒ <i>u<sub>R</sub>(t)</i>', 'color':`${colors_[2]}`
,'pathAttrs':{"stroke-width": 1}
,'symbAttrs':{'symb': "circle", 'r':3}}
, {'yh':window._U_C_asList, 'h':window._h, 'nmHtml':'<b>‒○‒</b> <i>u<sub>C</sub>(t)</i>', 'color':`${colors_[1]}`
,'pathAttrs':{"stroke-width": 2.5, "stroke": "DarkBlue"}
,'symbAttrs':{'symb': "circle", 'r':3}}
]);
}