Join 136,254 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,224 people online right now. Registration is fast and FREE... Join Now!
Started a new project about a month ago. However, i have just picked up on it again. About a year ago, i bought a calculator by Casio that had a natural readout. I loved that calculator, and i found it becoming harder to work with calculators that had the standard one-number type readouts. I looked on SourceForge for a good calculator with a natural readout, and found nothing i liked, so i made my own. It has a syntax-highlighted readout, a whole slew of math functions, including integration and differential functions, a summation function, and a lot of other junk. I gotta say, you have to be a freakin' architect to design a calculator form. It took a while before i found a button arrangement that actually fit together and looked nice. Good thing for me i love architecture. Here is the main window:
My upload space is going kinda critical, so i put up an SF project for this one. You can find it at http://sourceforge.net/projects/scientific-calc/. The thing i am most proud of about this project is the 1800 line mathematical expression evaluation class i made from scratch. It has a few bugs, but overall it performs beautifully, and fast. This calculator also features a temperature converter for Fahrenheit, Celsius, Kelvin, and Rankine, a unit converter, and a statistical calculator. All those math snippets i submitted about a month ago came directly from this calculator's code. This calculator is still in the pre-alpha stage, so i don't have any files as of currently uploaded to SF, however i expect to in about a day or so (around October 15th).
Almost forgot, i am writing this completely in C# .NET 2.0. Can't leave out that.
Edit: i changed the interface a bit. I added an 'ans' button, changed the "Simplify" button to just '=', changed the / for divide to '÷', and lastly, the '*' for multiply, to '•'.
This post has been edited by jacobjordan: 13 Oct, 2008 - 06:23 PM
Good job with this. I wish I could test it out, but my mastery of mathematics isn't good enough to test out all of the more complex scientific functions.
Good job with this. I wish I could test it out, but my mastery of mathematics isn't good enough to test out all of the more complex scientific functions.
Really? I'm in 8th grade, and i truly understand all the functions i slapped on there.
Seconded. I'm 18, with an A at GCSE maths, and they practically begged me to go on and take it in 6th form. (A level)
I can understand it if necessary, but I prefer to just avoid it.
Most likely because of the way my teacher was with me, she never had any belief in me~ she actually predicted me to get a D. I got an A just to prove her wrong, and believe you me, I rubbed it in her face. Bitch.
Just kidding . I guess I can understand gabehabe knowing this stuff, after all, he's 18. Not that age means anything, it's just that you never get formal schooling in advaned math topics (like that d/dx stuff, calculus I think) until around that age. But for an 8th grader to know all that stuff... daaaaaaaaaaang, that's amazing.
I don't think I suck at mathematics, I just:
Haven't bothered to learn about more advanced topics yet
Hate dealing with 'abstract' stuff
That's why I like science better. I like to know that the x and y on a graph stand for distance and time, or what have you, instead of just 'x-axis' and 'y-axis'
I'm taking a 10th grade math course, so i know a bit more than the average 8th grader, and i just have a love for math. The second program i ever made was a Pi calculating program.
QUOTE(gabehabe)
Most likely because of the way my teacher was with me, she never had any belief in me~ she actually predicted me to get a D. I got an A just to prove her wrong, and believe you me, I rubbed it in her face. Bitch.
I hate bitch teachers. Both of my elective teachers this quarter are an absolute dictionary.com definition of bitch. Thank god 1st quarter ends in 2 days.
This post has been edited by jacobjordan: 13 Oct, 2008 - 08:02 PM
I'm taking a 10th grade math course, so i know a bit more than the average 8th grader,
Impressive~
We didn't even have the opportunity to do anything like that in our school, we just went through all the basic crap for years, and crammed in a *little* bit of the advanced stuff at the end of year 11.
I hate education in England
Wait... @MoonBat~ how old are you? I thought you was older than me
I got the PreAlpha release 1 put up on SourceForge. The calculator has most of it's functions at this point, and seems to work pretty good on my computer. Just thought i'd let you know.
I was thinking about adding in a dialog, like the temperature converting dialog, for converting between bases, but the expression parser i made would have to undergo some radical changes for me to make is support non-base 10 expressions.
No it wouldn't. Just add a function that will convert all of your numbers to base 10 before the parsing takes place. After you have the answer you can convert it to the destination base.