Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
coding
조회 수: 1 (최근 30일)
이전 댓글 표시
I want find out the roots of the following equation f(x)=x^3-5x^2-2cos2x=lnx-1
댓글 수: 2
Walter Roberson
2011년 8월 6일
Please write your equation in MATLAB format. The current form is ambiguous. For example is it ln(x-1) or ln(x)-1 ? Why is there an "=" before the ln ?
답변 (2개)
Dustin
2011년 8월 6일
Generate an array of all the x values you expect the root to lie within. Then, fnzeros should help you out.
댓글 수: 0
Rikimaru83
2011년 8월 6일
Hi, You can use the MatLab symbolic tool to solve the equation. If I've understood well, You wanto to solve the equation x^3-5x^2-2cos2x-lnx+1=0: syms x % symbolic variable x
EQ=x^3-5*x^2-2*cos(2*x)-log(x)+1; % equation to be solved
solution=solve(EQ) % solve the solution
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!