What is the difference between method and function in Scala?

How do I obtain the cubic function according to my graph?

  • 2 16,40 3 15,70 4 15,30 5 15,20 6 15,21 7 15,40 8 15,80 9 16,30 10 16,80 11 17,50 12 18,18 13 18,70 14 19,36 15 19,88 16 20,40 17 20,85 18 21,22 19 21,60 20 21,65 Based on the data I created a graph. And I already know that its a Polynomial function (according to the curve etc.) A cubic function to be exact! Now the problem is asking to find it's equation! I used the finite difference method.. But it doesn't help much, since it never gets to a constant difference!! Now I'm lost! I can't really explain how I got to the conclusion that it is a cubic function! Does any one have any idea? Thanks:)

  • Answer:

    Pick 4 points, say x = 2, 5, 10 and 20. Then substitute the x and y values into the general cubic equation: y = ax^3 + bx^2 + cx +d Solve the four resulting equations for a, b, c, and d.

Taly at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Pick 4 points, say x = 2, 5, 10 and 20. Then substitute the x and y values into the general cubic equation: y = ax^3 + bx^2 + cx +d Solve the four resulting equations for a, b, c, and d.

goober

Better see the book.

Fazaldin A

Better see the book.

Fazaldin A

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.