# Gnuplot script to fit an plot complex impedence
-# gnuplot -c "partitore.gnuplot"
+# use: gnuplot -c "partitore.gnuplot"
set terminal svg size 1200,5000 mouse jsdir "https://devmsg.addns.org/public/pickup/gnuplot_js/"
set output 'partitore.svg'
deg(rad) = arg (rad) * 180.0 / pi
z(real,imag) = real + i * imag
-# modello impedenza (LC parallelo)
+# impedance model
z(x) = (1/(rs + i*w(x)*l) + (i*w(x)*cp))**-1
-# rapporto V2/V1 del partitore
+# V2/V1 ratio from the voltage divider
t(x) = r / ( r + z(x))
set xrange [20:101000]
cp = 1e-10
l = 2
-
set multiplot layout 5,1 title titolo
in = "single_coil.txt"