Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
2 – (-12/x) = -4
负数 12 让我感到困惑。我在哪里放负号?
(define (math x) ( = ( - ( / 12 x) 2) 4))
负号是数字本身的一部分,您可以像使用任何其他语言一样编写它:
(define (math x) ( = ( - ( / -12 x) 2) 4))
输出:
> (math 2) ; 2-(-12/2) = -4 -> 2-(-6) = -4 -> 2 + 6 = -4 -> 8 = -4 (FALSE) #f > (math -2) ; 2-(-12/-2) = -4 -> 2-(6) = -4 -> -4 = -4 (TRUE) #t