Difference between Matlab and Wolfram Alpha
古いコメントを表示
These problems might occure frequently due to the varied syntax. This time it's about:
solve(x^2-8*x+15<=1)
what gives (according to Matlab): pi and 4. That's wrong or not what I ask for. In contrast Wolfram Alpha gives after typing in the same piece of code the correct solution (in my point of view.) Why is that?
採用された回答
その他の回答 (1 件)
Cam Salzberger
2020 年 7 月 31 日
0 投票
Hey Niklas,
Technically, both pi and 4 are "correct" results, as if you plug them in, they will fulfill the condition. I think what you are looking for is using the solution = solve(___, "ReturnConditions", true) syntax, as suggested by the solving inequalities example in the documentation.
Also, it would generally be helpful to post what you got from Wolfram as well, so we know what you're expecting.
-Cam
1 件のコメント
Niklas Kurz
2020 年 7 月 31 日
編集済み: Niklas Kurz
2020 年 7 月 31 日
カテゴリ
ヘルプ センター および File Exchange で Mathematics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!