solve command help needed.
이전 댓글 표시
here is my code,only 5 lines, and i m trying to solve for b,
syms b m theta
m = 5;
theta = 20;
eq = tand(theta)==(2*(1/tand(b)))*(((m*m*(sind(b)*sind(b))-1))/(m*m*(1.4+(cosd(b)*cosd(b)))+2)) ;
solve(eq,b)
the answer i get is this ==> -(log(root(z^6 - z^4*(1238888939898706904063102115185851/2095413426666905974699416890572625 + 2864291029470578218930659559211008i/2095413426666905974699416890572625) - z^2*(2168555873514773727160036100864837/2095413426666905974699416890572625 - 2244186785976947882873506458763264i/2095413426666905974699416890572625) + (78442739762537124403601334665223/83816537066676238987976675622905 + 29528773499696682669388242878464i/83816537066676238987976675622905), z, 1))*180i)/pi
now idk where z comes from since its not part of my code, but i also saw some imaginary parts so since i wanted a real number i tried this
syms b m theta
m = 5;
theta = 20;
eq = tand(theta)==(2*(1/tand(b)))*(((m*m*(sind(b)*sind(b))-1))/(m*m*(1.4+(cosd(b)*cosd(b)))+2)) ;
solve(eq,b,'real',true)
here i get the answer
ans = (180*(2*pi*k + atan2(x, 1) - atan2(-x, 1)))/pi
now its a smaller eq but idk what the k or x values to be,and where they come from
the ideal answer should be 29.8 for b.
so any one know whats happening and how to solve this.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Assumptions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!







