# data[].attributes.body
Hi, how similar is the coding practice uploaded going to look to the actual class test. Can it been looked at as a mock class test? Also what is the scope of the class test(what weeks will be covered)?

# data[].attributes.body
Hi, I can’t find the office hour information.

# data[].attributes.headline
Can you check what is wrong with my code please ? This is from the last lecture in Week 4.

# data[].attributes.subject
Can you check what is wrong with my code please ? This is from the last lecture in Week 4.

# data[].attributes.body
I noticed in the Practical 2 paper, it mentions, 'Please hand in your answers to Questions 1, 4, 7, and 11 before the start of the practical.'

Could you provide some clarification on the process for this? Should we print out the .ipynb file or handwrite our answers?

# data[].attributes.body
I copied the notes, however I get that "x0" is not defined. Can you see what is wrong with my code?

Also, is it "safe" to import all the codes from the mpmath package as *? Here I used the code "import mpmath as mp" instead.

# data[].attributes.body
For the matrix A, where did the summation over j go? As there are still indices in j for f_j(x_i)

# data[].attributes.body
Hi, I am quite confused about the equation (4.20) where it says ‘by combination’. Would you please explain how this combination is taken out? Thank you.

# data[].attributes.body
Hi, may I ask which weeks will be covered in class test ?

# data[].attributes.body
Hello, could you please provide us with questions from previous years’ class tests and their solution in order to help with our preparation?

Thank you very much in advance!

# data[].attributes.body
I didn't understand the secant method or Bisection method when we went through it in the lectures. Is there any resources you would recommend for a better understanding?

# data[].attributes.body
where is the google colab notebook where we did the algorithm for fitting ?? i believe it was possibly lecture 8

# data[].attributes.body
Please can you share the google collab notebook named lagrange polynomials from the lecture of Tue Oct 17? I cannot seem to see it on KEATS.

# data[].attributes.body
Please could you upload the answers to the practical 2 sheet?

# data[].attributes.body
Hi, what will be on the final exam? Or is that dependent on what is covered in class. Thanks

# data[].attributes.body
Can you please upload class tests from previous years with solutions please ? Thank you.

