Fundamentals of CS I (CS151 2001S) : Reference
[Current]
[Discussions]
[Glance]
[Honesty]
[Instructions]
[Links]
[News]
[Search]
[Syllabus]
Primary
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Quizzes]
[Readings]
[Reference]
Sets
[Blackboard]
[Scheme Report]
[SamR's Schedule]
[Rebelsky/Fall 2000]
[Walker/Fall2000]
[Stone/Spring2000]
Links
Predicate  complex? 

Parameters  n, a number 
Purpose  Determines if v is a complex number (including an optional complex part). 
Produces  A truth value: true (#t )
if n is a complex number,
false (#f ) if it's not a complex number.

Preconditions  Only one parameter (verified). 
Postconditions  Returns true if and only if the parameter is a complex number. 
Examples  > (complex? (sqrt 1)) #t > (complex? 1) #t > (complex? 3/2) #t > (complex? 1/2) #t > (complex? 1.3) #t > (complex? (sqrt 2)) #t > (complex? 'a) #f 
"..." (double quote)

+ (plus)

#\character (pound backslash)

#\newline

#\space

; (semicolon)
* (times)

abs

and

append

boolean?

car

cdr

char?

char<?

char<=?

char=?

char>=?

char>?

charalphabetic?

charci<?

charci<=?

charci=?

charci>?

charci>=?

char>integer

chardowncase

charlowercase?

charnumeric?

charuppercase?

charupcase

charwhitespace?

complex?

cons

eq?

equal?

eqv?

exact?

exact>inexact

exp

expt

inexact?

integer?

integer>char
length

list

list?

listref

null

null?

number?

procedure?
rational?

real?

reverse
sqrt

string?

symbol?
[Current]
[Discussions]
[Glance]
[Honesty]
[Instructions]
[Links]
[News]
[Search]
[Syllabus]
Primary
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Quizzes]
[Readings]
[Reference]
Sets
[Blackboard]
[Scheme Report]
[SamR's Schedule]
[Rebelsky/Fall 2000]
[Walker/Fall2000]
[Stone/Spring2000]
Links
Disclaimer: I usually create these pages on the fly. This means that they are rarely proofread and may contain bad grammar and incorrect details. It also means that I may update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.
This page was generated by Siteweaver on Thu Feb 22 05:47:52 2001.
This page may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS151/2001S/complexp.html
.
You may validate
this page's HTML.
The source was last modified Wed Jan 31 22:40:15 2001.