Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #43: boss forgot system password


comp / comp.lang.lisp / Re: Sum of squares

SubjectAuthor
o Re: Sum of squaresB. Pym

1
Subject: Re: Sum of squares
From: B. Pym
Newsgroups: comp.lang.lisp
Organization: A noiseless patient Spider
Date: Mon, 26 Aug 2024 00:29 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Nobody447095@here-nor-there.org (B. Pym)
Newsgroups: comp.lang.lisp
Subject: Re: Sum of squares
Date: Mon, 26 Aug 2024 00:29:06 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <vagi8h$25bs3$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Injection-Date: Mon, 26 Aug 2024 02:29:06 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d83e4a38965968cd3c6fd187ef0e0ba2";
logging-data="2273155"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19x2qwdVgrGeDY56pd/f3kJ"
User-Agent: XanaNews/1.18.1.6
Cancel-Lock: sha1:5KwFWSd+miMPmx0aExiihaaqB2o=
View all headers

> Define a procedure that takes three numbers as arguments and returns
> the sum of the squares of the two larger numbers.

(define (sos a b c)
(cond ((> a b) (sos b a c))
((> b c) (sos a c b))
(#t (+ (* b b) (* c c)))))

1

rocksolid light 0.9.8
clearnet tor