This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Prof. Johnson 3. (25 Points) 3D Line Plot: A 3D line segment between points ) , , ( 1 1 1 1 z y x p and ) , , ( 2 2 2 2 z y x p is define by the following three equations ) ( ) ( ) ( 1 2 2 1 2 2 1 2 1 z z t z z y y t y y x x t x x where t is from 0 to 1. When t =0 you are at point 1 and when t = 1 you are at point 2. Write a script that will plot the 3D line segment between points (10,15,20) and (25, 78, 90). The value of t should go from 0 to 1, with a spacing of 0.5. 4. (25 points) Linear: Given the points (10,15) and (25,30) in an xy coordinate system, (a) Write a script that uses linear interpolation to find the corresponding y-value of x = 22.5 (b) Write a script that uses linear regression to find the corresponding y-value of x = 22.5...
View Full Document
This note was uploaded on 05/01/2011 for the course HCSC 110 taught by Professor Amosjohnson during the Spring '11 term at Morehouse.
- Spring '11