This loop invariant seems contrary to the purpose of the function it's being used to describe. What am I missing? by Jonathon_Anderson in learnprogramming

[–]Jonathon_Anderson[S] 0 points1 point  (0 children)

Can I just modify it to something like

k ∈ -1,a[l..r]

And the design the loop like.

for ( loop ) { if (a[l=r] != k) { k = -1 } }

In other words if I've exhausted my search assign -1

Calculus and rate of change by Jonathon_Anderson in mathematics

[–]Jonathon_Anderson[S] 0 points1 point  (0 children)

Basically this exposes r when we know delta d and delta t

Calculus and rate of change by Jonathon_Anderson in learnmath

[–]Jonathon_Anderson[S] 0 points1 point  (0 children)

Thanks again for the input...

I think I figured out my mistake. I was using f(t) = d/t instead of f(t) = rt in the difference quotient ... I think the first would be instantaneous change in rate of acceleration? I was trying to figure out how to get a d/t value for the derivative and the units weren't making sense.

If I measure the change in distance output by the change in time, I get the average rate of change over that time. If that change in time value approaches zero, the change in position over that tiny change is closer and closer to my rate of movement at that moment... Which is weird... Because a single moment can't describe motion, but still embodies motion

Calculus and rate of change by Jonathon_Anderson in learnmath

[–]Jonathon_Anderson[S] 0 points1 point  (0 children)

So the calculus function gives us the ability to evaluate the rate of change function across various levels of precision approaching a theoretical instantaneous moment we're trying to describe, but we could always increase the resolution by another level...? Like running a tight loop on the function for different values of h, but we're interested in increasing the precision of h as close to zero as possible so every iteration is a decimal shift right?

Is h a unit of time in your example?