Comments (12)
I tried the web sim and with the built one and I can only get "undef"
How to reproduce that ?
from epsilon.
Wrong order of the functions in the issue description:
asin(acos(atan(ans)))
from epsilon.
Thanks! I'm getting the same with the built simulator.
I will try tomorrow with the real calc if there is the same issue.
from epsilon.
I've done more "tests", sim vs "another calc"
sin(9), 0.156434 vs 0.412118
cos(9), 0.987688 vs -0.911130
tan(9), 0.158384 vs -0.452315
Using KCalc on KDE, I got the same results as the simulator (web or "desktop app"), maybe this could be related to endianess of the platform.
from epsilon.
Works fine for me on another calculator (TI)
My guess is that when calling ANS, it tried to parse again the previous result : 0.017455 instead of getting the complex number behind it.
If you just try to do: asin(acos(atan(tan(cos(sin(9))), it works perfectly
from epsilon.
Still imprecise.
A casio responds with "0.4247779608", the sim "9", a single cos(), tan() or sin() is even wrong in the sim.
About the wront re-usage of "Ans" I think this is a separate issue.
from epsilon.
"A casio responds with "0.4247779608", the sim "9",-> this is normal : your CASIO calculator is set to radian so 0.4247779608 is also correct.
from epsilon.
Actual results from a device running 679CEA7
.
asin(acos(atan(tan(cos(sin(9)))))
gives 9
and
tan(cos(sin(9)))
-> 0.017455
asin(acos(atan(ans)))
-> 8.989918
This is indeed a rounding bug.
from epsilon.
Indeed, when evaluating the 'ans' value (Evaluation * LocalContext::ansValue()) it takes the last result of the calculation store with the precision of 7 digits.
from epsilon.
You can generate this even more simply: sqrt(2) followed by (Ans)^2 is 2.000001.
from epsilon.
This is now the oldest open bug. I hope OLaurent-Maths has put his finger on the problem, above: that Ans is evaluated with truncated precision. Please, is there any good reason not to carry forward all the available precision when operating on Ans? Or is something else going wrong here?
from epsilon.
This rounding bug is fixed in the new version 1.2.0
from epsilon.
Related Issues (20)
- Exact Solutions to Cubics HOT 1
- Flashage Epsilon modifier SDK HOT 1
- Probleme flashage sdk numworks HOT 1
- Floating point issue HOT 2
- Erreur de calcul dans l'application suite HOT 1
- Surveying Units HOT 2
- Updating the kandinsky python module
- Suggestion d'implémentation d'un modèle de régression exponentielle HOT 1
- Calcul d'intégrale nulle HOT 1
- Normal distribution range is displayed incorrectly for calculated probabilities HOT 5
- [Python] Add GC library to python HOT 11
- Proposal Embedding Numworks Calculator in Our App HOT 1
- Add 'double sided' inequalities to Grapher
- How to keep angular unit in emulator
- Everything that can be done in the app Calculation should also be easily done in Python
- Auto off/ screen time out HOT 1
- Linear Algebra & functions
- Cannot download scripts to the calculator HOT 1
- Integral fails with bigger exponents, but works if integrated manually and just asked to evaluate the range
- [Question] is there a way to make external apps with go or python ? 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 epsilon.