Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

R Code to solve Heat equation

  1. Oct 12, 2012 #1

    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/h2)=0.5

    ut = uxx, -1 ≤ x ≤ 1, t>0
    u(0,x) = cos(x), -1 ≤ x ≤ 1
    u(t,-1) = u(t,1) = e-tcos1, 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!
  2. jcsd
  3. Oct 14, 2012 #2


    User Avatar
    Science Advisor

    Do you expect everyone to know what "R-code" and "the explicit method" mean?
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook