Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygensinh.c
Go to the documentation of this file.
00001 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ 00002 #include <math.h> 00003 00004 #ifdef _MSC_VER 00005 #pragma function(sinh) 00006 #endif 00007 00008 /* 00009 * @implemented 00010 */ 00011 double sinh(double x) 00012 { 00013 if(x >= 0.0) 00014 { 00015 const double epos = exp(x); 00016 return (epos - 1.0/epos) / 2.0; 00017 } 00018 else 00019 { 00020 const double eneg = exp(-x); 00021 return (1.0/eneg - eneg) / 2.0; 00022 } 00023 } Generated on Sat May 26 2012 04:35:27 for ReactOS by
1.7.6.1
|