# I don't know how to write the following problem: f(x)=2x^3-​15.4x^2+2.​7x+2.25 - Determine the area under f(x) on the interval [-1,8]. Use the zeros rounded to one decimal

4 vues (au cours des 30 derniers jours)
Meghan van Rooyen le 30 Nov 2021
Réponse apportée : DGM le 30 Nov 2021
f(x)=2x^3-15.4x^2+2.7x+2.25 - Determine the area under f(x) on the interval [-1,8]. Use the zeros rounded to one decimal.
zero points are: x=-0.3, x=0.5, x=7.5
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Réponses (2)

DGM le 30 Nov 2021
This can all be done symbolically easily enough
xrange = [-1 8];
syms x
f = 2*x^3 - 15.4*x^2 + 2.7*x + 2.25;
area = int(f,x,xrange)
area =
double(area)
ans = -480.6000
fplot(f,xrange)
grid on
but why would the zeros be needed? Is that just a confusing way of saying "integrate abs(f)"?
absarea = int(abs(f),x,xrange)
absarea =
double(absarea)
ans = 512.9550
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

Yongjian Feng le 30 Nov 2021
Area under f(x) basically is just the definite integral of f(x) within the range, right?
You know how to use matlab to do integration?
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Catégories

En savoir plus sur Assumptions dans Help Center et File Exchange

R2006a

### Community Treasure Hunt

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

Start Hunting!

Translated by