# HG changeset patch # User Daniele Nicolodi # Date 1373034223 -7200 # Node ID 96ab53ab9496f4685d4f3f7b36cba9b83bdcf7d6 # Parent 4f56dbdad85d165b92d5babb0ebdf66cb57b2e63 Fix computaion of expected frep change diff -r 4f56dbdad85d -r 96ab53ab9496 FXAnalyse.c --- a/FXAnalyse.c Fri Jul 05 16:07:18 2013 +0200 +++ b/FXAnalyse.c Fri Jul 05 16:23:43 2013 +0200 @@ -1159,7 +1159,7 @@ // check delta frep double delta_f_rep = f_rep_plus - f_rep_minus; - double expected = N1 / Ndiv * 2.0 * DeltakHz_3 * 1000.0; + double expected = Ndiv * 2.0 * DeltakHz_3 * 1000.0 / N1; logmsg("delta frep=%g Hz expected=%g Hz", delta_f_rep, expected); // compute N3