Question: Write a java program that calculate the input and derivative. Input should go on as the user puts in until they type DONE. It should

Write a java program that calculate the input and derivative. Input should go on as the user puts in until they type DONE. It should calculate the following output. Output displays the value of num# and derivatives.

the name is followed by num###. It should start with num1 to num10000. It should display error if it is num0, num-. number, etc.

input:

num1 = 3

num2 = num1 * num1

num3 = num2 - num1

num4 = num3 * num2

num5 = num4 - num3

output:

3 1

9 6

6 5

54 81

48 76

How to find derivative:

First derivative =(dx)/(x1) 3/3 = 1

Second derivative using product rule = (f' * g) + (f * g') = (3*1)+(1*3) = 6

Third = num2 derivative - num1 derivative = 6 - 1 = 5

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!