test-poly-3.cir, which produces erronous values

This commit is contained in:
rlar 2018-01-31 18:56:03 +01:00
parent 560cb6e970
commit b668f76c4e
1 changed files with 27 additions and 0 deletions

27
test-poly-3.cir Normal file
View File

@ -0,0 +1,27 @@
.title niiter + spice2poly issue
* (compile "SPICE_SCRIPTS=$(pwd)/test-poly ../w32/src/ngspice test-poly-3.cir" t)
v1 in 0 dc=0
E1 out 0 poly(1) in 0 0.0 0.0 1.0
.control
dc v1 1 2 1
let out_gold = v(in) * v(in)
print v(out) - v(out_gold)
let abs_err_e1 = vecmax(abs(v(out) - v(out_gold)))
echo "Note: abs_err_e1 = $&abs_err_e1"
if abs_err_e1 > 1e-12
echo "ERROR: mismatch"
end
.endc
.end