Comments (3)
No: result
is always complex because of the intermediate logarithms of negative numbers. For real input the imaginary part is zero and should be discarded.
from math.
See this case for negative numbers
from math.
My bad: cosIntegral
and coshIntegral
are both complex for negative real arguments. Fixed in cd9d18e. Let me know if you find other problematic cases, otherwise closing again.
from math.
Related Issues (20)
- Rename exponential integral functions HOT 1
- harmonic() for large argument HOT 3
- Define betaRegularized HOT 3
- Implement round, floor, ceil,... for complex arguments HOT 4
- Implement surd(x,n) HOT 2
- Where can I find the expIntegral function? HOT 1
- Gudermannian HOT 9
- m seems to be unnecessary in carlsonRF HOT 1
- zeta for imaginary numbers > 80 HOT 4
- haversine and inverseHaversine HOT 1
- coshIntegral script slows down browser HOT 6
- hypergeometric2F1 function: X-values close to -1 cause an eternal while-loop HOT 4
- Implement numerical Binomial/Multinomial functions HOT 1
- NUM09-J. Do not use floating-point variables as loop counters HOT 2
- Documentation lists setPrecision instead of setPrecisionScale HOT 1
- Please implement the LogisticSigmoid function HOT 1
- Please implement the subfactorial function HOT 4
- hypergeometric2F1(-3.0,-1.0,-2.0,1.0) should return -0.5
- Improve `harmonic`
- polylog - creates Uncaught InternalError: too much recursion HOT 1
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 math.