Willem,

could you please have a look at the final computation in static double 
calculate_cns_dive(const struct dive *dive)
in divelist.c

It seems to me that the first minus in

                cns += (double)t / ((double)cns_table[j][SINGLE_EXP] - 
((double)po2i - (double)cns_table[j][PO2VAL]) * 
(double)cns_table[j][SINGLE_SLOPE] / 10.0) * 100;

should be plus (at least according to the formula in the comment above. At 
least, with this minus, you get negative CNS values for a planned air dive to 
80m of depth.

Best
Robert

Attachment: signature.asc
Description: Message signed with OpenPGP

_______________________________________________
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to