How do I evaluate the area between two curves?

조회 수: 1 (최근 30일)
nexwa
nexwa 2019년 3월 23일
편집: madhan ravi 2019년 3월 24일
I'm given:
y= and y=. It's interval x [0; inf)
How do I calculate the area of this figure?
  댓글 수: 2
dpb
dpb 2019년 3월 23일
So, what have you done and where did you get stuck?
What toolboxes are you allowed to use?
nexwa
nexwa 2019년 3월 23일
I'm not sure what to do at the first place but I assume I have to write something like this? Also what do you mean with toolboxes? We are using simply script editor in matlab
syms x
fplot((3x^2-12.3x+6),[?]),axis equal, axis([?]), hold on
fplot((-x^3+3.22x^2-2x+2.94,[?]),plot([?],[?]),grid on
solve((3x^2-12.3x+6)==(-x^3+3.22x^2-2x+2.94),x)
S=int((3x^2-12.3x+6)-(-x^3+3.22x^2-2x+2.94),x,?,?) // I'm not sure what I should write instead of question marks in my problem.

댓글을 달려면 로그인하십시오.

채택된 답변

nexwa
nexwa 2019년 3월 24일
I've solved it, apparantly it was really easy haha, anyways, in case anyone would like to know here's the code:
clear all
clc
syms x
y1=3*x^2-12.3*x+6;
y2=-x^3+3.22*x^2-2*x+2.94;
vpa(solve(y1==y2),6)
fplot(3*x^2-12.3*x+6, [0 4]), hold on
fplot(-x^3+3.22*x^2-2*x+2.94, [0 4])
S=vpa(int((y2-y1),x,0.297757,3.16711),6)
  댓글 수: 1
madhan ravi
madhan ravi 2019년 3월 24일
편집: madhan ravi 2019년 3월 24일
+1, you may also be interested in representing the array graphically as well.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by