Problem with solving

5 Ansichten (letzte 30 Tage)
KB
KB am 24 Dez. 2011
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

Antworten (1)

Andrei Bobrov
Andrei Bobrov am 24 Dez. 2011
tau = input('Enter the value of tau: ');
b = pi*(1-2*tau)/tau;
syms x;
result = solve(sin(x) - x - b)
  1 Kommentar
KB
KB am 24 Dez. 2011
Thanks a lot..

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by