EssaysForStudent.com - Free Essays, Term Papers & Book Notes
Search

Awas

Page 1 of 2

Procedure

Result

(define a 1)

 Defines the symbol a as value, where value is a literal, expression, or symbol

memory slot associated with symbol a now contains a base-2 representation of the number 1.

(define b -3)

 Defines the symbol a as value, where value is a literal, expression, or symbol

memory slot associated with symbol a now contains a base-2 representation of the number -3.

(define c 2)

 Defines the symbol a as value, where value is a literal, expression, or symbol

memory slot associated with symbol a now contains a base-2 representation of the number 2.

(* b b)

Racket tries to interpret the token after a left paren as an operator/procedure/function/{verb}

9

(* 4 a c)

Racket tries to interpret the token after a left paren as an operator/procedure/function/{verb}

8

(- (* b b) (* 4 a c))

Racket tries to interpret the token after a left paren as an operator/procedure/function/{verb}

1

(define discriminant 1)

 Defines the symbol a as value, where value is a literal, expression, or symbol

1

(display 1)

Displays value in the REPL pane, where value is a literal, expression, or symbol

1

(newline)

Creates a new line

(define a 1)

 Defines the symbol a as value, where value is a literal, expression, or symbol

memory slot associated with symbol a now contains a base-2 representation of the number 1.

(define b 0)

 Defines the symbol a as value, where value is a literal, expression, or symbol

memory slot associated with symbol a now contains a base-2 representation of the number 0.

(define c -9)

 Defines the symbol a as value, where value is a literal, expression, or symbol

memory slot associated with symbol a now contains a base-2 representation of the number -9.

(display 1)

Displays value in the REPL pane, where value is a literal, expression, or symbol

1

(newline)

Use the (display) and (newline) functions when you want to see a value that racket computes.

Creates a new line

Download as (for upgraded members)  txt (2.2 Kb)   pdf (89.2 Kb)   docx (292.4 Kb)  
Continue for 1 more page »