13
ENGR 3 rocks

ENGR 3

  • Upload
    baakir

  • View
    33

  • Download
    0

Embed Size (px)

DESCRIPTION

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 - PowerPoint PPT Presentation

Citation preview

Page 1: ENGR 3

ENGR 3

rocks

Page 2: ENGR 3

• Desktop-->Classes-->Matlab-Engineering-->matlab_using_engineering_toolkits.bat

Page 3: ENGR 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.

Page 4: ENGR 3

• MATLAB !

Page 5: ENGR 3

• MATLAB !

Page 6: ENGR 3

• MATLAB !

Page 7: ENGR 3

• 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!?

Page 8: ENGR 3

• 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

Page 9: ENGR 3

• 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.

Page 10: ENGR 3

• 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.

Page 11: ENGR 3

• 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.

Page 12: ENGR 3

• 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]

Page 13: ENGR 3

• Ok, Homework 4, ready, set, go!