I write the code for 3rd derivative of id-vg curve.
extract name="dgm2_d2vgs" deriv(v."gate",i."drain",3) outfile="dgm2_d2vgs.dat"
now the point of gate voltage where y .val=0 is the threshold voltage. But I cannot write the code how to extract x.val where y.val=0.
I have also used the code for finding the threshold voltage
extract name="vt" xintercept(curve(v."gate",deriv(v."gate",i."drain",3)))
But it won't work. now what can i do?