(a)
declare
A=2 %2^1
B=A*A
C=B*B
D=C*C
E=D*D
F=E*E %2^32
G=F*F %2^64
{Browse G*F*C} %result = 2^(64+32+4)
(b) Couldn't find a shortcut
Subscribe to:
Post Comments (Atom)
As I go along with "Concepts, Techniques and Models of Computer Programming by Peter Van Roy and Seif Haridi", I'll be putting my thoughts and solution to the exercises(ones that I'm able to crack :) ) here. Please let me know if any of the code snippets presented in solutions give errors as I might have made a mistake in correctly copying the code or something else.
No comments:
Post a Comment