You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 !
The text was updated successfully, but these errors were encountered:
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 ;)).
The order to do calculation is not intuitive : for example, to do
6 + 3
, it is needed to do6
,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 pressEnt
(btw, maybe changeEnt
to=
), with atry
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 !
The text was updated successfully, but these errors were encountered: