rfc:pow-operator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
rfc:pow-operator [2013/12/19 08:10] datibbawrfc:pow-operator [2013/12/19 19:20] datibbaw
Line 28: Line 28:
 <code php> <code php>
 var_dump(pow([], 2)); // int(0) instead of float(0) var_dump(pow([], 2)); // int(0) instead of float(0)
 +</code>
 +
 +Using ''pow()'' as a callback will still work as expected:
 +
 +<code php>
 +call_user_func('pow', 2, 3); // 8
 </code> </code>
  
Line 86: Line 92:
   * http://math.stackexchange.com/questions/491933/exponent-rules-with-negative-numbers   * http://math.stackexchange.com/questions/491933/exponent-rules-with-negative-numbers
   * http://math.stackexchange.com/questions/68833/what-does-22-evaluate-to/68834#68834   * http://math.stackexchange.com/questions/68833/what-does-22-evaluate-to/68834#68834
 +
 +**Similar languages**
 +
 +  * Ada
 +  * D
 +  * F#
 +  * Fortran
 +  * Freemat
 +  * Haskell
 +  * Mathematica / Matlab / Scilab
 +  * Octave
 +  * Perl
 +  * Python
 +  * R
 +  * Ruby
 +  * Sage
 +  * VB / Basic
 +
 +**Dissimilar languages**
 +
 +  * Bash
 +  * Cobol
 +  * ColdFusion
 +  * Excel
 +  * Tcl
  
 ---- ----
Line 99: Line 130:
   * Octave   * Octave
   * Matlab   * Matlab
-  * D 
   * ColdFusion   * ColdFusion
  
 ** Languages with right associative exponential operator** ** Languages with right associative exponential operator**
  
 +  * D
   * Haskell   * Haskell
   * R   * R
rfc/pow-operator.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1