Thread: im hoping someone will get this

  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    24

    im hoping someone will get this

    im like racking my brains. we have a project and we have to find the area inbetween parabolas y=x^2 and y = (-1)*(x-1)^2 +4 and must use N number of slices inbetween to get near perfect ammount. I have no idea how to even start it really. I just get the idea. have one parabola minus the other to find hte area inbetween or something. Ive been up for over 2 days straight and my brain is just fried. mondo help would be greatly loved.

    THIS IS A REQUEST BY MY PROGRMAMING TEACHER, NOT A CALCULUS TEACHER.
    Last edited by dvsumosize; 10-27-2009 at 12:06 AM.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    So get out your calculus book, or just draw a picture.

  3. #3
    Registered User
    Join Date
    Oct 2009
    Posts
    24
    im not in calculus right now, and i have to do a program similar to the other recent thread i posted. im so stumped on how to input it and such.

  4. #4
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    So then draw a picture.

  5. #5
    Registered User
    Join Date
    Oct 2009
    Posts
    24
    dude i know what it looks like, i just dont know how to code it for one minusing hte other. For like the other thread where i did the parabola area at x=4, it does it from 0 to 4. The first x intecept between the 2 is in a negative area, so i have no idea how to move it to there and start at that negative place instead of 0.

  6. #6
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Rename a copy of your similar program.

    Change the math portion of your program. Do any exra input you need, just like it was done before, but use variables matching the needs of your new program.

    Debug, test, and serve.

    Math programs use similar or even the same, input methods.

  7. #7
    Registered User
    Join Date
    Oct 2009
    Posts
    24
    W8 I JUST HAD A THOUGHT, sparked teeny teeny bit by tabstop. What if i find area from 0 to negative and hten area from 0 to other x interecept thats in positive. do you think that will work? but then after i finish the first part of calculating, how do i keep that sum and add it onto the next part i calculate. Do i save is as another name and hten do another while command and incorporate the name at the end in the total sum?
    Last edited by dvsumosize; 10-27-2009 at 12:30 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Which software sell policy is the most effective one?
    By sept in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 04-14-2008, 08:27 AM
  2. Replies: 35
    Last Post: 01-31-2008, 06:01 PM
  3. commas in large numbers
    By HKR in forum C Programming
    Replies: 7
    Last Post: 03-06-2002, 07:08 PM