{ "@context": "https://schema.org", "@type": "Organization", "name": "Brainscape", "url": "https://www.brainscape.com/", "logo": "https://www.brainscape.com/pks/images/cms/public-views/shared/Brainscape-logo-c4e172b280b4616f7fda.svg", "sameAs": [ "https://www.facebook.com/Brainscape", "https://x.com/brainscape", "https://www.linkedin.com/company/brainscape", "https://www.instagram.com/brainscape/", "https://www.tiktok.com/@brainscapeu", "https://www.pinterest.com/brainscape/", "https://www.youtube.com/@BrainscapeNY" ], "contactPoint": { "@type": "ContactPoint", "telephone": "(929) 334-4005", "contactType": "customer service", "availableLanguage": ["English"] }, "founder": { "@type": "Person", "name": "Andrew Cohen" }, "description": "Brainscape’s spaced repetition system is proven to DOUBLE learning results! Find, make, and study flashcards online or in our mobile app. Serious learners only.", "address": { "@type": "PostalAddress", "streetAddress": "159 W 25th St, Ste 517", "addressLocality": "New York", "addressRegion": "NY", "postalCode": "10001", "addressCountry": "USA" } }

Lecture 7 Flashcards

(11 cards)

1
Q

Floating point numbers + precision

A

x = ± b0.b1b2…bn x 2^m, L≤m≤U, bi \in {0,1}

Precision p=n+1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Normalized floating point representation

A

x = ± 1.b1b2…bn x 2^m = ± 1.f x 2^m, L≤m≤U, bi \in {0,1}

Hidden bit representation: we don’t store b0=1, thus we add 1 bit of precision.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Normalized floating point representation of 47.125

A

(101111.001) = (1.01111001)x2^5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Smallest positive normalized FP number

A

1.000…0 x 2^L = 2^L (UFL)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Largest positive normalized FP number

A

S = 1.111…1 x 2^U = 2^U+2^{U-1}+…+2^{U-n}
2S = 2^{U+1}+2^{U}+…+2^{U-n+1}
2S - S = S = 2^{U+1}-2^{U-n} = 2^{U+1}(1-2^{-p}) (OFL)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Overflow

A

To -∞ or +∞ if number < -2^{U+1}(1-2^{-p}) or > 2^{U+1}(1-2^{-p})

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Underflow

A

To zero if number -2^L < x < 2^L

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Machine epsilon

A

Distance/gap between 1 and the next floating point number, depends on n only (# digits of the fractional part f). ϵm = 0.00…01 x 2^0 = 2^{-n}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Subnormal/denormalized FP representation

A

We set b0=0 and m=L. It provides a more gradual underflow, but a loss of precision/slower computation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Subnormal/denormalized FP representation additional numbers

A

2(2^n - 1) – n #digits of f, x2 for positive + negative

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Smallest positive subnormal number

A

0.00…1 x 2^L = 2^{-n}2^L = 2^{L-n}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly