10 Oct 2015 by Member 12049051
I need to create a power function in oz by by reusing the intermediate results. For example, calculating 2^8 in 3 calculations by saying 2^2 = 2*2, 2^4 = 2^2 * 2^2, 2^8 = 2^4 * 2^4. What I have so far: declare proc {Powerp N M K} if M == 0 then K = 1 ...