Physics again

This is a discussion on Physics again within the C++ Programming forums, part of the General Programming Boards category; I earlier asked a question about physics (as Mr. Squirrel). I was given a brilliant answer in a formula as ...

  1. #1
    Kiss the monkey. CodeMonkey's Avatar
    Join Date
    Sep 2001
    Posts
    903

    Physics again

    I earlier asked a question about physics (as Mr. Squirrel). I was given a brilliant answer in a formula as my answer.

    1/2t^2+i*t+h=c

    t=time passed
    i=initial velocity
    h=initial height
    c=current height

    I plugged in a few things, trying to find "t".

    t=?
    i=0 (falling, so 0)
    h=10m
    c=5m

    And the answer I got was:
    t^2 = -10

    THAT'S IMPOSSIBLE!

    What's wrong with the formula, because I checked the math w/ my teacher, my dad, etc. So it isn't me.

    Any ideas?
    "If you tell the truth, you don't have to remember anything"
    -Mark Twain

  2. #2
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    heh, first, what the hell kind of notation uses 'i' for velocity? Second, the general formula is like this

    y = y0 + v0t + 1/2 a t^2

    y0 is original position
    y is final position
    v0 is the velocity
    a is the acceleration
    t is the change in time

    A positive v0 implies moving in the positive direction. A positive a implies accelerating in the positive direction. There-in lies your problem, a was negative. Things do not accelerate away from the ground (after you release them, at least).
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  3. #3
    Unregistered
    Guest

    Sorry

    I think it was you that I posted this to. I must have given you the wrong formula:

    y=-1/2t^2+vt+i

    where t =time passed
    v=initial velocity
    i=initial height
    y=current height

    I am sorry but I forgot to make 1/2 negative when I have it to u.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. physics
    By psychopath in forum Game Programming
    Replies: 5
    Last Post: 05-09-2005, 04:38 PM
  2. what physics courses
    By EvBladeRunnervE in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 10-22-2003, 12:19 PM
  3. AP Physics B
    By confuted in forum A Brief History of Cprogramming.com
    Replies: 22
    Last Post: 05-04-2003, 12:33 PM
  4. February 1, 2019...
    By Cheeze-It in forum A Brief History of Cprogramming.com
    Replies: 98
    Last Post: 08-03-2002, 07:24 AM
  5. Physics: Kind of like a cannonball...
    By Cheeze-It in forum Game Programming
    Replies: 11
    Last Post: 09-12-2001, 01:53 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21