# data[].attributes.body
Hello, I was doing exercise 5 in the lecture notes, and I was using the secant method which gave me the wrong answer (I believe that the top is supposed to be the $x_{n-2}$ term minus the $x_{n-1}$ term. the secant method in the notes is different from the one on wikipedia (which gives the right answer). https://en.wikipedia.org/wiki/Secant_method

# data[].attributes.body
hi, I wanted to ask if we will have access to any material for the class tests on 13h December. Like will we be given a cheat sheet or something

# data[].attributes.body
Hi, I can't find the google colab notebook for week 4 (Fitting Data). Am I missing something?

# data[].attributes.body
Could you post the coding practice for the class test as mentioned at the start of Tuesday's lecture?

# data[].attributes.body
Hi, I can't find the tutorial sheet 2 on the webpage, would you check that?

# data[].attributes.body
Good evening,

The problem sheet for Week 7 is yet to be released (Saturday 17:30) and there are several tutorials for this on Monday. Could all the Problem Sheets and Practical Sheets be released at latest Friday after the lecture so that we have proper time to prepare.

Thankyou

# data[].attributes.body
Could you clarify what an "order-1 number" is?

# data[].attributes.body
Can you upload the coding practice soolutions please

# data[].attributes.headline
My tutor has not showed up twice for the tutorial on Monday 10-11am. Is there any way to solve this ?

# data[].attributes.subject
My tutor has not showed up twice for the tutorial on Monday 10-11am. Is there any way to solve this ?

# data[].attributes.headline
I believe there is nothing wrong with my code, but why do I get a different answer for  the matrix A inverse

# data[].attributes.subject
I believe there is nothing wrong with my code, but why do I get a different answer for  the matrix A inverse

# data[].attributes.body
why do we write ys=[0,3,-2,-5,3], where do these numbers come from?

# data[].attributes.body
it's no longer possible to mark the interim feedback as done and hence I cannot access the week 4 material. is it possible to change this so the content is made available? thank you.

# data[].attributes.body
Could you link the python code for the lecture on 14 November. The recording does not show the python part of the lecture

Thank you

# data[].attributes.body
Hi, I notice that there are video lecture about Monte Carlo integral under week 7 which is not covering in lectures, will these content appear in exam or will these be covered in later lecture?

# data[].attributes.body
What weeks will be assessed for the class test please ?

# data[].attributes.body
Can you tell me what is wrong with this please. This is Q5 of the coding practice sheet

# data[].attributes.body
For anyone can't find the code, I just found them.

# data[].attributes.body
Hi, could you upload the handwritten notes from week 7 please? it would be really helpful. Thank you

# data[].attributes.body
Hi professor, can I ask how many questions will be in the class test please?

# data[].attributes.headline
Could you please post the code in the lecture please ? for the Monte Carlo section 

# data[].attributes.subject
Could you please post the code in the lecture please ? for the Monte Carlo section 

# data[].attributes.headline
For the Class test, do we have to memorize the approximations for Trapezoid, Midpoint and Simpson's rules ? or will it be given.

# data[].attributes.subject
For the Class test, do we have to memorize the approximations for Trapezoid, Midpoint and Simpson's rules ? or will it be given.

# data[].attributes.body
Hi, I think you uploaded the link for Gaussian Quadrature code rather than Monte Carlo code in the 'code from lecture'

# data[].attributes.headline
How do I change the color of the dots from orange and blue to other colours ?

# data[].attributes.subject
How do I change the color of the dots from orange and blue to other colours ?

# data[].attributes.headline
Hi, I still do not get how combining both equations can lead to that expression for Richardson extrapolation, please explain

# data[].attributes.subject
Hi, I still do not get how combining both equations can lead to that expression for Richardson extrapolation, please explain

# data[].attributes.body
Hi can you please share the details of the cheat sheet

# data[].attributes.body
If we have 2n+2 free parameters then how does that relate to m =0,1 .....,2n+1 for x^m.

What is Ai , a polynomial?

# data[].attributes.body
hi, are the solutions to coding practice 2 going to be posted? Thank you!

# data[].attributes.headline
Hi, could you upload the solutions for Coding Practice 2 please 

# data[].attributes.subject
Hi, could you upload the solutions for Coding Practice 2 please 

# data[].attributes.headline
Hello, in the two practice coding test there are a lot of tests after the actual question. Will this form part of the class test as well or is it just for our own benefit ?

# data[].attributes.subject
Hello, in the two practice coding test there are a lot of tests after the actual question. Will this form part of the class test as well or is it just for our own benefit ?

# data[].attributes.body
will there be partial marks if our code isn't 100% correct but we have written some of the right parts?

# data[].attributes.headline
Could you if possible quickly take us through a concrete example with the Jacobi Method during the next lecture please

# data[].attributes.subject
Could you if possible quickly take us through a concrete example with the Jacobi Method during the next lecture please

# data[].attributes.body
does the class test cover everything until stochastic diff eqns? or does it include this chapter/further chapters.

# data[].attributes.body
Hi, do you mind doing a formula sheet for everything we have seen this semester ( just to make sure that we all wrote the right formulas) ?

Thanks a lot.

# data[].attributes.body
I think that 1a is incorrect in the coded solutions as there is no cubed term. It should be:((1+np.cos(2*np.e))/(np.pi*np.pi))**3*np.exp(np.sin(5))

# data[].attributes.headline
will the questions of classtest be given like paper or like the mock exam and having tests(check)? thx

# data[].attributes.subject
will the questions of classtest be given like paper or like the mock exam and having tests(check)? thx

# data[].attributes.body
Good morning,

I am unable to find the Mock Test which I believe we are going through on Friday. Many of us have lectures all of Thursday. Please release it so we have adequate time to prepare.

Thankyou.

# data[].attributes.headline
For the class test, does the arguments of our functions matter? For example, if I use inter(x,xx,yy) instead of just inter(x) and get the correct result, will I be deducted marks?

# data[].attributes.subject
For the class test, does the arguments of our functions matter? For example, if I use inter(x,xx,yy) instead of just inter(x) and get the correct result, will I be deducted marks?

# data[].attributes.headline
Will you upload the answer of mock classtest?

# data[].attributes.subject
Will you upload the answer of mock classtest?

# data[].attributes.body
How do we know here that we should to take (-3,3) as the interval of x and y ?

# data[].attributes.headline
how to solve this question(21-22classtest Q4(b))??

# data[].attributes.subject
how to solve this question(21-22classtest Q4(b))??

# data[].attributes.body
I wrote the same code while it showed singular matrix error

# data[].attributes.headline
Potential mistake in solutions to 7a (Class Test 2022-2023)

# data[].attributes.subject
Potential mistake in solutions to 7a (Class Test 2022-2023)

# data[].attributes.body
In the final statement for A[i, j] = ..., k should be iterated over range(5), not range(3), as the same range as the weighted fits function. This makes the resulting plot later on more reasonable. Also, xs has 5 elements, not 3 so it makes sense to iterate over all of them.

# data[].attributes.headline
What topics are examinable for the January exam?

# data[].attributes.subject
What topics are examinable for the January exam?

# data[].attributes.headline
Can you please tell us what chapters are examinable for the January test, and will you be posting a mock test for it?

# data[].attributes.subject
Can you please tell us what chapters are examinable for the January test, and will you be posting a mock test for it?

# data[].attributes.body
I know this may sound trivial but why is this true please ?

# data[].attributes.body
Why is it that x' = y1 and y' = y2 here?

# data[].attributes.body
Do we have the Taylor expansion examples such as e**a's Taylor expansion in the January exam?

# data[].attributes.headline
22/23 paper QB5 Adams Bashforth part (a)

# data[].attributes.subject
22/23 paper QB5 Adams Bashforth part (a)

# data[].attributes.body
how do we get from 16a to b and also how do we get 17

# data[].attributes.body
I am confused about the different error estimation in derivatives and integration, in Richardson extrapolation, given f’(x) as an example, in lecture notes, G(x)=f’(x), then substitute h1=2h2 into g(h)=f(x+h)-f(x)/h and then use the Richardson formula to calculate and get f’(x)-O(h^2). But in trapezoidal method, in lecture notes it use Taylor’s expansion to calculate the integration and then minus Si to get the approximation error. I wonder why don’t we use Taylor expansion in G(x)=f’(x)? Is Taylor expansion a way to approximate function or is it an accurate ones? If it is approximate way then why do we use it to calculate the exact integral?

Also, I did not see machine error calculation in Richardson extrapolation, is it not in the scope? Or we should go for it ourselves?

# data[].attributes.body
I wonder how to get this result.

# data[].attributes.body
The condition f(x*) != 0 is not clear to me, wouldn't f(x*) be 0 as it is the assumption, and the condition be f'(x*) !=0 & f''(x*) !=0

# data[].attributes.body
how do we get to the answer c(i) from part (b) if you could explain the intermediate steps please.

# data[].attributes.body
Do we solve Euler formula for Nth iteration yN and then we can use the idea that x/N=h and find y(N*h=x/h *h)

If we had h=b-a/N, is it valid to replace b-a with x?

# data[].attributes.body
How come we have a vector with 3 components here? I thought if it is the second derivative we would end up with vectors with only 2 components i.e. y vec = (y0, y1)?

# data[].attributes.body
How comes the integral in the solution is not w(x)f(x) dx = sum Ai f(xi)

# data[].attributes.body
Hi, could you explain how the last equality is found?

Thank you

# data[].attributes.body
Are we allowed to use calculator in final exam？

# data[].attributes.headline
Richarson Extrapolation (Chapter 4.4, Page 44, Equation 4.19)

# data[].attributes.subject
Richarson Extrapolation (Chapter 4.4, Page 44, Equation 4.19)

# data[].attributes.body
Dear Sir,

Could you kindly explain why the error coefficient is the same when 2 different step sizes are used please?

More concretely, for G = g(h_1) + c (h_1)^p and G = g(h_2) + c (h_2)^p, I was wondering why the same coefficient c is used, instead of having 2 different coefficient, say c_1 and c_2, for each step size h_1 and h_2 respectively please?

# data[].attributes.body
How do we know the integrals are equal to A0+A1 and A0-A1 ?

# data[].attributes.body
How do we know k=1, h=1 here

# data[].attributes.body
you mentioned in another padlet that the answer was wrong, could you provide detailed correct solution please.

# data[].attributes.body
Hi professor, I think the x_2=23/8 not 1/16

# data[].attributes.body
Hi professor, can I ask if y0 and y1 used with Euler's Method, do they correspond with y and y' or does y1 correspond with y and y2 correspond with y'?

Because I think in the tutorial we use the former notation but in the exam answer it was using the latter.

# data[].attributes.body
For these two questions, on the left we have round off error denominator h^2, and on the right denominator is just h. Is this because we are approximating the second derivative on the left q and the first derivative in the right q

# data[].attributes.body
Hi when will we be getting our results for the coding test we did?

# data[].attributes.headline
I realized that the 22-23 paper is significantly harder than those of previous years. Anybody agrees with me ?

# data[].attributes.subject
I realized that the 22-23 paper is significantly harder than those of previous years. Anybody agrees with me ?

# data[].attributes.body
Seems like the answer is not correct,The question "a" contains h/3, while the question "b" contains h/2, or is the question printed incorrectly?

# data[].attributes.headline
17-18 B5(e) Gaussian Quadrature to get A0 A1 

# data[].attributes.subject
17-18 B5(e) Gaussian Quadrature to get A0 A1 

# data[].attributes.body
I wonder in this question how did you get that 1=A0+A1? It wouldn't equal to integral e^x from 0 to infinity because such integral is infinite, is there a mistake in the answer?

# data[].attributes.headline
I noticed that there was a drawing picture section in the exam. Can we use a pencil in the exam?

# data[].attributes.subject
I noticed that there was a drawing picture section in the exam. Can we use a pencil in the exam?

# data[].attributes.body
Hi, can I ask when do we need to calculate the moment and when do we not need to? Because I am pretty confused since in B4 2020-2021 we calculated the moment then we follow the given procedure. However for 18-19, 17-18 and 19-20, we didn't calculate the moment but directly get the orthogonal polynomial. When do we skip calculating the moment when do we not skip?

# data[].attributes.body
Can I ask if there is a mistake here? Because integral e^(-x^2)/sqrt(pi)=1/2.

# data[].attributes.body
Hi professor, can you kindly explain that why the symmetry of the weight will lead to that A0=A2 and why here we only take weight x^0 and weight x^2 not x^1 please?

# data[].attributes.body
I wonder if I choose y:=(y1,y2,y3...) will I get marks? Or are we asked to set y:=(y0,y1,y2...) start from zero when it comes to transform n differential equations to first order differential equations?

# data[].attributes.headline
Could you update all the exam solutions so that the mistakes mentioned in the padlet are fixed?

# data[].attributes.subject
Could you update all the exam solutions so that the mistakes mentioned in the padlet are fixed?

# data[].attributes.body
How do we get the calculation for N_n+1(1/2) at the bottom? ie.e where does the -1, 0, 1 used in that formula come from

# data[].attributes.body
How do we know that we have x -> -x symmetry and how does this mean that we can assume the polynomial is of the form x^3 + ax?

# data[].attributes.body
Hi, I think c0=2/5 not 6/15

# data[].attributes.headline
20/21 B6(c)(ii), Dangerous Negligence of Higher Order Term

# data[].attributes.subject
20/21 B6(c)(ii), Dangerous Negligence of Higher Order Term

# data[].attributes.body
In this problem, you are specifically asked to neglect O(h^2) and keep anything constant or to h. Here, the solution given below failed to take in consider -((ih^2)^2)/2 which will be later known to include a multiple of h, as written on my solution above.

However, this will require knowledge on sums of cubes and would be too difficult to give on an exam without hints. Would this answer be marked incorrect? Please let me know your thoughts.

# data[].attributes.body
When are we getting our class test grades please?

# data[].attributes.headline
When are we getting our class test grades please ?

# data[].attributes.subject
When are we getting our class test grades please ?