[Tutor] Scheme

Ashley Fowler afowler2 at broncos.uncfsu.edu
Fri Aug 31 03:49:06 CEST 2012


yes
________________________________________
From: tutor-bounces+afowler2=broncos.uncfsu.edu at python.org [tutor-bounces+afowler2=broncos.uncfsu.edu at python.org] on behalf of Mark Lawrence [breamoreboy at yahoo.co.uk]
Sent: Friday, August 31, 2012 1:32 AM
To: tutor at python.org
Subject: Re: [Tutor] Scheme

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 at 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 at python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list