필터 지우기
필터 지우기

Typing a long and complicated equation

조회 수: 46 (최근 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개)

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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by