Typing a long and complicated equation

24 ビュー (過去 30 日間)
WILLBES BANDA
WILLBES BANDA 2020 年 4 月 2 日
コメント済み: WILLBES BANDA 2020 年 4 月 2 日
Hi, i am trying to integrate my function but when i type out my equation it gives me the wrong answer and i suspect that i may not have typed my equation properly since its long and confusing, how do i type it the equation below properly on my script?please help. The small brackets inside the bigger squareroot covers evything there and then raise to the power of 2
  1 件のコメント
Ameer Hamza
Ameer Hamza 2020 年 4 月 2 日
Can you shows us what you have typed?

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

採用された回答

Birdman
Birdman 2020 年 4 月 2 日
syms y(t)
eq=2*pi*(sqrt((y-44.56)/(-0.16))+1)*sqrt(1+((1)/(-0.32*((sqrt((y-44.56)/(-0.16))+1))+0.32))^2)
  1 件のコメント
WILLBES BANDA
WILLBES BANDA 2020 年 4 月 2 日
Thank you honourable, it works

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

その他の回答 (1 件)

David Hill
David Hill 2020 年 4 月 2 日
z=@(y)2*pi*(sqrt((44.56-y)/.16)+1).*sqrt(1+(1./(.32-.32*(sqrt((44.56-y)/.16)+1))).^2);
y=0:.01:10;%have no idea what you are integrating over
A=trapz(y,z(y));
  1 件のコメント
WILLBES BANDA
WILLBES BANDA 2020 年 4 月 2 日
Thank you honourable, it also works

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

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by