add ch1 ex2
This commit is contained in:
parent
449b6ae825
commit
4790e8cae6
1 changed files with 11 additions and 0 deletions
11
chapter_1/ex_2.rkt
Normal file
11
chapter_1/ex_2.rkt
Normal file
|
@ -0,0 +1,11 @@
|
|||
#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
|
Loading…
Add table
Reference in a new issue