Hi!(adsbygoogle = window.adsbygoogle || []).push({});

I have some trouble understanding this question. Could someone help me with it? Thanks!

Solve the following with the explicit method from t=0 to t=0.5 with h=1/10 and with μ(=k/h^{2})=0.5

u_{t}= u_{xx}, -1 ≤ x ≤ 1, t>0

u(0,x) = cos(x), -1 ≤ x ≤ 1

u(t,-1) = u(t,1) = e^{-t}cos1, t>0

Compute the max-norm and the 2-norm of the error for t=0.1, 0.2, 0.3, 0.4, 0.5

Really clueless as to how to solve it! Please help! Thanks!

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# R Code to solve Heat equation

**Physics Forums | Science Articles, Homework Help, Discussion**