aim1732 said:
You wrote vf+=a. As far as I see vf=v*at...but please no more program codes.
My apologies, aim, I'll keep it descriptive (I hope).
The term vF+=a is a short form of vF=vF+a, (a) was previously calculated (just once).
Here's what the program does:
Initial velocity is defined as: 230.33 (500 mph), there is no need to calculate it since it's known.
Distance (and therefore dx) is defined as 30.48 m (100 ft), it doesn't change either.
I initially find the acceleration required to attain a velocity of 230.33 m/s in 30.48 m.
t=(dx/va)
a=(vF-vI)/t
That figure remains a constant since this is a constant-acceleration problem.
Having set all the initial values, whether by definition or calculation, I apply them on each iteration through the loop. The loop iterates in 30.48 (100 ft) increments.
I -thought- I could simply add the acceleration value to the previous velocity to obtain the current velocity (since we've traveled another 100 ft), but if I need to multiply that acceleration by time, then that is an issue I didn't see and, quite frankly, doesn't seem intuitive to me at the moment.
Here's why: time, in this case, is a function of velocity and not the other way around.
In this case, time seems to be a result rather than a parametric dependency of velocity.
In other words, velocity will always increment at a constant rate with only one dependency, acceleration. The time-measure will be the result of that acceleration added to velocity.
It also gets back to my original question: do I revert to using the average velocity calculation? You can see what happens when I do in result table #2, time doesn't change.
Maybe the problem is that I tend to see the issue in an iterative rather than an instantaneous sense, but that code certainly does seem to run-out correctly.
In any event, I certainly thank you for your patience, aim, I wish I was smarter and knew all about physics like you do, but as it is, I'd need several lifetimes to learn all I really want to know.
Tony