1. Personal Learning code. Yes or no. Do not explain.

Source: Internet
Author: User
Welcome to drracket, version 5.1.1 [3 M]. language: r5rs; Memory limit: 128 MB.> 9 defune (abs x ).. reference to undefined identifier: 9defune .. reference to undefined identifier: x> (defune (abs x) (cond (> x 0) X) (= x 0) 0) (<x 0) (-X )))).. reference to undefined identifier: defune> (define (abs x) (cond (> x 0) X) (= x 0) 0) (<x 0) (-X) define-values: cannot change constant variable: ABS> (define (_ abs x) (cond (> x 0) X) (= x 0) 0) (<x 0) (-X)> (-Abs 1 ).. reference to undefined identifier:-ABS> (_ Abs 1) 1> (_ ABS-11) 11> (_ ABS 0) 0> (define (_ abs x) (cond (<x 0)-x) (else X)> (_ ABS-4 ).. reference to undefined identifier:-x> (define (_ abs x) (cond (<x 0) (-x) (else X)> (_ ABS-4) 4> (_ ABS 24) 24> (_ ABS 0) 0> (_ ABS-0) 0> (define (___ abs x) (if (<x 0) (-x)> (___ ABS-5) 5> (___ ABS 95) 95> (___ ABS 0) 0> (___ ABS-0) 0> (else ). else: not allowed as an expression in: (else)> (else 4 ). else: not allowed as an expression in: (else 4)> (and 1 3 4) 4> (and 1 0 4) 4> (and 1 # F 4) # F> (and # T # F 4) # F> (and 1 # T 4) 4> (OR 1 # T 4) 1> (or # F # T 4) # T> (or # F 4) 4> (or # F # f) # F> (not # f) # T> (not 23) # F> (not 2) # F> (and (> X 5) (<x 0 )).. reference to undefined identifier: x> (define (a x) (and (> X 5) (<x 0)> (a 3) # F> (a 7) # F> (define (a x) (and (> X 5) (<x 10)> (a 7) # T> 1010> (+ 5 3 4) 12> (-9 1) 8> (/6 2) 3> (+ (* 2 4) (-4 6) 6> (define a 3)> (define B (+ A 1)> (+ a B (* a B) 19> (= a B) # F> (if (and (> B) (<B (* a B) B a) 4> (cond (= a 4) 6) (= B 4) (+ 6 7 )) (else 25) 16> (+ 2 (if (> B a) 6> (* (cond (<a B)) (<a B) (else 1) (+ A 1) 12> (* (cond (> a B) A) (<a B) b) (else 1) (+ A 1) 16> (/(+ 5 4 (-2 (-3 (+ 6 (/4 5 ))))) (* 3 (-6 2) (-2 7)-37/150>; exercise 1.3 (define (lx_1.3 a B c) (-(+ a B C) (cond (<a B) (if (<a c) a C) (<B c) B) (else C)> (lx_1.3 1 2 3) 5> (lx_1.3 11 2 3) 14>; exercise 1.4 (define (A-plus-Abs-B a B) (if (> B 0) +-) a B)> (A-plus-Abs-B 1 2) 3> (A-plus-Abs-B-1 2) 1> (A-plus-Abs-B-1-2) 1> (A-plus-Abs-B 1-2) 3> 11> (1 ).. procedure application: expected procedure, given: 1 (no arguments)> (define (p)> (define (test x y) (if (= x Y) x y)]. read: Illegal use of close square bracket> (define (test x y) (if (= x Y)> (test 0 (p )).. user break>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.