Thread: Modelling functions

  1. #1
    Registered User
    Join Date
    Nov 2007

    Modelling functions

    Hi Guys

    Im having a little bit of a problem with a piece of code im trying to write. Basically I have a graph which im using to calulate the performance of a car, so im using a torque against rpm graph to model the engine chracteristics. Ive been trying to model this curve as a function of straight lines but i keep getting stuck. My idea is to model this curve then use it in an for loop with if functions to model the different states of the car as it moves through the gears, im just confused with how i can get this torque graph into the program so I can read off values of torque in this loop. Has anyone got any ideas which might help me do this?

    Any help would be gratefully recieved...Thanks!

  2. #2
    Join Date
    May 2007
    Berkeley, CA
    You would use straight lines if the velocity is constant. However, in your case, it appears the velocity varies. This means that you would have to model the motion using a second order linear differential equation. The values then can be determined using a power series.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Void Functions Help
    By bethanne41 in forum C++ Programming
    Replies: 1
    Last Post: 05-09-2005, 05:30 PM
  2. Functions and Classes - What did I do wrong?
    By redmage in forum C++ Programming
    Replies: 5
    Last Post: 04-11-2005, 11:50 AM
  3. calling functions within functions
    By edd1986 in forum C Programming
    Replies: 3
    Last Post: 03-29-2005, 03:35 AM
  4. Factory Functions HOWTO
    By GuardianDevil in forum Windows Programming
    Replies: 1
    Last Post: 05-01-2004, 01:41 PM
  5. Shell functions on Win XP
    By geek@02 in forum Windows Programming
    Replies: 6
    Last Post: 04-19-2004, 05:39 AM