Welcome to Dream.In.Code
Getting Help is Easy!

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!




Scientific Calculator .NET

2 Pages V  1 2 >  
Reply to this topicStart new topic

Scientific Calculator .NET

jacobjordan
13 Oct, 2008 - 02:12 PM
Post #1

class Me : Perfection
Group Icon

Joined: 11 Jun, 2008
Posts: 1,163



Thanked: 32 times
Dream Kudos: 1625
My Contributions
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:
IPB Image

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
User is offlineProfile CardPM
+Quote Post

Moonbat
RE: Scientific Calculator .NET
13 Oct, 2008 - 02:26 PM
Post #2

D.I.C Regular
Group Icon

Joined: 30 Jun, 2008
Posts: 391



Thanked: 22 times
Dream Kudos: 600
My Contributions
Wow, this sure beats the heck out of calc.exe XD

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.
User is offlineProfile CardPM
+Quote Post

gabehabe
RE: Scientific Calculator .NET
13 Oct, 2008 - 02:57 PM
Post #3

Donkey DIC
Group Icon

Joined: 6 Feb, 2008
Posts: 5,522



Thanked: 96 times
Dream Kudos: 2650
Expert In: ruling the world.

My Contributions
Great job!

I'm really impressed, especially at your age~ You've got a great future ahead of you. smile.gif

User is offlineProfile CardPM
+Quote Post

jacobjordan
RE: Scientific Calculator .NET
13 Oct, 2008 - 03:34 PM
Post #4

class Me : Perfection
Group Icon

Joined: 11 Jun, 2008
Posts: 1,163



Thanked: 32 times
Dream Kudos: 1625
My Contributions
QUOTE(Moonbat)

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.

@both of you, thanks for the kind comments.
User is offlineProfile CardPM
+Quote Post

gabehabe
RE: Scientific Calculator .NET
13 Oct, 2008 - 03:39 PM
Post #5

Donkey DIC
Group Icon

Joined: 6 Feb, 2008
Posts: 5,522



Thanked: 96 times
Dream Kudos: 2650
Expert In: ruling the world.

My Contributions
I didn't read Moonbat's post properly~

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.

smile.gif
User is offlineProfile CardPM
+Quote Post

Moonbat
RE: Scientific Calculator .NET
13 Oct, 2008 - 06:23 PM
Post #6

D.I.C Regular
Group Icon

Joined: 30 Jun, 2008
Posts: 391



Thanked: 22 times
Dream Kudos: 600
My Contributions
Math geeks dry.gif

Just kidding biggrin.gif. 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'
User is offlineProfile CardPM
+Quote Post

jacobjordan
RE: Scientific Calculator .NET
13 Oct, 2008 - 08:01 PM
Post #7

class Me : Perfection
Group Icon

Joined: 11 Jun, 2008
Posts: 1,163



Thanked: 32 times
Dream Kudos: 1625
My Contributions
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
User is offlineProfile CardPM
+Quote Post

gabehabe
RE: Scientific Calculator .NET
14 Oct, 2008 - 02:05 AM
Post #8

Donkey DIC
Group Icon

Joined: 6 Feb, 2008
Posts: 5,522



Thanked: 96 times
Dream Kudos: 2650
Expert In: ruling the world.

My Contributions
QUOTE(jacobjordan @ 14 Oct, 2008 - 05:01 AM) *
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 dry.gif


Wait... @MoonBat~ how old are you? I thought you was older than me laugh.gif
User is offlineProfile CardPM
+Quote Post

jacobjordan
RE: Scientific Calculator .NET
15 Oct, 2008 - 05:36 PM
Post #9

class Me : Perfection
Group Icon

Joined: 11 Jun, 2008
Posts: 1,163



Thanked: 32 times
Dream Kudos: 1625
My Contributions
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.
User is offlineProfile CardPM
+Quote Post

Moonbat
RE: Scientific Calculator .NET
16 Oct, 2008 - 02:05 AM
Post #10

D.I.C Regular
Group Icon

Joined: 30 Jun, 2008
Posts: 391



Thanked: 22 times
Dream Kudos: 600
My Contributions
Hey jacob, do you think you can add in a base converter, between the more common number bases like 16 and 8?
User is offlineProfile CardPM
+Quote Post

jacobjordan
RE: Scientific Calculator .NET
16 Oct, 2008 - 08:48 AM
Post #11

class Me : Perfection
Group Icon

Joined: 11 Jun, 2008
Posts: 1,163



Thanked: 32 times
Dream Kudos: 1625
My Contributions
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.
User is offlineProfile CardPM
+Quote Post

GWatt
RE: Scientific Calculator .NET
16 Oct, 2008 - 09:00 AM
Post #12

human inside
Group Icon

Joined: 1 Dec, 2005
Posts: 2,178



Thanked: 18 times
Dream Kudos: 450
My Contributions
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.
User is offlineProfile CardPM
+Quote Post

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 04:21AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month