Artur you can use something like

nulldata 100
genr x=normal(0,1)
genr f=1/(1+exp(-x))
genr g=exp(x)/(1+exp(x)) # f = g
genr d=f-g # should be a series of 0
d = abs(d)<0.00001 ? 0 : d
print d
summary d

Yiannis

Στις Τετ, 28 Οκτ 2020 στις 3:45 μ.μ., ο/η Artur Bala <artur.bala.tn@gmail.com> έγραψε:
Hi,

Is it possible to "force" Gretl to show/compute simply a "0" instead of a "1.1102e-16"?
For example, in the script below the d series holds, in theory, nothing else but 0-s but in practice it still holds some kinds of  "1.1e-17" numbers 

nulldata 100
genr x=normal(0,1)
genr f=1/(1+exp(-x))
genr g=exp(x)/(1+exp(x)) # f = g
genr d=f-g # should be a series of 0
print d
summary d

Best,
Artur
_______________________________________________
Gretl-users mailing list -- gretl-users@gretlml.univpm.it
To unsubscribe send an email to gretl-users-leave@gretlml.univpm.it
Website: https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/