Call to undefined function asinh()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hyder_m29
Forum Newbie
Posts: 12
Joined: Mon Jun 23, 2008 9:36 am

Call to undefined function asinh()

Post by hyder_m29 »

Fatal error: Call to undefined function asinh() in C:\xampp\htdocs\tay\MapUtility.php on line 22

Do I need to include a math library to get it working?
User avatar
jazz090
Forum Contributor
Posts: 176
Joined: Sun Apr 12, 2009 3:29 pm
Location: England

Re: Call to undefined function asinh()

Post by jazz090 »

whats ur php version?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Call to undefined function asinh()

Post by requinix »

asinh isn't available on Windows until PHP 5.3.

Code: Select all

if (!function_exists("asinh")) {
    function asinh($x) {
        return log($x + sqrt(1 + pow($x, 2)));
    }
}
Post Reply