【发布时间】:2019-02-02 18:40:55
【问题描述】:
我的代码不工作,它给了我一个错误提示:det: arity mismatch; 预期的参数数量与给定的数量不匹配 预期:4 给定:9 论据...:
这是我的代码:
(define (det3x3 a b c
d e f
g h i)
(+ (* a ( * e i (* h f)))(* b (* d i (* g f)))(* c (* d h (* e g)))))
(display "(det 0 5 -6 8 -11 4 5 1 1) = ")(det 0 5 -6
8 -11 4
5 1 1)
【问题讨论】:
-
我建议看看函数
det。