mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Fix new CNS calculation - remove error with factor of 10
Fix a typo in the new CNS calculation which introduced a error of factor 10. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
		
							parent
							
								
									b3fd824d18
								
							
						
					
					
						commit
						193c456f06
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -207,7 +207,7 @@ static double calculate_cns_dive(const struct dive *dive) | |||
| 
 | ||||
| 		// This formula is the result of fitting two lines to the Log of the NOAA CNS table
 | ||||
| 		rate = po2i <= 1500 ? exp(-11.7853 + 0.00193873 * po2i) : exp(-23.6349 + 0.00980829 * po2i); | ||||
| 		cns += (double) t * rate * 1000.0; | ||||
| 		cns += (double) t * rate * 100.0; | ||||
| 	} | ||||
| 	return cns; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue