11 lines
No EOL
193 B
Racket
11 lines
No EOL
193 B
Racket
#lang sicp
|
|
|
|
;Translate the following expression into prefix (5+4+(2-(3-(6+4/5))))/(3(6-2)(2-7))
|
|
|
|
|
|
(/ (+ 5 4 (- 2 (- 3 (+ 6 (/ 4 5)))))
|
|
|
|
(* 3 (* (- 6 2) (- 2 7)))
|
|
)
|
|
|
|
; the result is -37/150 |