Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calc usage is not intuitive #5

Open
lasercata opened this issue Apr 4, 2021 · 1 comment
Open

Calc usage is not intuitive #5

lasercata opened this issue Apr 4, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@lasercata
Copy link
Owner

The order to do calculation is not intuitive : for example, to do 6 + 3, it is needed to do 6, Ent, 3, +.
It would be more intuitive to type the whole calculus, and press Ent then.
To do that, the calculator adds to a string what the user type, with the operators (and show it in real time the line above), and use the eval function on it (ex : eval('6 + 3')) when the user press Ent (btw, maybe change Ent to =), with a try block to get errors. It could also be possible to keep previous results (as in the calculation tab of the Numworks).
Also maybe add (, ), some constants (pi, e, ...), modulo (%), power (^), some functions (e^x, log(x, b), trigo, factorial, .10^x, ...)

Otherwise this new part of Cracker is cool and useful !

@lasercata lasercata added the enhancement New feature or request label Apr 4, 2021
@EleriasQueflunn
Copy link
Collaborator

C'est ce que je voulais faire au début ... mais c'est tellement bien les calculatrices à pile ! Et c'est super facile à programmer.
Mais oui, tu as raison, ce n'est pas très pratique, je vais changer (mais j'ajouterai un raccourci secret pour qu'on ait toujours la possibilité de mettre l'ancien mode ;)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants