Skip to content

Commit

Permalink
修正练习 2.56 答案中的 bug ,感谢 James Liang 的提醒:
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzworks committed Oct 16, 2012
1 parent 3342b06 commit c234c67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chp2/code/56-deriv.scm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

(define (make-exponentiation base exponent) ; 新增
(cond ((= exponent 0) ;
0) ;
1) ;
((= exponent 1) ;
base) ;
(else ;
Expand Down
2 changes: 1 addition & 1 deletion chp2/code/test-56-deriv.scm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
0)

(equal? (deriv '(** x 1) 'x)
0)
1)

(equal? (deriv '(** x 2) 'x)
'(* 2 x))
Expand Down

0 comments on commit c234c67

Please sign in to comment.