On 31/08/2012 00:32, Ashley Fowler wrote:
This is a problem using the Scheme programming...Can anybody help me with this 
problem?


2. Write a procedure (sphere r) that takes the radius of a sphere
as the value of its input parameter and returns the volume of that
sphere given by the formula: (4/3)π(r^3). Use (require scheme/math)
or (require racket/math) to load the math library containing the
"pi" constant.
Be sure to use "cube" from problem (1) to find the cube of r (r^3).

Tests:
(sphere 2)   ==> 33.51 ...
(sphere 5.3) ==> 623.61 ...

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Have I got this right? You're asking a question about the Scheme programming language on a Python mailing list, yes?

--
Cheers.

Mark Lawrence.

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to