PyCalc

PyCalc

10 devlogs
10h 36m
•  Ship certified
Created by Madhav

A command line tool to help you calculate any calculation you need in one line. It uses regex to extract the command, processes it, and voila!

Timeline

Ship 1

1 payout of shell 38.0 shells

Madhav

5 months ago

Madhav Covers 10 devlogs and 10h 36m
Earned sticker

Updated Readme, and most crucially added a help function! Although it is not the best documented, it is still there. Once you get the hang of the calculator though I find it really useful.

Update attachment

I took care of the memory bugs! The s is there because it logs all keys, and I cant end it because the colors turn off when I end the program.

Update attachment

Still some bugs, but I got the memory working! (The S at the end of rcm [re-call-memory] is because of me taking a screenshot)

Update attachment

I got it to also allow multiple exponnets!

It was pretty painful as it kept thinking that it was both multiplication and exponents and throwing an error...

Update attachment

I made it so that you can also do multiple subtraction and division operations too.

Update attachment

I got 2 things working!

1, I got it to but the cursor ahead of the prediction (as shown in image) and

2, I got it to do multiple addition or multiplication operations in one go! (Note it can't mix them yet)

Update attachment

Just added little quality of life improvements, for example it now accepts spaces between commands, i.e. 3x3 or 3 x 3!

Update attachment

I added the prediction software!

Now as you type 3+3, it will automatically fill in, in yellow, ' = 6'. Once you press enter, the yellow becomes white, indicating it is a past action.

Update attachment

I added both exponents and square roots, while also completely remaking the way it monitors text. By constantly scanning you keyboard, when you press something it detects, but this now allows me to clear the screen, and rewrite whatever I want on to it, live. I will next add calculation prediction, so you don't even have to press enter!

On another note, I also added colors to make it look better, and thanks to the custom input stuff, the stuff you type is bolded!

Update attachment

I added the basic functions! you can add, subtract, divide or multiply. Thanks to Regex, it can do it by you just saying 3+3 or what is 3+3. A limitation is that as of now the numbers must be stuck together, i.e. 3*3 works, 3x3 also works, but 3 * 3 doesn't.

A nice bonus is that it clears the screen after every command.

Update attachment