Skip to content

Commit c5689f5

Browse files
chore: update main.c
1 parent ecda47c commit c5689f5

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

lib/node_modules/@stdlib/math/base/special/atan2f/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ int main( void ) {
186186
## See Also
187187

188188
- <span class="package-name">[`@stdlib/math/base/special/atanf`][@stdlib/math/base/special/atanf]</span><span class="delimiter">: </span><span class="description">compute the arctangent of a single-precision floating-point number.</span>
189+
189190
- <span class="package-name">[`@stdlib/math/base/special/atan2`][@stdlib/math/base/special/atan2]</span><span class="delimiter">: </span><span class="description">compute the angle in the plane (in radians) between the positive x-axis and the ray from (0,0) to the point (x,y).</span>
190191
</section>
191192

lib/node_modules/@stdlib/math/base/special/atan2f/benchmark/c/native/benchmark.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ static double benchmark( void ) {
9999

100100
t = tic();
101101
for ( i = 0; i < ITERATIONS; i++ ) {
102-
x = ( 100.0f*rand_float() ) - 0.0f;
103-
y = ( 100.0f*rand_float() ) - 0.0f;
104-
z = stdlib_base_atan2f( x, y );
102+
x = ( 100.0f * rand_float() ) - 0.0f;
103+
y = ( 100.0f * rand_float() ) - 0.0f;
104+
z = stdlib_base_atan2f( y, x );
105105
if ( z != z ) {
106106
printf( "should not return NaN\n" );
107107
break;

lib/node_modules/@stdlib/math/base/special/atan2f/docs/repl.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11

22
{{alias}}( y, x )
3-
Computes the angle in the plane (in radians) between the positive x-axis and
4-
the ray from (0,0) to the point (x,y) for single-precision floating-point number.
3+
Computes the angle in the plane (in radians) between the positive x-axis
4+
and the ray from (0,0) to the point (x,y) for single-precision
5+
floating-point number.
56

67
Parameters
78
----------

lib/node_modules/@stdlib/math/base/special/atan2f/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ float stdlib_base_atan2f( const float y, const float x ) {
9797
}
9898

9999
// Case: -x = y = +infinity
100-
if ( x === STDLIB_CONSTANT_FLOAT32_NINF && y === STDLIB_CONSTANT_FLOAT32_PINF ) {
100+
if ( x == STDLIB_CONSTANT_FLOAT32_NINF && y == STDLIB_CONSTANT_FLOAT32_PINF ) {
101101
return 3.0f * STDLIB_CONSTANT_FLOAT32_FOURTH_PI; // 3π/4
102102
}
103103
// Case: x = y = -infinity
104-
if ( x === STDLIB_CONSTANT_FLOAT32_NINF && y === STDLIB_CONSTANT_FLOAT32_PINF ) {
104+
if ( x == STDLIB_CONSTANT_FLOAT32_NINF && y == STDLIB_CONSTANT_FLOAT32_PINF ) {
105105
return -3.0f * STDLIB_CONSTANT_FLOAT32_FOURTH_PI; // -3π/4
106106
}
107107
// Case: x is -Infinity

lib/node_modules/@stdlib/math/base/special/atan2f/test/fixtures/julia/runner.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import JSON
2020

2121
"""
22-
gen( x, y, name )
22+
gen( x, y, name )
2323
2424
Generate fixture data and write to file.
2525

0 commit comments

Comments
 (0)