Question: please dont use functions, thanks 2. (10 pts) Write a program for the following problem. 3X COS(X) - 2x 20 15 derivative of 10 5

 please dont use functions, thanks 2. (10 pts) Write a program
for the following problem. 3X COS(X) - 2x 20 15 derivative of
please dont use functions, thanks

2. (10 pts) Write a program for the following problem. 3X COS(X) - 2x 20 15 derivative of 10 5 Plot the function f(x) = 3x cos' x-2x and its first derivative, both on the same plot, for -27 SxS 27. Plot the function with a red solid line of line width 2, and the derivative with a blue dashed line of line width 3. Add a legend, title (bold, font size 16), and axes labels. Include a legend. Your result should look like the plot to the right w 0 -10 - 15 -8 (legend can be anywhere on the graph). 4. (10 pts) Write a program named LineInfo that will find the slope, x-intercept, and y-intercept of a line given two points A and B on the line. Find the slope, x-intercept, and y-intercept for each of the following: hint use slope formula a) A(3,4), B(6,6) b) A(-2,5), B(4, -1) c) A(-3,-6), B(6, 12) Here is a sample run for: >> LineInfo Line A has slope 0.6667. Its y intercept is at 2, and its x intercept is as-3 Line B

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!