Skip to content

Commit 3e37816

Browse files
committed
Auto-generated commit
1 parent a0bbc8d commit 3e37816

File tree

4 files changed

+57
-15
lines changed

4 files changed

+57
-15
lines changed

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,48 @@
22

33
> Package changelog.
44

5+
<section class="release" id="unreleased">
6+
7+
## Unreleased (2024-11-09)
8+
9+
<section class="packages">
10+
11+
### Packages
12+
13+
</section>
14+
15+
<!-- /.packages -->
16+
17+
<section class="contributors">
18+
19+
### Contributors
20+
21+
A total of 1 person contributed to this release. Thank you to this contributor:
22+
23+
- Gunj Joshi
24+
25+
</section>
26+
27+
<!-- /.contributors -->
28+
29+
<section class="commits">
30+
31+
### Commits
32+
33+
<details>
34+
35+
- [`5a2ddbe`](https://github.com/stdlib-js/stdlib/commit/5a2ddbe402c98b9ea6aa989e248a3b26da375feb) - **docs:** correct the function description and indentation in `math/base/assert/is-odd` [(#3070)](https://github.com/stdlib-js/stdlib/pull/3070) _(by Gunj Joshi)_
36+
37+
</details>
38+
39+
</section>
40+
41+
<!-- /.commits -->
42+
43+
</section>
44+
45+
<!-- /.release -->
46+
547
<section class="release" id="v0.3.3">
648

749
## 0.3.3 (2024-11-05)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
158158
[npm-image]: http://img.shields.io/npm/v/@stdlib/math.svg
159159
[npm-url]: https://npmjs.org/package/@stdlib/math
160160

161-
[test-image]: https://github.com/stdlib-js/math/actions/workflows/test.yml/badge.svg?branch=v0.3.3
162-
[test-url]: https://github.com/stdlib-js/math/actions/workflows/test.yml?query=branch:v0.3.3
161+
[test-image]: https://github.com/stdlib-js/math/actions/workflows/test.yml/badge.svg?branch=main
162+
[test-url]: https://github.com/stdlib-js/math/actions/workflows/test.yml?query=branch:main
163163

164164
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math/main.svg
165165
[coverage-url]: https://codecov.io/github/stdlib-js/math?branch=main

base/assert/is-odd/examples/c/example.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
#include <stdbool.h>
2222

2323
int main( void ) {
24-
const double x[] = { 5.0, -5.0, 3.14, -3.14, 0.0, 0.0/0.0 };
24+
const double x[] = { 5.0, -5.0, 3.14, -3.14, 0.0, 0.0/0.0 };
2525

26-
bool b;
27-
int i;
28-
for ( i = 0; i < 6; i++ ) {
29-
b = stdlib_base_is_odd( x[ i ] );
30-
printf( "Value: %lf. Is Odd? %s.\n", x[ i ], ( b ) ? "True" : "False" );
31-
}
26+
bool b;
27+
int i;
28+
for ( i = 0; i < 6; i++ ) {
29+
b = stdlib_base_is_odd( x[ i ] );
30+
printf( "Value: %lf. Is Odd? %s.\n", x[ i ], ( b ) ? "True" : "False" );
31+
}
3232
}

base/assert/is-odd/src/main.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "stdlib/math/base/assert/is_even.h"
2121

2222
/**
23-
* Test if a finite double-precision floating-point number is an odd number.
23+
* Tests if a finite double-precision floating-point number is an odd number.
2424
*
2525
* @param x input value
2626
* @return output value
@@ -32,9 +32,9 @@
3232
* // returns true
3333
*/
3434
bool stdlib_base_is_odd( const double x ) {
35-
// Check sign to prevent overflow...
36-
if ( x > 0.0 ) {
37-
return stdlib_base_is_even( x - 1.0 );
38-
}
39-
return stdlib_base_is_even( x + 1.0 );
35+
// Check sign to prevent overflow...
36+
if ( x > 0.0 ) {
37+
return stdlib_base_is_even( x - 1.0 );
38+
}
39+
return stdlib_base_is_even( x + 1.0 );
4040
}

0 commit comments

Comments
 (0)