finite Integral in matlab

4 Ansichten (letzte 30 Tage)
Yichao Shi
Yichao Shi am 10 Dez. 2020
Bearbeitet: weikang zhao am 11 Dez. 2020
How to integrate functions in matlab?
fun = sqrt[10/(3*9.81)] / sqrt[-2*cos(x) - sin(x) + 2*cos(pi/6)-sin(pi/6)]
from 0 to pi/2
Thanks
  1 Kommentar
John D'Errico
John D'Errico am 10 Dez. 2020
Easy.
ans =
0.293675 - 1.20355i
What did you try?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

weikang zhao
weikang zhao am 11 Dez. 2020
Bearbeitet: weikang zhao am 11 Dez. 2020
use the numerical integration function "integral"
integral(@(x) sqrt(10/(3*9.81)) ./ sqrt(-2*cos(x) - sin(x) + 2*cos(pi/6)-sin(pi/6)),0,pi/2)

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by