Jump to content

Recommended Posts

Posted

Boas pessoal.

Por curiosidade apenas, alguém sabe como implementar o método que o Excel usa para calcular a equação de uma Linha de Tendência de uma curva pela Lei Quadrática?

Muito por alto o que o Excel faz é uso das seguintes funções:

2nd Order Polynomial Trendline

Equation: y = (c2 * x^2) + (c1 * x ^1) + b

c2: =INDEX(LINEST(y,x^{1,2}),1)

C1: =INDEX(LINEST(y,x^{1,2}),1,2)

b: =INDEX(LINEST(y,x^{1,2}),1,3)

Lendo a descrição das funções INDEX e LINEST, respectivamente, dizem:

 

INDEX - returns the value of an element in a table or an array, selected by the row and column number indexes

LINEST - returns statistics that describe a linear trend matching known data points, by fitting a straight line using the least squares method.

Kurt Cobain - Grunge misses you

Nissan GT-R - beast killer

Posted
11 hours ago, HappyHippyHippo said:

isso parece só ser contas, o problema é saber as contas que o INDEX e o LINEST fazem

O INDEX devolve apenas um valor de uma célula cujas coordenadas são enviadas para este INDEX.

O LINEST, pois, não sei que constas faz de facto.

Kurt Cobain - Grunge misses you

Nissan GT-R - beast killer

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.