FormulaBox
- 3 Devlogs
- 2 Total hours
Calculate formulas way quicker by not having to type them out all the time!
Calculate formulas way quicker by not having to type them out all the time!
slow progress, but i managed to get more work done on FormulaBox. now it automatically resolves statements like “2a” into “2*a” to avoid issues once I implement calculating functions. Speaking of which, I should get to that. See y’all when I start on that. Happy coding!
Ok! Small progress update: the sample button now spawns a list of the variables it found, where you can enter the value for that variable. And, yes, you’re seeing it correctly.. You can enter variables in variables! When you press the Calculate button, it runs a replace algorithm a set amount of times to make sure that every variable is resolved. However, as you can see, there is a limit! I don’t wanna have this app crash because I accidentally type in an infinitely recursing formula lol. And, yes, I know the keen of you see the code snippet in the second screenshot and are probably furious that I don’t have any code to exit the for loops quicker to save on performance.. I will be looking into that, I promise! For now though, it’s 11PM and I’d quite like to brush my teeth and go to bed. Have a good night and happy coding!
Ok! I’m starting on a new project.. “FormulaBox”. So what is it? It’s in the name, really.. It’s a tool to store formulas so you can quickly calculate things, such as the gravitational pull between two objects, the amount of time it takes an object to fall from n-height, and so on. I know I just listed physics examples, but it’ll be used for so much more, by me at least. So what have I actually done on it so far? Well, right now I have a basic GUI where you can write down a formula, hit “Sample” and it’ll spit out the variables/constants it found in your text. Nothing exciting yet, but it will be awesome! And, oh yeah, I’m doing this for the frictionless mission lol. Anyways, I’mma work on this a bit more now, have a good day and as I always say.. happy coding!