필터 지우기
필터 지우기

help with integral2

조회 수: 3 (최근 30일)
Pavel Kuzmitsky
Pavel Kuzmitsky 2020년 12월 22일
댓글: John D'Errico 2020년 12월 22일
the code does not work, I do not understand what I should do, I did not find a detailed explanation in the examples
fun = @(x,y) (2*x + sqrt(6)*y) .* 2*x;
polarfun = @(theta,r) fun(r.*cos(theta),r.^2.*cos(2*theta));
q = integral2(polarfun,0,2*pi,0,1)
tried to integrate the polynomial
(2*r*cos(x)+sqrt(6)*2*r^2*cos(2*x))*(2*r*cos(x))
  댓글 수: 1
John D'Errico
John D'Errico 2020년 12월 22일
What does not work? Why do you think it does not work? In what way did it fail?
I might even ask why do you think that to be a polynomial? I suppose it is one, in r.

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

채택된 답변

VBBV
VBBV 2020년 12월 22일
%true
fun = @(x,y) (2*x+sqrt(6)*y).*2.*x; % use dot
polarfun = @(r,theta) fun(r.*cos(theta),r.^2.*cos(2.*theta));
q = integral2(polarfun,0,2*pi,0,1)
Use element wise multiplication

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by