Need help with average rate of change.

4 visualizaciones (últimos 30 días)
Alexander
Alexander el 11 de Oct. de 2013
Comentada: Alexander el 11 de Oct. de 2013
How do I calculate the average rate of change with this as my function:
function y = W(x) if 1 <= x && x <= 28 y = 48+3.64*x+0.6363*x.^2+0.00963*x.^3; end if x>28 && x<=56 y =-1004+65.8*x; end
  5 comentarios
Jan
Jan el 11 de Oct. de 2013
@Lauren: It is the nature of a public forum to let all readers participate from solutions. Therefore some users do not discuss via emails.
Alexander
Alexander el 11 de Oct. de 2013
@Lauren, sure.

Iniciar sesión para comentar.

Respuestas (1)

Youssef  Khmou
Youssef Khmou el 11 de Oct. de 2013
Editada: Youssef Khmou el 11 de Oct. de 2013
Alexander, in the range [1 28], the average rate is : 48+3x²+x(2b+3)+h²+a and in the range [28 56] it is : B, with a=3.64, b=0.6363, c=0.00096, and B=65.8.
Verify this using the general formula DY/DX=(F(X+H)-F(X))/H
  4 comentarios
Alexander
Alexander el 11 de Oct. de 2013
Okay, and if I wanted to find the average change from say t=1 to t=25, how would I do that?
Youssef  Khmou
Youssef Khmou el 11 de Oct. de 2013
then the (h,x) in the formula are x=1, and h=x2-x1=24

Iniciar sesión para comentar.

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by