PHP Doku:: Areasinus Hyperbolikus - function.asinh.html

Verlauf / Chronik / History: (24) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzMathematische ErweiterungenMathematische FunktionenMathematische Funktionenasinh

Ein Service von Reinhard Neidl - Webprogrammierung.

Mathematische Funktionen

<<asin

atan2>>

asinh

(PHP 4 >= 4.1.0, PHP 5)

asinhAreasinus Hyperbolikus

Beschreibung

float asinh ( float $arg )

Berechnet den Areasinus Hyperbolikus von arg. Der Areasinus Hyperbolikus ist die Umkehrfunktion des Sinus Hyperbolikus, d.h. asinh(sinh(arg)) = arg.

Parameter-Liste

arg

Der zu verarbeitende Wert

Rückgabewerte

Der Areasinus Hyperbolikus von arg

Changelog

Version Beschreibung
5.3.0 Die Funktion ist nun auf allen Plattformen verfügbar.

Siehe auch


3 BenutzerBeiträge:
- Beiträge aktualisieren...
ape_cwb at yahoo dot com dot br
15.11.2007 14:40
The correct implementation of asinh(x) for Windows plataform is:

-------------------------------------------------------
function asinh($x)
{
        return ln($x + sqrt(1 + pow($x, 2)));
}

function ln($x)
{
     return $x = log($x)/log(M_E);
}
--------------------------------------------------------

The worksheet above includes a comparation about the native asinh(x) and the implemented version using LN and LOG (like Snoyes posted on 27-Dec-2005 07:42)

http://www.mavadesign.com.br/allan/asinh(x).xls

This implementation using LN, give THE SAME results that function asinh(x) linux native.

Allan Patrick Engel
Curitiba - Paraná - Brasil
Arakrys
8.06.2007 21:57
When using snoyes alternative bcasinh function, don't forget to check the precision of each single bcfunction or the default precision of ini setting bcmath.scale.
snoyes at gmail dot com
27.12.2005 16:42
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))));
    }
}



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)