140 likes | 248 Views
Scientific Computing CS 412 الحوسبة العلمیة عال 412. Lecture 4: Numbers and sets By I.Safa Alawneh. Numbers and sets. The set of natural numbers, denoted N, is the set of non-negative whole numbers: N= { 0,1,2,3 …..}
E N D
Scientific ComputingCS 412الحوسبة العلمیةعال 412 Lecture 4: Numbers and sets By I.SafaAlawneh
Numbers and sets • The set of natural numbers, denoted N, is the set of non-negative whole numbers: N= { 0,1,2,3 …..} • The set of integers, Z, contains the signed whole numbers including zero: Z= { …..,-2,-1,0,1,2, ……} • The set of rationals, Q, also include numbers with fractions: Q = { p/q: p, q€ Z ,q≠ 0}
Numbers and sets • An Irrational Number is a real number that cannot be written as a simple fraction. • Irrational means not Rational • Examples:
Numbers and sets • Real Numbers are just numbers like: 1, 12.38 , -0.8625 ,3/4, √2, 1998
Representing Numbers • In computer systems, real numbers are usually represented explicitly by floating-point numbers or symbolic or rule-based representation.
Vectors • Many quantities can be measured or reported using a single number: time, distance… • These are called Scalar quantities. • There are many phenomena that cannot use single scalar: a position in space