我的代码看起来像这样: * A divisor that operates on real numbers.case class RealDivisor(divisor: Long) with Divisor[Long, Double] // ... with Divisor[Int, Double], etc{
override def divide(divide
我正在尝试创建一个Prolog程序divisor_sum,它总结了一个数字X(不包括X)的所有除数。acc_divisor_sum(X,_,X).acc_divisor_sum(X,Y,C):- A=\=0, A is X mod N, C is N+1, acc_divisor_sum(X,Y,C).
<e
;The object (quote test-divisor), passed as an argument to identifier->symbol, is not an identifier.(define (find-divisor' test-divisor n) 1) test-divisor)