Hi everyone.
i have just started using python. so i need help to start a project with FINITE DIFFERENCE.
the probleme is 1D poisson équation.
u''(x) = x^2 - 3 x is in (0,1)
u(0) = 1
u(1) = 0
i want to use two shemes. with pyton
i have differente valeurs of h.
the firs is : (u(x+h) - 2u(x) + u(x-h))/h^2
the second is : (-u(x+2h) +16u(x+h) -30u(x) +16u(x-h)- u(x-2h))/12h^2
after a want to plot the numerical ant exact solution in the same graph.
and then using error with norm on two and infinite.
does someone done a similar project?
i really need help