The Scheme functions, sin, and cos, take arguments
in radians, but the Plumbing Graphics function, bend, takes
its argument in degrees. Degrees can be converted to radians by
multiplying by
.
The Scheme function, random, takes an integer as
argument and returns a random number between and .
Write a tail-recursive function, ecoli-it, which takes
, , , and a graphics
object, , representing the trajectory of the bacterium from
start to and returns a graphics object representing the
trajectory of the bacterium from start to finish.