1 / 13

ENGR 3

ENGR 3. rocks. Desktop-->Classes-->Matlab-Engineering-->matlab_using_engineering_toolkits.bat. From Here to Christmas: Homework 4 is due November 25, Tuesday, 5pm No office hours next week except Mon 1-5pm in HFH 1111 and Tuesday 2-5pm in Phelps 1530

baakir
Download Presentation

ENGR 3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ENGR 3 rocks

  2. Desktop-->Classes-->Matlab-Engineering-->matlab_using_engineering_toolkits.batDesktop-->Classes-->Matlab-Engineering-->matlab_using_engineering_toolkits.bat

  3. From Here to Christmas: • Homework 4 is due November 25, Tuesday, 5pm • No office hours next week except Mon 1-5pm in HFH 1111 and Tuesday 2-5pm in Phelps 1530 • After Thanksgiving all office hours will be in Phelps 1530 • No class on this coming Wednesday • When you come back from Thanksgiving, you will be only 8 or 10 days away from the Final Exam! • We will review for the final exam similarly to the midterm. The average score for my sections was much higher than the class average.

  4. MATLAB !

  5. MATLAB !

  6. MATLAB !

  7. Homework 4 • Question 1: Use the MATLAB help files. • Question 2: Very similar to the C programs you’ve been writing. Hint: consider the commandsfilehandle=fopen(‘testing123.txt’,’w’)fprintf(filehandle,’testing, 1, 2, %d’,7)fclose(filehandle) • Question 3: Transcendental equation? What!?

  8. Transcendental Equations: • How would you solve tan(x)=(x-2)2 ? • Sqrt(tan(x))+2=x, nope • x=arctan((x-2)2), nope • Algebra cannot solve this

  9. Transcendental Equations: • How would you solve tan(x)=(x-2)2 ? • Sqrt(tan(x))+2=x, nope • x=arctan((x-2)2), nope • Algebra cannot solve this • But computers can! • Plot both sides of the equation and see where they are equal.

  10. Transcendental Equations: • How would you solve tan(x)=(x-2)2 ? • Sqrt(tan(x))+2=x, nope • x=arctan((x-2)2), nope • Algebra cannot solve this • But computers can! • Plot both sides of the equation and see where they are equal.

  11. Transcendental Equations: • How would you solve tan(x)=(x-2)2 ? • Sqrt(tan(x))+2=x, nope • x=arctan((x-2)2), nope • Algebra cannot solve this • But computers can! • Plot both sides of the equation and see where they are equal. • Tell the computer to loop through many values of x. Compute both sides of the equation for each of these values of x. Tell the computer to remember the value of x for which the two sides of the equation were closest, kinda like FindPi.c in Homework 3.

  12. Transcendental Equations: • How would you solve tan(x)=(x-2)2 ? • Sqrt(tan(x))+2=x, nope • x=arctan((x-2)2), nope • Algebra cannot solve this • But computers can! • Plot both sides of the equation and see where they are equal. • Tell the computer to loop through many values of x. Compute both sides of the equation for each of these values of x. Tell the computer to remember the value of x for which the two sides of the equation were closest, kinda like FindPi.c in Homework 3. • What range of values should the computer search for? Luckily, Homework 4 tells you to limit the search to [0,pi/L]

  13. Ok, Homework 4, ready, set, go!

More Related