Warning: Cannot solve symbolically. Returning a numeric approximation instead.
이전 댓글 표시
Hello, I was trying to solve equations with solve, The code is attached. I was trying to find out the values of x
clear; clc;
syms x, l1=0.5; l2=0.5;
A=(cosh(x*l1)-cos(x*l1))/(sinh(x*l1)-sin(x*l1)); B=(0.5)*(cosh(x*l1)+ cos(x*l1)-A*(sinh(x*l1)+sin(x*l1))); C=((-1+cosh(x*l2)*cos(x*l2)-sinh(x*l2)*sin(x*l2))/(sinh(x*l2)*cos(x*l2)-cosh(x*l2)*sin(x*l2)))*B; D=((1-cos(x*l2)*cosh(x*l2)-sinh(x*l2)*sin(x*l2))/(sin(x*l2)*cosh(x*l2)-cos(x*l2)*sinh(x*l2)))*B;
SS = solve(C+D+sinh(x*l1)+sin(x*l1)-A*cosh(x*l1)+A*cos(x*l1)==0,x);
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!