#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    2
    Rep Power
    0

    Polynomial Equations


    I'm trying to make a program without struct which make basic equations.Like add 3x^2+2 4x^+3.I define three string for them.But i think the whole program will be long and i don't have time to think clearly.Is there anyone made this program before?I need the program's source code immediately :(
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,648
    Rep Power
    4248
    Not sure what you're asking. You want a program to evaluate 3x^2+2 4x^+3 and you think that writing that will take too long?? Or do you want it to evaluate any equation you type in?
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    2
    Rep Power
    0
    Originally Posted by Scorpions4ever
    Not sure what you're asking. You want a program to evaluate 3x^2+2 4x^+3 and you think that writing that will take too long?? Or do you want it to evaluate any equation you type in?
    any equations and not just adding,subtraction etc.
  6. #4
  7. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,648
    Rep Power
    4248
    You could try embedding a language interpreter such as lua or python into your C code. Just google for "embedding lua" or "embedding python" for details.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  8. #5
  9. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,417
    Rep Power
    1871
    > I'm trying to make a program without struct
    Yeah, we all love this guessing game.

    Anything else on the exclusion list? Arrays, functions?

    > But i think the whole program will be long and i don't have time to think clearly
    Meaning you've been sitting around doing nothing (or just going to xmas parties), and now you're panicking, hoping for Santa Claus to give you a nice present you can run off to teacher to make it seem like you're a good girl.

    > I need the program's source code immediately
    I'm sure you do - but we're not going to just give you code to get you an 'A' when all you deserve is an 'F'.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper

IMN logo majestic logo threadwatch logo seochat tools logo