| View previous topic :: View next topic |
| Author |
Message |
emoyasha
Joined: 12 Nov 2007 Posts: 64
|
Posted: Wed Jan 09, 2008 6:49 am Post subject: algebra solver |
|
|
okay i want a program to solve algebra problems, and detrmin the value of the variable such as below
1) should solve all algebra problems
2) would be nice if it would display steps
5(-7+8)9= x(9-7)
---------------------
-35+40*9=x9-x7
---------------------
5*9=2x
----------------------
45=2x
----------------------
45/2 = 22.5
----------------------
x=22.5
or
x + 5 = 100
x=95
or
x + 5= x10 + 6
------------------
5=9x+6
------------------
-1=9x
-------------------
x=-9
or even
(10)= exponents
(these are fractions)
10A(5)B(2)C(3) 100a(10)
------------------ = -----------------
5A(6)BC(2) 5
(which is 10A(5)B(2)C(3)/5A(6)BC(2)=100a(10)/5)
so then it would come out like
2BC 20a(10)
------- = ------------
A 1
or
2BC/A=20A(10)/1
i dunno how much work this would take and i have no idea where to start
2 _________________ online .ini reader with encryption
[url=http://www.autohotkey.com/forum/viewtopic.php?p=164102]
advanced tetris game many features [/url] |
|
| Back to top |
|
 |
maximo3491
Joined: 10 Feb 2007 Posts: 65
|
Posted: Thu Jan 10, 2008 12:58 am Post subject: |
|
|
There are just too many possible "designs" for a algebra problem that it seems improbable to make a solver for it without addressing each design.
By design I mean, the number of x's there are in the equation, if any of them are to powers greater than 1, if square roots are involved, etc. |
|
| Back to top |
|
 |
emoyasha
Joined: 12 Nov 2007 Posts: 64
|
Posted: Thu Jan 10, 2008 2:08 am Post subject: yea |
|
|
but ahk had the math functions.... its just a mtter of determining the type of problem as well as the order of the problem. ect ect. _________________ online .ini reader with encryption
[url=http://www.autohotkey.com/forum/viewtopic.php?p=164102]
advanced tetris game many features [/url] |
|
| Back to top |
|
 |
DerRaphael
Joined: 23 Nov 2007 Posts: 604 Location: 127.0.0.1
|
Posted: Thu Jan 10, 2008 2:11 am Post subject: |
|
|
so if you know the answer already, why bother asking and not simply do it?
google and wikipedia is your friend
greets
derRaphael _________________
|
|
| Back to top |
|
 |
emoyasha
Joined: 12 Nov 2007 Posts: 64
|
Posted: Thu Jan 10, 2008 2:26 am Post subject: well |
|
|
yes i do know the awnser, but im not sure how ot make it happen., like a scientist who has a theory but dosent know how to prove it. an dim sure my code would be extreamly expansive, so i would to learn ways to make short fast effiecnt algebra program. _________________ online .ini reader with encryption
[url=http://www.autohotkey.com/forum/viewtopic.php?p=164102]
advanced tetris game many features [/url] |
|
| Back to top |
|
 |
DerRaphael
Joined: 23 Nov 2007 Posts: 604 Location: 127.0.0.1
|
Posted: Thu Jan 10, 2008 2:31 am Post subject: |
|
|
make up your mind on how to let user note down their problems, and also how you 'll access these from your script.
then make a structure how your script learns from user input what needs to be solved
for 1st tryouts simple if-then-else-if struct's 'd be sufficent, i guess
also reading all about regular expressions for handling complex notations - nested brackets for example is a good start, too
if not done already information about how string manipulation and conversion from string to integer or float point can be done
and after learning all this or at least knowing where to read about off you go!
happy scripting
derRaphael _________________
|
|
| Back to top |
|
 |
ahklerner
Joined: 26 Jun 2006 Posts: 1249 Location: USA
|
|
| Back to top |
|
 |
|