finite Integral in matlab

3 ビュー (過去 30 日間)
Yichao Shi
Yichao Shi 2020 年 12 月 10 日
編集済み: weikang zhao 2020 年 12 月 11 日
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 件のコメント
John D'Errico
John D'Errico 2020 年 12 月 10 日
Easy.
ans =
0.293675 - 1.20355i
What did you try?

サインインしてコメントする。

回答 (1 件)

weikang zhao
weikang zhao 2020 年 12 月 11 日
編集済み: weikang zhao 2020 年 12 月 11 日
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)

カテゴリ

Help Center および File ExchangeNumerical Integration and Differential Equations についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by