X-Git-Url: https://www.hackdaworld.org/gitweb/?a=blobdiff_plain;f=fluctuation_calc.c;h=0ef092076d859fed6a18532a30b0c72003953af9;hb=d4af1d076a5e811d5c35832e7ea5f720554b295b;hp=210f3829ca7c6b495511043170969e62f06374b6;hpb=25c22fe95e80365056c6a7fadc548119360ca8ce;p=physik%2Fposic.git diff --git a/fluctuation_calc.c b/fluctuation_calc.c index 210f382..0ef0920 100644 --- a/fluctuation_calc.c +++ b/fluctuation_calc.c @@ -100,10 +100,11 @@ int main(int argc,char **argv) { } } +printf(" count = %d\n",count); de2=e2/count-e*e/(count*count); printf("--> fluctuation [eV/atom]: %.20f\n",de2); if(argc==8) { - de2*=(np*np)*(EV*EV); + de2*=((np*np*EV*EV)); printf(" specific heat capacity (T=%f K) [J/(kg K)]:\n", t); printf(" nve: %f\n",