def dx(fn, x, delta=0.001):
return (fn(x+delta) - fn(x))/delta
def solve(fn, value, x=0.5, maxtries=1000, maxerr=0.00001):
for tries in xrange(maxtries):
err = fn(x) - value
if abs(err) < maxerr:
return x
slope = dx(fn, x)
x -= err/slope
raise ValueError('no solution found')
Answer:
There is no table, so I can only comment on the statements:
The binary value of decimal 10 is A. ==> False, however A is a hexadecimal representation of 10.
The binary value of decimal 13 is 1001 ==> False, 13 would be 1101.
The binary value of decimal 15 is 1111. ==> True.
The binary value of decimal 14 is E. ==> Again E is a hexadecimal representation of 14.
Answer:
turnRight and turnaround
Explanation:
The regular karel does not know these commands
Answer:
1) pull out the legs of the tripod to gain the required height and necessary stability
2) adjust each of the legs so that the tripod is level
3) attach the camera to the tripod