Open stujoult opened 2 hours ago
Hi! nth root is just raising something to the power of 1/n, so I didn't originally add a separate button (but I could!). And currently if you press "alt" and then the "clear scr[ee]n" button (which will appear in place of the "clear" button), it will clear all the calculations history displayed on the screen-- though they will remain in your history, and appear as your input if you press "up".
Given that, should I still add a cube root and nth root button? If your goal is just to get a nice looking LaTeX equation, I could add a feature that shows cube or nth root if you raise something to the power of 1/n. But I realize it's cumbersome to have to type ^(1/3)
, so a separate button makes sense.
Where would make sense to put it? My initial thought is if you press "alt" then the "sqrt" button becomes cube root, perhaps abbreviated as "cbrt" though that isn't very standardized. And maybe the "ln" button could become "nth root", though again I'm not sure what a nice abbreviation would be. And I forget how this worked on previous calculators that I used, would you enter your exponent, the "nth root" operator, then the thing you want to take the nth root of? I think this means I would have to add a new operator instead of just using a function, but that isn't too hard.
Just to confirm, you don't just want to hide the visible previous inputs/outputs by pressing the "clear scrn" button, but actually erase them from the storage? The only user visible effect is that if you press "up" then they wouldn't be there anymore. My feeling is that this happens rarely, so rather than have a dedicated calculator button, I could put this in the options. And since it couldn't be reversed, I would add a prompt like "are you sure?". Does that sound good?
I don't know how to write cube root and the other nth root. And a button to clear all calculations history.