CS101 - Lab Activity 3

Name: ____________________           NetID: ______________     Section#: ______

Name: ____________________           NetID: ______________     Section#: ______

Name: ____________________           NetID: ______________     Section#: ______


Objectives

In this lab, you will:

References


Part 1 :  Matlab Functions

  1. ______________________________________________________________________________________



  2. ______________________________________________________________________________________



  3. Y      /      N

     

  4. Y      /      N

     

  5. ___________________________________________


  6. ___________________________________________


  7. ___________________________________________


  8. _________________________________________________________________


    _________________________________________________________________


    _________________________________________________________________



  9. ______________________________________________________________________________________




  10. ______________________________________________________________________________________





  Part 2 : Kinetic Energy of a particle


  1.   ____________________________________________________________________________________


  1.   ____________________________________________________________________________________



  2. ____________________________________________________________________________________



  3. ____________________________________________________________________________________


  4. ____________________________________________________________________________________



    _____________________________________________________________________________________



    ______________________________________________________________________________________



    ______________________________________________________________________________________




    ______________________________________________________________________________________



      


  Part 3 :  Writing your own function
 
  1. _________________________________________________________________________________



  2. _____________________________________________________________________________________________________________




  3. _____________________________________________________________________________________________________________




  4. _____________________________________________________________________________________________________________

 



  1.    TA signature   __________________________________________________________________

Part 4 : Absolute and Relative Error

  1.     temp = ______________________________________________________________________

  1.     temp2 = _____________________________________________________________________



  2.     y = _________________________________________________________________________


  3.     TRUE             FALSE