{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lecture 8 Notes

# Sin10x plotxy 5 insight through compujng insight

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Through CompuJng AXer 100 hours… Error = (100x60x60*10)*.000000095 = .34 seconds Need accurate Jme and velocity to track. Scud travels at 1.7 km/s => Patriot missed intercept by more than 500 meters. Insight Through CompuJng Table à༎ Plot 10. Plovng ConJnuous FuncJons Linspace Array OperaJons x 0.00 1.57 3.14 4.71 6.28 sin(x) 0.0 1.0 0.0 -1.0 0.0 Plot based on 5 points Insight Through CompuJng Insight Through CompuJng 10 2/20/14 Table à༎ Plot x 0.000 0.784 1.571 2.357 3.142 3.927 4.712 5.498 6.283 sin(x) 0.000 0.707 1.000 0.707 0.000 -0.707 -1.000 -0.707 0.000 Insight Through CompuJng Plot based on 9 points Table à༎ Plot Plot based on 200 points—looks smooth Insight Through CompuJng GeneraJng Tables and Plots x 0.000 0.784 1.571 2.357 3.142 3.927 4.712 5.498 6.283 sin(x) 0.000 0.707 1.000 0.707 0.000 -0.707 -1.000 -0.707 0.000 linspace x = linspace(1,3,5) x = linspace(0,2*pi,9); y = sin(x); plot(x,y) x : 1.0 1.5 2.0 2.5 3.0 “x is a table of values” “x is an array” “x is a vector” Insight Through CompuJng Insight Through CompuJng linspace Linspace Syntax x = linspace(0,1,101) linspace( x : 0.00 0.01 0.02 … , ) 0.99 1.00 Left Endpoint Insight Through CompuJng , Right Endpoint Number of Points Insight Through CompuJng 11 2/20/14 Built- In FuncJons Accept Arrays sin 0.00 1.57 3.14 4.71 6.28 Insight Through CompuJng x 0.00 1.57 3.14 4.71 6.28 sin(x) 0.0 1.0 0.0 -1.0 0.0 And… Return Array of FuncJon- evals sin 0.00 1.00 0.00 -1.00 0.00 Insight Through CompuJng x 0.00 1.57 3.14 4.71 6.28 sin(x) 0.0 1.0 0.0 -1.0 0.0 Can We Plot This? Examples x = linspace(0,1,200); y = exp(x); plot(x,y)...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online