More symbolic solver issues

10 ビュー (過去 30 日間)
Robert
Robert 2016 年 10 月 21 日
編集済み: Robert 2016 年 10 月 21 日
Im really getting tired of matlab being shown up by wolfram alpha. A program designed for high school kids
Very simple bit of code here
solve('((5*x + 13)*((25*x)/6 + 47/6) - 30)/((25*x)/6 + 47/6)>0')
and i get "can not find an explicit solution
type the same thing in wolfram alpha and i get an answer for x with out a single problem
why??? Now that I've waste 1.5 days on this foolishness
And yes i know all about the loss of matlab character string support for matlab and such. that is not the issue here.

回答 (1 件)

Sean de Wolski
Sean de Wolski 2016 年 10 月 21 日
編集済み: Sean de Wolski 2016 年 10 月 21 日
>>syms x
>>solve(((5*x + 13)*((25*x)/6 + 47/6) - 30)/((25*x)/6 + 47/6)>0,'IgnoreAnalyticConstraints',true)
ans =
(3*109^(1/2))/25 - 31/25
- (3*109^(1/2))/50 - 103/50
>> double(ans)
ans =
0.0128
-2.6864
>> subs(((5*x + 13)*((25*x)/6 + 47/6) - 30)/((25*x)/6 + 47/6)>0,x,ans)
ans =
0 < 9101248911870249387665321454522297509/982817047206512525305913255026229248
0 < 24126042787404995123109035636891/2839602102211972252884472430592
  1 件のコメント
Robert
Robert 2016 年 10 月 21 日
編集済み: Robert 2016 年 10 月 21 日
O right, excuse me, i forgot i have to tell matlab to do some obscure command to get it to solve a simple one variable equation. Great job math works! And they wonder why educators are choosing maple and mathematica over matlab these days
And using that command you get a totally different answer then wolfram alpha

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

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by