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

syms x
solve(sin(x)==1,x)
ans =
Empty sym: 0-by-1
why?

2 Kommentare

Which MATLAB release are you using? For me in R2016b it responds with pi/2
Thanks. It runs Ok now, after I restart it.

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Steven Lord
Steven Lord am 6 Nov. 2016
Make sure you haven't created your own sin.m file.
which -all sin
Robert
Robert am 6 Nov. 2016

0 Stimmen

I am on 2016b i also received pi/2

Kategorien

Mehr zu Numerical Integration and Differential Equations finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 6 Nov. 2016

Kommentiert:

am 7 Nov. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by