C S 314 Chapter Notes - Chapter 10: Memory Address, Indium Phosphide, Software Engineering
Document Summary
With the collection of programs that we now have, solving a physics problem becomes easy: Make a list (set) of the variables in the problem (desired variable and variables whose values are given). Find an equation that involves those variables. Solve the equation for the desired variable. Evaluate the rhs of the equation for the given values. Try to find an equation where all variables are known except one. (= f (* m a)) Solve the equation for that variable. (= a (/ f m)) Substitute the known values into the right-hand side of the solved equation (lisp function sublis). (= a (/ 8 2)) Evaluate the resulting expression (lisp function eval) to give the value of the new variable. Add that variable to the binding list. (= a 4) Keep trying until you get the value of the variable you want (or quit if you stop making any progress).