-
-
Notifications
You must be signed in to change notification settings - Fork 809
feat: add C implementation for math/base/special/acsch
#1662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 Hi there! 👋
And thank you for opening your first pull request! We will review it shortly. 🏃 💨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR! Requested changes.
double out = stdlib_base_acsch( 2.0 ); | ||
// returns ~0.5493 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double out = stdlib_base_acsch( 2.0 ); | |
// returns ~0.5493 | |
double out = stdlib_base_acsch( 1.0 ); | |
// returns ~0.881 |
/** | ||
* @license Apache-2.0 | ||
* | ||
* Copyright (c) 2022 The Stdlib Authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Copyright (c) 2022 The Stdlib Authors. | |
* Copyright (c) 2024 The Stdlib Authors. |
#/ | ||
# @license Apache-2.0 | ||
# | ||
# Copyright (c) 2018 The Stdlib Authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Copyright (c) 2018 The Stdlib Authors. | |
# Copyright (c) 2024 The Stdlib Authors. |
/** | ||
* @license Apache-2.0 | ||
* | ||
* Copyright (c) 2018 The Stdlib Authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Copyright (c) 2018 The Stdlib Authors. | |
* Copyright (c) 2024 The Stdlib Authors. |
|
||
t = tic(); | ||
for ( i = 0; i < ITERATIONS; i++ ) { | ||
x = ( 100.0*rand_double() ) + 1.1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any specific reason for 1.1
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok thank u for pointing in right direction it should be x = ( 200.0*rand_double() ) -100(referenced from benchmark.js in same file)
/** | ||
* @license Apache-2.0 | ||
* | ||
* Copyright (c) 2022 The Stdlib Authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Copyright (c) 2022 The Stdlib Authors. | |
* Copyright (c) 2024 The Stdlib Authors. |
#/ | ||
# @license Apache-2.0 | ||
# | ||
# Copyright (c) 2022 The Stdlib Authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Copyright (c) 2022 The Stdlib Authors. | |
# Copyright (c) 2024 The Stdlib Authors. |
/** | ||
* @license Apache-2.0 | ||
* | ||
* Copyright (c) 2022 The Stdlib Authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Copyright (c) 2022 The Stdlib Authors. | |
* Copyright (c) 2024 The Stdlib Authors. |
/** | ||
* @license Apache-2.0 | ||
* | ||
* Copyright (c) 2022 The Stdlib Authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Copyright (c) 2022 The Stdlib Authors. | |
* Copyright (c) 2024 The Stdlib Authors. |
* out = stdlib_base_acsch( 2.0 ); | ||
* // returns ~0.5493 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* out = stdlib_base_acsch( 2.0 ); | |
* // returns ~0.5493 | |
* out = stdlib_base_acsch( 1.0 ); | |
* // returns ~0.881 |
math/base/special/acsch
Resolves #860
Description
FEATURE TO
ADD C IMPLEMENTATION FOR ACSCH FUNCTION
This pull request:
@stdlib/math/base/special/acsch
#860