How to solve a function with uknown parameter with bisection method
조회 수: 1 (최근 30일)
이전 댓글 표시
y(x) = (x^3 + p^2x^2 - 10) sin (x) for x=13.61015 y= 13257 p= unknown 5.14<p<11.47
댓글 수: 0
답변 (2개)
David Hill
2022년 10월 29일
x=13.61015;y=13257;
f=@(p)(x^3+p.^(2*x^2)-10)*sin(x)-y;
p=fzero(f,1)
P=1.01:.00001:1.03;
plot(P,f(P))%plot shows zero crossing cannot be between 5.14 and 11.47
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!