note 60129 added to function.asinh

From: Date: Tue, 27 Dec 2005 15:42:17 +0000
Subject: note 60129 added to function.asinh
Groups: php.notes 
Request: Send a blank email to php-notes+get-100799@lists.php.net to get a copy of this message
asinh for windows: The definition for asinh is asinh(z) = log(z + sqrt(z^2 + 1)) The built-in math functions and operators give poor results for small values of z. The BCMath version produces closer results, but still quite distant if z < 1. A BCMath version of the log function might help. if (!function_exists("asinh")) { function asinh($z) { return log($z + sqrt($z^2 +1)); } } if (!function_exists("bcasinh")) { function bcasinh($z) { return log(bcadd($z, bcsqrt(bcadd(bcpow($z, 2), 1)))); } } ---- Manual Page -- http://www.php.net/manual/en/function.asinh.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+60129 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60129&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60129&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60129&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60129&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60129&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60129&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60129&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+60129&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#100799) next »