I can not solve a simple equation solve(sin(x)==1,x)

1 vue (au cours des 30 derniers jours)
Lingzi Wang
Lingzi Wang le 6 Nov 2016
Commenté : Lingzi Wang le 7 Nov 2016
syms x
solve(sin(x)==1,x)
ans =
Empty sym: 0-by-1
why?
  2 commentaires
Walter Roberson
Walter Roberson le 6 Nov 2016
Which MATLAB release are you using? For me in R2016b it responds with pi/2
Lingzi Wang
Lingzi Wang le 7 Nov 2016
Thanks. It runs Ok now, after I restart it.

Connectez-vous pour commenter.

Réponses (2)

Steven Lord
Steven Lord le 6 Nov 2016
Make sure you haven't created your own sin.m file.
which -all sin
  1 commentaire
Lingzi Wang
Lingzi Wang le 7 Nov 2016
Thanks. It runs Ok now, after I restart it.

Connectez-vous pour commenter.


Robert
Robert le 6 Nov 2016
I am on 2016b i also received pi/2
  1 commentaire
Lingzi Wang
Lingzi Wang le 7 Nov 2016
Thanks. It runs Ok now, after I restart it.

Connectez-vous pour commenter.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by