Lab1temp 151 22C Jupyter Notebook 9 5 22 2 06 PM MATH 151 Lab 1 Haya Mohammad Jason Tharun Fatima section 580 In from sympy import from sympy plotting import plot plot parametric Question 1 In 1 from sympy import Answer 79 exp 1 29 11 1 2 2026 5 1 3 print Answer is Answer Answer is 5 29251613828432 In 21 from math import from sympy import answer cos 11 pi 12 sec 75 pi 180 tan 7 pi 12 print Exact answer is answer simplify print Approximate answer is answer evalf Exact answer is 4 2 sqrt 3 Approximate answer is 7 46410161513775 1a 1b 2a http localhost 8891 notebooks Downloads Lab1temp 151 22C ipynb Page 1 of 3 Lab1temp 151 22C Jupyter Notebook 9 5 22 2 06 PM In 7 from math import f 10 f2 100 f3 1000000 X math sqrt f 2 4 f 2 Y math sqrt f2 2 4 f2 2 Z math sqrt f3 2 4 f3 2 print f 10 is X print f 100 is Y print f 1000000 is Z f 10 is 0 8164965809277259 f 100 is 0 9801960588196069 f 1000000 is 0 999998000002 2b In 8 from math import f 2 01 f2 2 0001 f3 2 000001 X math sqrt f 2 4 f 2 Y math sqrt f2 2 4 f2 2 Z math sqrt f3 2 4 f3 2 print f 2 01 is X print f 2 0001 is Y print f 2 000001 is Z f 2 01 is 20 02498439450094 f 2 0001 is 200 00249998414895 f 2 000001 is 2000 0002498824315 2c 2d In 2 print The y values get closer and closer to 1 The y values get closer and closer to 1 In 3 print The y values get larger by a factor of 10 The y values get larger by a factor of 10 http localhost 8891 notebooks Downloads Lab1temp 151 22C ipynb Page 2 of 3 Lab1temp 151 22C Jupyter Notebook 9 5 22 2 06 PM Question 3 3a 3b In 24 from math import x 409 h 3 v 130 answer 16 x 2 v 2 cos 26 pi 180 2 tan 26 pi print Height at 409 feet is answer ft so it wont clear the wall and be a home run Height at 409 feet is 6 435936025295064 ft so it wont clear the w all and be a home run In 23 from math import y 10 x 15 v 24 answer y tan 54 2 pi 180 x 16 x 2 v 2 cos 54 2 print He released the ball at a height of answer ft He released the ball at a height of 7 4674687868693965 ft http localhost 8891 notebooks Downloads Lab1temp 151 22C ipynb Page 3 of 3
View Full Document