Basic Operations in Scheme

Here are some routines I used to learn scheme with HtDP and SICP.

Transfer Fahrenheit to Celsius

(define (Fahrenheit->Celsius F)
  (* (- F 32) 5/9)
  )

The middle of three numbers

codereveal hidden content

Interval

codereveal hidden content

Day in the year

return the day in the year for a given date codereveal hidden content

 
sci/cs/scheme/basic.txt · Last modified: 2006/06/22 00:40 by flanker27
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki