Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Work in Progress / My Equation solver rough V0.2

Author
Message
Dark Angel_1246
20
Years of Service
User Offline
Joined: 7th Jul 2004
Location: Australia
Posted: 3rd Sep 2005 15:29
hi, i am attemping to make one or more programs to solve different algebra equations(just for a challange) ive started with simple equations like 3y + 14 = 29 and 15v - 11 = 4. to start the program press the space key, i suggest you use equation type 1 or 2 as the rest are not complete/bug free. if you have any questions please ask. I would apreciate any comments and ideas to make it better or easier. Does anyone know how to clear the screen of all text and prints, as i cant remember lol .
here are some equations you can use if you dont know any.
2x - 7 = 11
3y + 14 = 29
6t + 4 = 10
7c - 16 = 12
15v - 11 = 4
If you find any bugs with equation type 2 please tell me.

heres the code:


Dark_angel
Satchmo
19
Years of Service
User Offline
Joined: 29th May 2005
Location:
Posted: 3rd Sep 2005 23:27
soooooo this is a calculator

New episodes of family guy sunday!
Dark Angel_1246
20
Years of Service
User Offline
Joined: 7th Jul 2004
Location: Australia
Posted: 3rd Sep 2005 23:51
yeah you could put it that way. Can you test it a little for me and tell me what you think of the setup.

Dark_angel
ConorH
21
Years of Service
User Offline
Joined: 5th Feb 2003
Location:
Posted: 4th Sep 2005 01:31
what about simultaneous equations??

Maht Teh pwnzors

its my new rat tail dog!
Dark Angel_1246
20
Years of Service
User Offline
Joined: 7th Jul 2004
Location: Australia
Posted: 4th Sep 2005 06:10
i will work on those, do you think i should make a different program for simultaneous equations?

Dark_angel
Robot
20
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 4th Sep 2005 11:43
you can use "cls" to clear the screen.

The happenings of tommorow are behind us now
The Cage Complex
19
Years of Service
User Offline
Joined: 26th Aug 2005
Location: Reims, France.
Posted: 4th Sep 2005 17:58 Edited at: 4th Sep 2005 18:00
You can also try to use a different way... Here is another solution. You'll see this kind of code can using only one function solve stuffs like that :

2x + 5 = 15
5t - 5 = 15/3
5y -2 = 3y

And what is interesting (I guess) is that you can directly input the problem
(Problem$ = "5x - 5 = 15/3")

It's just a beginning, to solve things like "8 + 7x = 15" you'd have to manage multiplication priorities.

At this point the answer is seeked between 0 and 100, but that's only values to change.



Dark Angel_1246
20
Years of Service
User Offline
Joined: 7th Jul 2004
Location: Australia
Posted: 5th Sep 2005 09:04
The Cage Complex, thanks for your post. The main reason i like doing it the way im doing it is because it also shows all the working for the equation. Heres the next version of my simple equation solver, it now suports all 3 equations types, it does not yet surport 3x / 4 = 10 types of equations. It still requires a bit of work but for now im going to leave it at that and move on to a program for solveing simutanous equations.
equation solver v0.3


Dark_angel

Login to post a reply

Server time is: 2024-09-29 08:35:47
Your offset time is: 2024-09-29 08:35:47