필터 지우기
필터 지우기

Integration of a function having constant parameter

조회 수: 1 (최근 30일)
Cagas Akalin
Cagas Akalin 2021년 10월 21일
답변: Star Strider 2021년 10월 22일
Hi All,
I would like to evaluate integral of
(4*a - 2*x + 4*a*x - 3*a*x^2 - 2*a*x^3 + a*x^4 - x^2 + x^3) dx
where x between 0 and 1.
Your help is appreciated.
Bests,
Cagdas

채택된 답변

Star Strider
Star Strider 2021년 10월 22일
Try this —
syms a x
F = int((4*a - 2*x + 4*a*x - 3*a*x^2 - 2*a*x^3 + a*x^4 - x^2 + x^3), x, 0, 1)
F = 
Ffcn = matlabFunction(F)
Ffcn = function_handle with value:
@(a)a.*(4.7e+1./1.0e+1)-1.3e+1./1.2e+1
Note that it is a funciton only of ‘a’.
.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by