CS 3500- Final Exam Guide - Comprehensive Notes for the exam ( 38 pages long!)

167 views38 pages

Document Summary

Int : whole number -2^63 to 2^63: maxint :: int. Double : double precision floating-point number (11 pts precision: bool : true or false. Char : single unicode character denoted with single quotes. Tuple : can store a list made up of many data types: declare permanent value of a variable like so: always50::double always50 = 5. 0. Math: addition : addex = 5 + 4. Division: divex = 5 / 4: mod is a prefix operator in haskell (returns remainder of a division expression, modex = mod 5 4. With back ticks, you can use mod as an infix operator: modex2 = 5 mod" 4. Negative numbers must be surrounded with parentheses: negnumex = 5 + (-4) Built-in math operators in haskell: the number pi: pival = pi, the value of e: epow9 = exp 9, logarithm: logof9 = log 9.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents