<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Fun with the new Logic module</title>
	<atom:link href="http://fseoane.net/blog/2009/fun-with-the-new-logic-module/feed/" rel="self" type="application/rss+xml" />
	<link>http://fseoane.net/blog/2009/fun-with-the-new-logic-module/</link>
	<description>mostly about programming, machine learning and such</description>
	<lastBuildDate>Wed, 25 Apr 2012 21:29:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: fabian</title>
		<link>http://fseoane.net/blog/2009/fun-with-the-new-logic-module/#comment-26591</link>
		<dc:creator>fabian</dc:creator>
		<pubDate>Fri, 19 Jun 2009 10:20:31 +0000</pubDate>
		<guid isPermaLink="false">http://fseoane.net/blog/?p=145#comment-26591</guid>
		<description>Yes, that is done now</description>
		<content:encoded><![CDATA[<p>Yes, that is done now</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zeroth</title>
		<link>http://fseoane.net/blog/2009/fun-with-the-new-logic-module/#comment-26520</link>
		<dc:creator>Zeroth</dc:creator>
		<pubDate>Wed, 17 Jun 2009 14:47:34 +0000</pubDate>
		<guid isPermaLink="false">http://fseoane.net/blog/?p=145#comment-26520</guid>
		<description>Why don&#039;t you override the operators for and, or, etc, so you could use the python keywords? I believe they are here: http://docs.python.org/reference/datamodel.html#emulating-numeric-types</description>
		<content:encoded><![CDATA[<p>Why don&#8217;t you override the operators for and, or, etc, so you could use the python keywords? I believe they are here: <a href="http://docs.python.org/reference/datamodel.html#emulating-numeric-types" rel="nofollow">http://docs.python.org/reference/datamodel.html#emulating-numeric-types</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ondrej Certik</title>
		<link>http://fseoane.net/blog/2009/fun-with-the-new-logic-module/#comment-26117</link>
		<dc:creator>Ondrej Certik</dc:creator>
		<pubDate>Sun, 31 May 2009 21:37:44 +0000</pubDate>
		<guid isPermaLink="false">http://fseoane.net/blog/?p=145#comment-26117</guid>
		<description>As to overriding &#124;&#124; and &amp;&amp;, I think we should and it should be overridden in the Basic class.</description>
		<content:encoded><![CDATA[<p>As to overriding || and &amp;&amp;, I think we should and it should be overridden in the Basic class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ondrej Certik</title>
		<link>http://fseoane.net/blog/2009/fun-with-the-new-logic-module/#comment-26116</link>
		<dc:creator>Ondrej Certik</dc:creator>
		<pubDate>Sun, 31 May 2009 21:31:51 +0000</pubDate>
		<guid isPermaLink="false">http://fseoane.net/blog/?p=145#comment-26116</guid>
		<description>I got this warning:

In [7]: to_cnf(Implies(A, And(B, C)))
sympy/logic/boolalg.py:93: DeprecationWarning: object.__init__() takes no parameters
  return super(BooleanFunction, self).__init__(*args, **kwargs)
Out[7]: And(Or(B, Not(A)), Or(C, Not(A)))

otherwise it works fine, the following tests failed:

_______________ sympy/logic/tests/test_boolalg.py:test_And_bool ________________
  File &quot;/home/ondrej/repos/sympy/sympy/logic/tests/test_boolalg.py&quot;, line 14, in test_And_bool
    assert And(True,  True ) == True
AssertionError
________________________________________________________________________________
________________ sympy/logic/tests/test_boolalg.py:test_Or_bool ________________
  File &quot;/home/ondrej/repos/sympy/sympy/logic/tests/test_boolalg.py&quot;, line 19, in test_Or_bool
    assert Or(True,  True ) == True
AssertionError
________________________________________________________________________________
_______________ sympy/logic/tests/test_boolalg.py:test_Not_bool ________________
  File &quot;/home/ondrej/repos/sympy/sympy/logic/tests/test_boolalg.py&quot;, line 24, in test_Not_bool
    assert Not(True, True ) == [False, False]
AssertionError

 tests finished: 1458 passed, 4 failed, 4 skipped, 28 xfailed, 1 xpassed in 100.06 seconds 


and 5 doctests failed, just run:

$ bin/doctest
[...]
====== tests finished: 209 passed, 4 failed, 1 exceptions in 2.48 seconds ======
DO *NOT* COMMIT!</description>
		<content:encoded><![CDATA[<p>I got this warning:</p>
<p>In [7]: to_cnf(Implies(A, And(B, C)))<br />
sympy/logic/boolalg.py:93: DeprecationWarning: object.__init__() takes no parameters<br />
  return super(BooleanFunction, self).__init__(*args, **kwargs)<br />
Out[7]: And(Or(B, Not(A)), Or(C, Not(A)))</p>
<p>otherwise it works fine, the following tests failed:</p>
<p>_______________ sympy/logic/tests/test_boolalg.py:test_And_bool ________________<br />
  File &#8220;/home/ondrej/repos/sympy/sympy/logic/tests/test_boolalg.py&#8221;, line 14, in test_And_bool<br />
    assert And(True,  True ) == True<br />
AssertionError<br />
________________________________________________________________________________<br />
________________ sympy/logic/tests/test_boolalg.py:test_Or_bool ________________<br />
  File &#8220;/home/ondrej/repos/sympy/sympy/logic/tests/test_boolalg.py&#8221;, line 19, in test_Or_bool<br />
    assert Or(True,  True ) == True<br />
AssertionError<br />
________________________________________________________________________________<br />
_______________ sympy/logic/tests/test_boolalg.py:test_Not_bool ________________<br />
  File &#8220;/home/ondrej/repos/sympy/sympy/logic/tests/test_boolalg.py&#8221;, line 24, in test_Not_bool<br />
    assert Not(True, True ) == [False, False]<br />
AssertionError</p>
<p> tests finished: 1458 passed, 4 failed, 4 skipped, 28 xfailed, 1 xpassed in 100.06 seconds </p>
<p>and 5 doctests failed, just run:</p>
<p>$ bin/doctest<br />
[...]<br />
====== tests finished: 209 passed, 4 failed, 1 exceptions in 2.48 seconds ======<br />
DO *NOT* COMMIT!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

