windows calculator software

I patched it to work by adding some regular expressions, but really I should probably redesign the algorithm to use regular expressions from the ground up, should be much easier. But anyway, it mostly seems to work now, so next time I'll add support for variables, starting with 'ans', and then when ans is in there, do the automatic recalculation when something changes.

Then it's a matter of adding in all the calculation functions, but I can also just give you the code so you can add what you need. :p

I may also consider allowing you to save lines as custom functions, we'll see.
 
Well, got a little bit further ... or actually, all the way there, if you ignore the fact that about a million functions still need to be added and such. ;)

The previous answer variable is implemented (with a basic variable store using an interface so you can hook up your own backing it up), and the automatic recalculation after updating a non-final entry works.
 

Attachments

  • slowcrunch.PNG
    slowcrunch.PNG
    9.7 KB · Views: 15
Here, give this basic version a whirl and let me know what you think/miss (except a lot of functions). And what functions you need most if any, or if you just want to program the actual calculation stuff yourself ;)
 

Attachments

  • WpfCalculator.zip
    57.7 KB · Views: 1
Arwin that looks very nice so far, obviously you need the standard functions ^ % sin etc
I wouldnt worry about the -+ stuff either
 
Arwin that looks very nice so far, obviously you need the standard functions ^ % sin etc
I wouldnt worry about the -+ stuff either

The +- are for inserting or deleting a row ...

This may be completely overkill, but what about Maple?

That's an amazing piece of software, from the looks of it. I worry though that it would me longer to figure out if I can do what zed asked in that and what it would cost me, than that it took me to write this!
 
Here's a new version which has some bugs squashed, some functions added, and support for variables, including assigning new ones (e.g. arwin=sum(12;4))

Busy weekend(s) ahead, but if you have some input / something you really need, I might be able to do something on Sunday.
 

Attachments

  • WpfCalculator.zip
    60.7 KB · Views: 3
I picked this up again to experiment with unit testing, which made this software better immediately. Is there still interest in it here? If so I will occasionally post an update here.

With .NET Core released, I could also try to make this into a Core .NET app, or at least the back-end of it, to test how well that runs multi-platform wise ...
 
Back
Top