Home
last modified time | relevance | path

Searched refs:atan2 (Results 1 – 11 of 11) sorted by relevance

/PHP-5.5/ext/standard/tests/math/
H A Datan2_error.phpt2 Test atan2() - wrong params atan2()
5 atan2();
6 atan2(36);
7 atan2(36,25,0);
10 Warning: atan2() expects exactly 2 parameters, 0 given in %s on line %d
12 Warning: atan2() expects exactly 2 parameters, 1 given in %s on line %d
14 Warning: atan2() expects exactly 2 parameters, 3 given in %s on line %d
H A Datan2_variation2.phpt2 Test atan2() function : usage variations - different data types as $x arg
7 /* Prototype : float atan2 ( float $y , float $x )
12 echo "*** Testing atan2() : basic functionality ***\n";
80 // loop through each element of $inputs to check the behaviour of atan2()
84 var_dump(atan2(23, $input));
91 *** Testing atan2() : basic functionality ***
143 Warning: atan2() expects parameter 2 to be double, string given in %s on line %d
148 Warning: atan2() expects parameter 2 to be double, string given in %s on line %d
153 Warning: atan2() expects parameter 2 to be double, array given in %s on line %d
158 Warning: atan2() expects parameter 2 to be double, string given in %s on line %d
[all …]
H A Datan2_variation1.phpt2 Test atan2() function : usage variations - different data types as $y arg
7 /* Prototype : float atan2 ( float $y , float $x )
12 echo "*** Testing atan2() : usage variations ***\n";
80 // loop through each element of $inputs to check the behaviour of atan2()
84 var_dump(atan2($input, 23));
92 *** Testing atan2() : usage variations ***
144 Warning: atan2() expects parameter 1 to be double, string given in %s on line %d
149 Warning: atan2() expects parameter 1 to be double, string given in %s on line %d
154 Warning: atan2() expects parameter 1 to be double, array given in %s on line %d
159 Warning: atan2() expects parameter 1 to be double, string given in %s on line %d
[all …]
H A Datan_basic.phpt26 $atan2 = 360 * atan(0.57735026918963) / (2.0 * M_PI);
27 var_dump($atan2);
28 if (allowed_rounding_error($atan2 ,30 )) {
H A Datan2_basic.phpt2 Test atan2() - basic function test of atan2()
35 $res = atan2($valuesy[$i], $valuesx[$j]);
H A Datan2_basiclong_64bit.phpt2 Test atan2 function : 64bit long tests
27 var_dump(atan2($longVal, $otherVal));
/PHP-5.5/ext/standard/
H A Dphp_math.h38 PHP_FUNCTION(atan2);
H A Dmath.c461 PHP_FUNCTION(atan2) in PHP_FUNCTION() argument
468 RETURN_DOUBLE(atan2(num1, num2)); in PHP_FUNCTION()
H A Dbasic_functions.c2910 PHP_FE(atan2, arginfo_atan2)
/PHP-5.5/ext/date/lib/
H A Dastro.c47 #define atan2d(y,x) (RADEG*atan2(y,x))
/PHP-5.5/ext/gd/libgd/
H A Dgd.c1141 double ac = cos (atan2 (dy, dx)); in gdImageLine()
1205 double as = sin (atan2 (dy, dx)); in gdImageLine()
1422 double as = sin(atan2(dy, dx)); in gdImageDashedLine()
1428 wid = (int)(thick * sin(atan2(dy, dx))); in gdImageDashedLine()
1472 double as = sin (atan2 (dy, dx)); in gdImageDashedLine()

Completed in 38 milliseconds