Problem with solving

조회 수: 2 (최근 30일)
KB
KB 2011년 12월 24일
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

답변 (1개)

Andrei Bobrov
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)
  댓글 수: 1
KB
KB 2011년 12월 24일
Thanks a lot..

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by