Results 1 to 8 of 8

Thread: Rate of change of gradient

  1. #1

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Rate of change of gradient

    Given any mathematical function what is the easiest way to find the rate of gradient change at any X value?

    I am currently calculating the absolute gradient like this...
    Code:
    let A = small value such as 0.00001
    Gradient = (f(x+A) - f(x-A)) / 2A
    Is it just a matter of finding the gradient on either side of the X value and subtracting...

    (GradientOnRightSide - GradientOnLeftSide) / 2A

  2. #2
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    Maybe I lost in translation, but as I remember that is just
    f'(x) or the derivative of your function.
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  3. #3

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    No, I'm trying to calculate it algorithmically.
    I don't live here any more.

  4. #4
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    Understood!

    In that case your formula and approach are looking good to me(if that is of any value).
    Only your last statement makes me wonder.

    Is it just a matter of finding the gradient on either side of the X value and subtracting...
    (GradientOnRightSide - GradientOnLeftSide) / 2A
    It should say: Is it just a matter of finding the value on either side of the X value and calculating the difference to get the gradient (Increse/Decrease) at the point X.
    (ValueRightSide - ValueLeftSide) / 2A
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  5. #5

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Originally posted by opus

    Only your last statement makes me wonder.
    Lets put it this way, a Y value at X might indicate instantaneous speed. The gradient at that same point would indicate the acceleration.

    The rate of change of gradient would be to measure the amount of curvature at X. To continue the analogy, delta gradient would be called "jerk" or rate of change of acceleration.

    Instead of measuring the Y value on either side of X (to find the gradient) I'd be measuring the gradient on either side of X. This should give me the rate of change of gradient (the curve at X).

    I'm thinking about taking it a step further and measuring the rate of change of jerk too! (this would be called "Jounce").
    Attached Images Attached Images  
    I don't live here any more.

  6. #6
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    OK, so your talking about the second derivative.
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  7. #7

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Originally posted by opus
    OK, so your talking about the second derivative.
    Could be, I'm not really up on the lingo any more. So jounce would be the 3rd derivative then?

  8. #8
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    Lost in translation again, but OK. That would be the third derivative, although I can't give any verbal explantion above the first derivative (Acceleration/Deceleration). But you can jerk and jounce as you want, as long as you continue each step in the same logic.

    Hey, that was the topic of my verbal exam when leaving school about 26 years ago!
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

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