Question: Exercise 1.9. Type in programs and debug them. Type these short programs in your editor and execute them. When they do not work, identify and

Exercise 1.9. Type in programs and debug them. Type these short programs in your editor and execute them. When they do not work, identify and correct the erroneous statements (a)Does sin2(x)cos(x) 1? from math import sin, cos xpi/4 1 val -sin 2(x) cos 2(x) print 1_VAL Name of program file: sin2 plus_cos2.py (b)Work with the expressions for movement with constant acceleration: a 2 m/s*+2 = print s Name of program file: acceleration.py (c)Verify these equations: (a+b)2-a2 + 2ab + b2 (a -b)2-a?- 2ab +b^ a 3,3 b 5,3 eq1_sum a22ab b2 eq1 pow -(a b)**2 print First equation : %g-%g', % (eqi-sun, eq1-pow) print 'Second equation: %h-Xb,, % (eq2-pow , eq2-pow) Name of program file: a_pm_b_sqr.py
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
