Thanks.
About the recursion, the way I derived the algorithm, it just seemed natural to use recursion, and so far in my course we are not permitted to use any imperative programming techniques as of yet.
Yes, I should have commented the code.
// To caclulate a/b.
// PRE: a > 0, b > 0.
// This implementation simlpy returns 0 if b does not divide a.
int div_help(int a, int b, int bconst, int quotient, int acc){
// a: numerator
// b: denominator
// bconst: original denominator (constant)...
Last week on my computer science assignment I had to write a division algorithm using only addition and subtraction to tackle a problem. My first attempt was the simple and naive repeated subtraction, although I quickly discovered it was not nearly efficient enough for how I needed to use it, So...
what you did is proof enough. In this sense derivation would be proof, because like I said, you are taking relations that are already known to be true, and ending up with the time independent kinematic equation.
What do you mean you still have to prove it? you started with true relations and ended up with the required equation; that's how this equation comes about. That's all you need to do.
If you know any of the other kinematic equations then write them down and think about how you can eliminate time as a variable. are there any combinations or substitutions you can make given any of the other kinematic equations?
This was exactly my point, I think its just easier to understand just how much stronger it is than gravity by choosing an example such as this - where the only thing numerically different about the two equations are the different constants.
I don't know too terribly much about electricity, however coulombs law follows the same inverse square law as the gravitational force, but it is much, much stronger than gravity, and so your example of standing between two uncharged bodies A and B is not really comparable.
Say you have two...
I totally agree.
This is one of those types of questions that you may find on a quiz or exam to show them that you truly understand the concept, where you need to be confident in your work and not start second guessing yourself.
That's pretty nice! Were you able to figure out the solution to the ellipse problem? (I don't need to see it - just curious) What level do you think this question would be, like, do you think they may ask this in a first year physics course?