-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1f2eac
commit be58ded
Showing
1 changed file
with
12 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -322,11 +322,11 @@ declare hyperbolic copyright "Copyright (C) 2021 Dario Sanfilippo | |
<[email protected]>"; | ||
declare hyperbolic license "LGPL v3.0 license"; | ||
hyperbolic(x) = ADAA1(EPS, f, F1, x) | ||
with { | ||
EPS = 1.0 / ma.SR; | ||
f(x_f) = x_f / (1.0 + abs(x_f)); | ||
F1(x_F1) = abs(x_F1) - log(1.0 + abs(x_F1)); | ||
}; | ||
with { | ||
EPS = 1.0 / ma.SR; | ||
f(x_f) = x_f / (1.0 + abs(x_f)); | ||
F1(x_F1) = abs(x_F1) - log(1.0 + abs(x_F1)); | ||
}; | ||
// ----------------------------------------------------------------------------- | ||
|
||
// ---------- (aa.)hyperbolic2; ------------------------------------------------ | ||
|
@@ -344,14 +344,13 @@ declare hyperbolic2 copyright "Copyright (C) 2021 Dario Sanfilippo | |
<[email protected]>"; | ||
declare hyperbolic2 license "LGPL v3.0 license"; | ||
hyperbolic2(x) = ADAA2(EPS, f, F1, F2, x) | ||
with { | ||
EPS = 1.0 / ma.SR; | ||
f(x_f) = x_f / (1.0 + abs(x_f)); | ||
F1(x_F1) = abs(x_F1) - log(1.0 + abs(x_F1)); | ||
F2(x_F2) = ma.signum(x_F2) * (.5 * (3.0 - 2.0 * abs(x_F2) + | ||
x_F2 ^ 2.0 + 2.0 * log(1.0 + abs(x_F2))) - 3.0 / 2.0) + | ||
3.0 / 2.0; | ||
}; | ||
with { | ||
EPS = 1.0 / ma.SR; | ||
f(x_f) = x_f / (1.0 + abs(x_f)); | ||
F1(x_F1) = abs(x_F1) - log(1.0 + abs(x_F1)); | ||
F2(x_F2) = ma.signum(x_F2) * (.5 * (3.0 - 2.0 * abs(x_F2) + x_F2 ^ 2.0 + | ||
2.0 * log(1.0 + abs(x_F2))) - 3.0 / 2.0) + 3.0 / 2.0; | ||
}; | ||
// ----------------------------------------------------------------------------- | ||
|
||
// ---------- (aa.)sinarctan; -------------------------------------------------- | ||
|