Comments (12)
This package is discontinued after 1.8.
http://mate-desktop.com/blog/2014-03-17-galculator-is-coming-to-mate/
from mate-calc.
mate-calc
is resurrected.
from mate-calc.
@maandree please can you explain better the issue?
we need to reproduce the issue step by step:
-
expected behavior
-
actual behavior
from mate-calc.
expected behavior
-ln(1) = -1 x ln(1) = -1 x 0 = 0. ln(1)=0, e^0=1
-ln(e) = -1 x ln(e) = -1 x 1 = -1. ln(e)=1, e^1=e
1-ln(e) = 1 - 1 = 0
actual behavior
-ln(1) = 3.141592654i. e^3.141592654i = -1
-ln(e) = 1+3.141592654i. e^(1+3.141592654i) = -e
1-ln(e) = 2.151×10⁻³⁹⁷
from mate-calc.
@rbuj which mate-calc
version did you test that values?
from mate-calc.
latest build from master
https://gist.github.com/rbuj/bc62164be10a7290f5213c47711c7998#file-test-mate-desktop-sh
from mate-calc.
ok, with mate-calc 1.20.3 the values are different (not sure, probably b0e4fe2 makes the difference)
mate-calc 1.20.3
-ln(1) = 3.141592654i
-ln(e) = 1+3.141592654i
1-ln(e) = 0
gnome-calculator 3.30.1
-ln(1) = 0
-ln(e) = -1
1-ln(e) = 0
from mate-calc.
@rbuj these are the expected values?
-ln(1) = 1
-ln(e) = e
1-ln(e) = 0
from mate-calc.
-ln(1) = 0
-ln(e) = -1
1-ln(e) = 0
Formula
ln(x) = y
e^y = x
from mate-calc.
ok, my tests:
gnome-calculator versions:
3.10.0 it works as expected
3.8.2 shows the same wrong values as mate-calc 1.20.3
from mate-calc.
I think it was fixed by this commit: https://gitlab.gnome.org/GNOME/gnome-calculator/commit/917fafcb062412c66230bde4cfed5437ba0da235
from mate-calc.
For example, these test cases from the commit still do not work in mate-calc:
test ("1 + 2 - 3 * 4 / 5", "0.6", 0);
test ("10 mod 4 / 2", "1", 0);
test ("20 / 10 mod 3", "2", 0);
test ("12 / 3 √4", "8", 0);
test ("√5!", "10.95445115", 0);
test ("4 ^ sin 30", "2", 0);
test ("4 ^ (sin 30)", "2", 0);
test ("4 ^ sin (30)", "2", 0);
test ("sin (30) ^ 4", "0.0625", 0);
test ("sin 30 ^ 4", "0.0625", 0);
test ("sin (30 ^ 4)", "0", 0);
At least the ones when there are missing brackets do not work.
from mate-calc.
Related Issues (20)
- App consuming 100% of CPU with common usage HOT 2
- Prime factorization is not displayed in history view
- wrong result for (535^125x125^854) mod 1283
- [atan] arctan does not get calculated correctly HOT 4
- incorrect parenthesis handling HOT 1
- Calculation order error HOT 1
- Convergence issue with the ln function HOT 1
- mpc is required, but not searched HOT 5
- Window all cut off on Librem 5/small screen HOT 3
- 1.25.1: test suite is failing with core dump HOT 6
- [Question] [History listbox] How can I change the foreground color from 'black to 'white'?? HOT 1
- mate-calc: Financial mode incorrectly places currency for Russian Rouble HOT 2
- mate-calc: issues with Russian localization - not translated items HOT 1
- Paste figures with spaces should either cut or ignore spaces
- Complicated expressions with logarithm return incorrect results HOT 2
- provide option for pressure conversion HOT 2
- Expressions like e²3 crashes mate-calc HOT 4
- [Feature request] A Quit button HOT 2
- Error with log() HOT 5
- Make Calc’s window actually resizable again? HOT 7
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 mate-calc.