[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

More Cwnd Calculation & Floating Point Precision



Hi:
    Thanks Polly for the email....
I tried to check whether the floating point precision is correct...
The simulation's output is different from the manual calculation....

Using this command:  cwnd=[format "%.4f"....

0/cwnd=1.0000/ssthresh=15
1/cwnd=2.0000/ssthresh=15
2/cwnd=6.0000/ssthresh=15
3/cwnd=15.0667/ssthresh=15 --> cwnd = 15+(1/15)=15.0667
4/cwnd=15.1991/ssthresh=15 --> cwnd = 15.0667+(1/15.0667)+(1/15)=15.1997

5/cwnd=15.7813/ssthresh=15 --> cwnd = 15.1997+(1/15.1997)+(1/15)=15.3322

cwnd=[format "%.5f"...

4/cwnd=15.19912/ssthresh=15 --> cwnd =
15.0667+(1/15.0667)+(1/15)=15.19971
5/cwnd=15.78135/ssthresh=15 --> cwnd =
15.1997+(1/15.1997)+(1/15)=15.33217

cwnd=[format "%.6f"...

4/cwnd=15.199119/ssthresh=15 --> cwnd =
15.0667+(1/15.0667)+(1/15)=15.199705
5/cwnd=15.781342/ssthresh=15 --> cwnd =
15.1997+(1/15.1997)+(1/15)=15.332216

Any comments?

harlisya