AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

algebra solver

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
emoyasha



Joined: 12 Nov 2007
Posts: 64

PostPosted: Wed Jan 09, 2008 6:49 am    Post subject: algebra solver Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
maximo3491



Joined: 10 Feb 2007
Posts: 65

PostPosted: Thu Jan 10, 2008 12:58 am    Post subject: Reply with quote

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
View user's profile Send private message
emoyasha



Joined: 12 Nov 2007
Posts: 64

PostPosted: Thu Jan 10, 2008 2:08 am    Post subject: yea Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
DerRaphael



Joined: 23 Nov 2007
Posts: 604
Location: 127.0.0.1

PostPosted: Thu Jan 10, 2008 2:11 am    Post subject: Reply with quote

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
View user's profile Send private message
emoyasha



Joined: 12 Nov 2007
Posts: 64

PostPosted: Thu Jan 10, 2008 2:26 am    Post subject: well Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
DerRaphael



Joined: 23 Nov 2007
Posts: 604
Location: 127.0.0.1

PostPosted: Thu Jan 10, 2008 2:31 am    Post subject: Reply with quote

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
View user's profile Send private message
ahklerner



Joined: 26 Jun 2006
Posts: 1249
Location: USA

PostPosted: Thu Jan 10, 2008 3:25 am    Post subject: Reply with quote

look at Laszlo's Monster script for inspriation.
http://www.autohotkey.com/forum/viewtopic.php?t=17058
_________________

ʞɔпɟ əɥʇ ʇɐɥʍ
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group