Results 1 to 3 of 3

Thread: Math Help

  1. #1

    Thread Starter
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861

    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

  2. #2
    Lively Member
    Join Date
    Jun 2003
    Posts
    83

    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."

  3. #3

    Thread Starter
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    3(x + 2) = 3x + 2
    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
  •  



Click Here to Expand Forum to Full Width