L1: Basic concepts in numerical computations Flashcards

(18 cards)

1
Q

What is a norm?

What is the Euclidean norm exactly?

A

Also called the standard norm

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

What is a L^p norm?

What are the three interesting cases?

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

What are the relative and absolute error approximate formulas?

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

What are the two broad types of errors?

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

What is a mantissa? And how do computers represent floating-point numbers?

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

What is the standard implementation of a floating-point number?

A

WHY DOES THIS LEAD TO ERRORS

NEED TO KNOW BASE 2, BASE 10 CONVERSION

e.g. example 0.3 + 0.3 + 0.3 != 0.9

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

Do we need to worry about roundoff errors?

What shouldn’t you do with floating-point numbers?

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

Why does subtracting a floating-point number cause a catastrophic cancellation error?

A

ADD TO THIS

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

What are we interested in about the calculation of any algorithm?

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

Why do we care about computation cost when looking at error formulas?

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

Generally, what is big-O notation?

A
  • Look at the biggest power for the limit we are looking at (which way the independent variable tends to in the long run)

LOOK INTO THIS MORE

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

What is the definition of Big-O notation?

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

How do I make a Grid from a continuous interval?

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

What is a finite-difference approximation (forward difference)?

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

What are the other finite-difference approximations?

A
  • forward = tangent point and next forward point
  • backward = tangent point and the previous backwards point
  • centre = previous point and next point (average of the forward and back point) –> interval is twice as big so divide by 2h
    • tends to be the best approximation of the slope of the tangent
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do we use the Taylor series in the finite-difference approximation? Why do we use it?

A

Check why we use it!

17
Q

From the Taylor series representation, how do we find the absolute error between the true derivative and the forward-difference approximation?

18
Q

What are the absolute errors of all the finite differences of the approximations?

A

This is useful for two reasons:
1) Compare which algorithm is better e.g. for smaller errors, O(h2) is better than O(h)
2) use for checking if what Im going is create

(Check the scaling law discussed in the lecture recording)