Product of one-dimensional integrals, numerical integration
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
DIMITRIS GEORGIADIS
el 17 de Abr. de 2021
Comentada: DIMITRIS GEORGIADIS
el 22 de Abr. de 2021
I want to compute the following product of integrals numerically using the
and the
tool of Matlab:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/586556/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/586561/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/586566/image.png)
where,
are known scalar values gathered into a vector
and f, g are two continuous and differentiable functions. Any ideas?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/586571/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/586586/image.png)
2 comentarios
Respuesta aceptada
Divija Aleti
el 22 de Abr. de 2021
Hi Dimitris,
Have a look at the following example code. I have assumed different functions for 'f' and 'g' and integrated their product from a lower bound of -2 to an upper bound of 2 using the 'int' function. There are 5 known scalar values here (n = 5), which I have gathered into a vector yi.
yi = 1:5;
syms x y
g(x,y) = x*y;
h = 1;
for i = 1:5
f(y) = yi(i)*y^3;
hi = int((f(y).*g(x,y)),y,-2,2);
h = hi.*h;
end
For more information on 'int', refer to the following link: int
Hope this helps!
Regards,
Divija
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!