【问题标题】:Symbolic evaluation of expressions containing relational operators, possibly using Maxima包含关系运算符的表达式的符号求值,可能使用 Maxima
【发布时间】:2016-07-06 19:05:49
【问题描述】:

我正在寻找另一种可以对关系表达式进行符号评估的工具,或者可能是扩展 Maxima 以启用此类功能的 Maxima 包。

Maxima 不这样做。

【问题讨论】:

标签: maxima


【解决方案1】:

据我所知,maxima 可以与手册中的关系运算符一起使用:

http://maxima.sourceforge.net/docs/manual/maxima_7.html#SEC39

(%i1) [x, y, z] : [123, 456, 789];
(%o1)                    [123, 456, 789]
(%i2) is (x < y);
(%o2)                         true
(%i3) maybe (y > z);
(%o3)                         false
(%i4) if x >= z then 1 else 0;
(%o4)                           0
(%i5) block ([S], S : 0, for i:1 while i <= 100 do S : S + i, 
             return (S));
(%o5)                         5050

甚至解决不等式:

(%i4) load(fourier_elim)$
(%i5) fourier_elim([(x+1)*(x+2)>0],[x]);
(%o5)                       [- 1 < x] or [x < - 2]

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-24
    • 1970-01-01
    • 2010-09-10
    • 2015-08-23
    • 2016-02-19
    • 1970-01-01
    相关资源
    最近更新 更多