Giter VIP home page Giter VIP logo

Comments (12)

monsta avatar monsta commented on August 21, 2024

This package is discontinued after 1.8.
http://mate-desktop.com/blog/2014-03-17-galculator-is-coming-to-mate/

from mate-calc.

flexiondotorg avatar flexiondotorg commented on August 21, 2024

mate-calc is resurrected.

from mate-calc.

sc0w avatar sc0w commented on August 21, 2024

@maandree please can you explain better the issue?

we need to reproduce the issue step by step:

  • expected behavior

  • actual behavior

from mate-calc.

rbuj avatar rbuj commented on August 21, 2024

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.

sc0w avatar sc0w commented on August 21, 2024

@rbuj which mate-calc version did you test that values?

from mate-calc.

rbuj avatar rbuj commented on August 21, 2024

latest build from master
https://gist.github.com/rbuj/bc62164be10a7290f5213c47711c7998#file-test-mate-desktop-sh

from mate-calc.

sc0w avatar sc0w commented on August 21, 2024

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.

sc0w avatar sc0w commented on August 21, 2024

@rbuj these are the expected values?


-ln(1) = 1
-ln(e) = e
1-ln(e) = 0

from mate-calc.

rbuj avatar rbuj commented on August 21, 2024

@sc0w

-ln(1) = 0
-ln(e) = -1
1-ln(e) = 0

Formula

ln(x) = y
e^y = x

from mate-calc.

sc0w avatar sc0w commented on August 21, 2024

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.

mbkma avatar mbkma commented on August 21, 2024

I think it was fixed by this commit: https://gitlab.gnome.org/GNOME/gnome-calculator/commit/917fafcb062412c66230bde4cfed5437ba0da235

from mate-calc.

mbkma avatar mbkma commented on August 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.