Lab Activity 4 - Answers

Name: __________________________   NetID: _______________   Section#: ______

Part 1: Programming the find_xy function

  1. Write down the five equations.
    
    
    
    
    
    
    
    
    
    











  2. Write down the equation that you are going to solve, in the matrix form [matrix]*[column vector] = [column vector]. (Hint: see the matrix equation in the MP 1 write-up immediately above equation (7) in the 3. Math section.) 
    
    
    
    
    
    
    
    








  3.   
  4. K = _________________________________________________



  5. A_main = diag( - (K(___________________) + K(__________________) ) , ____________ ) ;

     

  6. A_upper = diag( K( ______________________ ) , ______________________ );

     

  7. A_lower = diag( K(_______________________) , _______________________ ) ;



  8. W(1) = W( _________________ ) - _____________________________ ;


    W(N) = W( ________________ ) - ______________________________ ;
     

  9. h = ___________________________ ;
     

  10.  h = _____________________ ;

     

  11. h = __________________________________________ ;
     

  12. x = ___________________________________________ ;