Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70361 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71381 invoked from network); 24 Nov 2013 21:34:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Nov 2013 21:34:16 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.215.10 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.215.10 mail.experimentalworks.net Received: from [217.114.215.10] ([217.114.215.10:55666] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/D3-51929-5D072925 for ; Sun, 24 Nov 2013 16:34:14 -0500 Received: from [192.168.2.20] (ppp-93-104-16-97.dynamic.mnet-online.de [93.104.16.97]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: johannes@schlueters.de) by mail.experimentalworks.net (Postfix) with ESMTPSA id 838253FF1D; Sun, 24 Nov 2013 22:34:32 +0100 (CET) To: Robert Williams Cc: Pierre Joye , Chris London , Tjerk Meesters , PHP Internals In-Reply-To: <2CBED69B-2859-4F70-A56D-27281EBED4CE@newtekemail.com> References: <2CBED69B-2859-4F70-A56D-27281EBED4CE@newtekemail.com> Content-Type: text/plain; charset="UTF-8" Date: Sun, 24 Nov 2013 22:33:56 +0100 Message-ID: <1385328836.19813.34.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: rfc: pow-operator From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Sun, 2013-11-24 at 13:58 -0700, Robert Williams wrote: > > $c = sqrt($c1**2 + $c2**2) > > Instead of this: > > $c = sqrt(pow($c1, 2) + pow($c2, 2)) This can even be improved already: $c = hypot($c1, $c2); No need for engine changes, new opcodes and grammar rules :-) johannes