note 93921 added to function.sqrt

From: Date: Tue, 06 Oct 2009 22:14:28 +0000
Subject: note 93921 added to function.sqrt
Groups: php.notes 
Request: Send a blank email to php-notes+get-161433@lists.php.net to get a copy of this message
I think the function "xsqrt" posted below is unnecessary because pow() does the trick like "jouhni at web dot de" already noted. For comfort reasons, you could define it like this: <?php function root($n, $value) { return pow($value, 1/$n); } ?> And I would not call this "xsqrt", because "square root" means that the base is 2, not x. I'd call it "root" ;) ---- Server IP: 212.124.37.9 Probable Submitter: 77.23.19.136 ---- Manual Page -- http://www.php.net/manual/en/function.sqrt.php Edit -- https://master.php.net/note/edit/93921 Del: integrated -- https://master.php.net/note/delete/93921/integrated Del: useless -- https://master.php.net/note/delete/93921/useless Del: bad code -- https://master.php.net/note/delete/93921/bad+code Del: spam -- https://master.php.net/note/delete/93921/spam Del: non-english -- https://master.php.net/note/delete/93921/non-english Del: in docs -- https://master.php.net/note/delete/93921/in+docs Del: other reasons-- https://master.php.net/note/delete/93921 Reject -- https://master.php.net/note/reject/93921 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161433) next »