Question: Write a non-recursive Scheme function in DrRacket called distance that computes the distance between two points in the plane. The format of your function should
Write a non-recursive Scheme function in DrRacket called distance that computes the distance between two points in the plane. The format of your function should be ( distance point1 point2 ) where point1 and point2 are lists of 2 numbers. For example (distance ( 3 4) ( 8 9) ) returns 7.0710678118654755. To make your function more readable use the let construct. Also write a sqr function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
