2013-03-16 54 views
1

I'm新wxMaxima和無法弄清楚如何比較兩個邏輯表達式.. 例如:wxMaxima比較邏輯表達式

test1:(A and B) or C; 
test2:(A or C) and (B or C); 

is(test1=test2); 

應該

true 

但結果是

false 

我在這裏做錯了什麼?!

回答

1

您可以使用a logic algebra package

load("logic.mac"); 
test1:(A and B) or C; 
test2:(A or C) and (B or C); 
logic_equiv(test2, test1); 
(%o20)        true 
+0

,您張貼現在被打破的鏈接。有沒有更換它? – 2015-05-01 20:51:30

+0

@Anderson綠色IT是最大的一部分。安裝最新版本或 grub的從最大值源代碼中的包 http://sourceforge.net/p/maxima/code/ci/master/tree/share/logic – slitvinov 2015-05-04 20:51:27