Question: Write a function called cubic ( ax , i ) that calculates f = a , + a , x + a , x

Write a function called cubic(ax, i) that calculates f = a,+ a,x + a, x"+ a x,where the arguments of the function are given by "a"(1D array), x, and f. Use for loops when possible. Write a suitable main to Illustrate how to call the function. The main should input a and x from the keyboard and then print out f.

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 Programming Questions!