|
-
Jun 16th, 2003, 01:57 PM
#1
Thread Starter
Frenzied Member
Math Help
I have created a site for the math classes I am taking, that consists of a dropdown menu, a textbox and a button...the dropdown menu lists the formulas (i.e. difference quotient of an equation, etc...) the textbox allows the user to input the equation and push submit...
what I want is to have the code calculate the difference quotient of an equation, but I am running into some problems...mainly how to get it to understand that 3(x + 2) = 3x + 2...is there some way to program this so that if a number multiplied times a letter...it will display it as such...another problem is returning exponents...how to return (2-x)^2?
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
-
Jun 16th, 2003, 06:01 PM
#2
Lively Member
Re: Math Help
Originally posted by Memnoch1207
3(x + 2) = 3x + 2
I haven't done algebra in a while, but isn't it 3x + 6 ?
As for how to make it understand what it's dealing with, you will have to make an Algebraic parser using InStr, Mid, or Split to parse out your equations.
- Steve
"I'm glad I wore these pants."
-
Jun 16th, 2003, 10:20 PM
#3
Thread Starter
Frenzied Member
lol...no wonder i'm failing the class....
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|