Comments (3)
Thank you for spotting this mistake, I greatly appreciate it. I will fix this now.
from complex.
@MusaMahmood I concur
void mu8_zcos_fp64 (mu0_fp64_t * zr, mu0_fp64_t * zi, const mu0_fp64_t ar, const mu0_fp64_t ai)
{
# if MU0_HAVE_FASTMATH
*zr = mu8_cos_fp64(ar) * mu8_cosh_fp64(ai);
*zi = -mu8_sin_fp64(ar) * mu8_sinh_fp64(ai);
# else
mu8_zcosh_fp64(zr, zi, -ai, ar);
# endif
}
void mu8_zcosh_fp64 (mu0_fp64_t * zr, mu0_fp64_t * zi, const mu0_fp64_t ar, const mu0_fp64_t ai)
{
# if MU0_HAVE_FASTMATH
*zr = mu8_cosh_fp64(ar) * mu8_cos_fp64(ai);
*zi = mu8_sinh_fp64(ar) * mu8_sin_fp64(ai);
# else
if (mu8_isinf_fp64(ar) && !mu8_isfinite_fp64(ai)) {
*zr = mu8_fabs_fp64(ar);
*zi = mu0_fp64_nan;
} else if (ar == mu0_fp64_zero && !mu8_isfinite_fp64(ai)) {
*zr = mu0_fp64_nan;
*zi = ar;
} else if (ar == mu0_fp64_zero && ai == mu0_fp64_zero) {
*zr = mu0_fp64_one;
*zi = ai;
} else if (ai == mu0_fp64_zero && !mu8_isfinite_fp64(ar)) {
*zr = mu8_fabs_fp64(ar);
*zi = ai;
} else {
*zr = mu8_cosh_fp64(ar) * mu8_cos_fp64(ai);
*zi = mu8_sinh_fp64(ar) * mu8_sin_fp64(ai);
}
# endif
}
from complex.
This bug has been already fixed
from complex.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from complex.