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 件のコメント

Walter Roberson
Walter Roberson 2016 年 11 月 6 日
Which MATLAB release are you using? For me in R2016b it responds with pi/2
Lingzi Wang
Lingzi Wang 2016 年 11 月 7 日
Thanks. It runs Ok now, after I restart it.

サインインしてコメントする。

回答 (2 件)

Steven Lord
Steven Lord 2016 年 11 月 6 日

1 投票

Make sure you haven't created your own sin.m file.
which -all sin

1 件のコメント

Lingzi Wang
Lingzi Wang 2016 年 11 月 7 日
Thanks. It runs Ok now, after I restart it.

サインインしてコメントする。

Robert
Robert 2016 年 11 月 6 日

0 投票

I am on 2016b i also received pi/2

1 件のコメント

Lingzi Wang
Lingzi Wang 2016 年 11 月 7 日
Thanks. It runs Ok now, after I restart it.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange で Numerical Integration and Differential Equations についてさらに検索

タグ

質問済み:

2016 年 11 月 6 日

コメント済み:

2016 年 11 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by