diff --git a/UNB/Year 5/Semester 1/CS3113/In class notes.md b/UNB/Year 5/Semester 1/CS3113/In class notes.md index 1b1a2da..4e4773f 100644 --- a/UNB/Year 5/Semester 1/CS3113/In class notes.md +++ b/UNB/Year 5/Semester 1/CS3113/In class notes.md @@ -36,4 +36,15 @@ Truncation types **Chopping**: Omit the numbers that we don't want, looking to the first bit that we want to erase **Rounding**: We should take care about the first digit that we want to omit and adjust the 52nd bit -**Machine Epsilon**: Difference between the smallest floating point number greater than 1 and 1, ie the smallest number that when added to 1, will be different than 1 \ No newline at end of file +**Machine Epsilon**: Difference between the smallest floating point number greater than 1 and 1, i.e. the smallest number that when added to 1, will be different than 1 + +IEEE rounding to nearest role: +1. If we have zero in the 53rd bit, we will round down +2. If we have one as the 53rd bit, we will round up + 1. If the 52nd bit is one we will round up + 2. If the 52nd bit is zero will round down + +Convert a real number to a floating point number: +1. Decimal to binary number +2. Justify step: Shift the radix to the right of the left most one, compensate with the exponent. 100.1 -> 1.0001 x_2^3 +3. We do it with respect to p.A d.p 52 numbers ??? I think she means IEEE rounding \ No newline at end of file