Problem with solving
2 次查看(过去 30 天)
显示 更早的评论
Here is short programming: tau = input('Enter the value of tau: '); b = pi*(1-2*tau)/tau; syms x; solve('sin(x) = x + b') while trying to run this, it is showing 'Error using ==> solve Unable to find closed form solution'. But if I put the value of 'b' separately, it executes and shows the value for x. So, how this problem can be solved? What should be the format so that it could be done?
Thanks
0 个评论
回答(1 个)
Andrei Bobrov
2011-12-24
tau = input('Enter the value of tau: ');
b = pi*(1-2*tau)/tau;
syms x;
result = solve(sin(x) - x - b)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!