<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Sun May 26, 2013 8:32 am by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Sun May 26, 2013 8:32 am</pubDate>
  <lastBuildDate>Sun May 26, 2013 8:32 am</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: Boolean logic conundrum</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109661#109661</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=3554'&gt;AndyBaxman&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Dec 10, 2012 1:02 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;purplepenguin wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;&lt;br /&gt;
I was getting all wrapped up with Boolean logic as we have just covered &amp;lt;, &amp;gt;, =, and, or and not operators the OU explained these as Boolean Logic operators. I now see the error is a mathematical one.&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Comparison operators (==, &amp;gt;, &amp;lt;, &amp;lt;=, &amp;gt;=, ===, etc, depending on language) are not boolean operators as they can take non boolean operands, but they do &lt;span style=&quot;font-style: italic&quot;&gt;always&lt;/span&gt; return a boolean result.&lt;br /&gt;
&lt;br /&gt;
Only the equality operator makes any sense with Boolean operands, and then only if you are comparing two boolean variables (i.e. not literals). (boolvar1 == boolvar2) will return true if, and only if, both variables are true or both variables are false (i.e. the same)&lt;br /&gt;
&lt;br /&gt;
Cases like (boolvar1 == true) are nonsensical  as &lt;br /&gt;
IF boolvar1 == 1 THEN .....&lt;br /&gt;
&lt;br /&gt;
is equivalent to &lt;br /&gt;
&lt;br /&gt;
IF boolvar1 THEN .....</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109661#109661</comments>
                                        <author>AndyBaxman</author>
                                        <pubDate>Mon Dec 10, 2012 1:02 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109661#109661</guid>
                                      </item>
                                      <item>
                                        <title>Re: Boolean logic conundrum</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109628#109628</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=63'&gt;guy&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Dec 05, 2012 7:58 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Well, &amp;lt; and &amp;gt; are not usually regarded as Boolean operators - especially on a beginners' course. AND, OR, NOT and so on are the usual suspects.&lt;br /&gt;
&lt;br /&gt;
However I seem to recall that some Boolean algebras incorporate them as well. I suppose that = is trivially Boolean.&lt;br /&gt;
&lt;br /&gt;
@Dutch_Master, Is logic a branch of maths or is maths a branch of logic? The answer of course depends on whether you ask a logician or a mathematician.  &lt;img src=&quot;images/smiles/icon_razz.gif&quot; alt=&quot;Razz&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109628#109628</comments>
                                        <author>guy</author>
                                        <pubDate>Wed Dec 05, 2012 7:58 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109628#109628</guid>
                                      </item>
                                      <item>
                                        <title>Re: Boolean logic conundrum</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109626#109626</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=67727'&gt;purplepenguin&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Dec 05, 2012 7:11 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi Guy&lt;br /&gt;
&lt;br /&gt;
Thank you for your explanation, just as I thought although I was starting to doubt myself and wonder if I was missing something obvious. &lt;br /&gt;
&lt;br /&gt;
I was getting all wrapped up with Boolean logic as we have just covered &amp;lt;, &amp;gt;, =, and, or and not operators the OU explained these as Boolean Logic operators. I now see the error is a mathematical one.&lt;br /&gt;
&lt;br /&gt;
I have sent an email to my tutor. I am now wondering if maybe it was intentional to see if we are paying attention.&lt;br /&gt;
&lt;br /&gt;
Thank you once again.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109626#109626</comments>
                                        <author>purplepenguin</author>
                                        <pubDate>Wed Dec 05, 2012 7:11 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109626#109626</guid>
                                      </item>
                                      <item>
                                        <title>Re: Boolean logic conundrum</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109622#109622</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=14187'&gt;Dutch_Master&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Dec 05, 2012 2:25 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      FYI: this is not Boolean, it's maths &lt;img src=&quot;images/smiles/icon_razz.gif&quot; alt=&quot;Razz&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109622#109622</comments>
                                        <author>Dutch_Master</author>
                                        <pubDate>Wed Dec 05, 2012 2:25 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109622#109622</guid>
                                      </item>
                                      <item>
                                        <title>Re: Boolean logic conundrum</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109617#109617</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=63'&gt;guy&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Dec 04, 2012 9:05 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      You are right, the logic is faulty. Worse, it is ambiguous and both interpretations are still faulty!&lt;br /&gt;
&lt;br /&gt;
If it moves when Y is &amp;quot;greater than or equal to&amp;quot; -175 then it should move until eventually Y becomes less than -175, i.e. -176. Then it should stop.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;The sprite should not exceed -175&amp;quot; is unclear, since &amp;quot;exceed&amp;quot; is not mathematically defined. However, both possible meanings are wrong.&lt;br /&gt;
If &amp;quot;exceed&amp;quot; means &amp;quot;greater than&amp;quot; as in 170 exceeds -175, then that would lead to an incorrect statement, since the starting point well exceeds the stated limit.&lt;br /&gt;
If &amp;quot;exceed&amp;quot; means &amp;quot;have greater magnitude than&amp;quot; as in -175 has greater magnitude than 170, then that would also be incorrect, since as we have seen the sprite must pass through -175 and stop at -176.&lt;br /&gt;
&lt;br /&gt;
However, the faulty logic is not Boolean, it is arithmetical.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109617#109617</comments>
                                        <author>guy</author>
                                        <pubDate>Tue Dec 04, 2012 9:05 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109617#109617</guid>
                                      </item>
                                      <item>
                                        <title>Re: Boolean logic conundrum</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109616#109616</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=3981'&gt;greg.d&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Dec 04, 2012 8:48 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      So -175 is the lowest value? I dont know what they mean by move down the stage? Maybe that means the X axis?&lt;br /&gt;
So do they mean move X by 1, and Y by -1 each time until Y=-175?</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109616#109616</comments>
                                        <author>greg.d</author>
                                        <pubDate>Tue Dec 04, 2012 8:48 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109616#109616</guid>
                                      </item>
                                      <item>
                                        <title>Boolean logic conundrum</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=109615#109615</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=67727'&gt;purplepenguin&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Dec 04, 2012 5:11 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi, I wonder if someone would be so kind as to help me out?&lt;br /&gt;
&lt;br /&gt;
I'm writing a Sense program for my HND at the OU and I'm not sure if I'm being stupid or whether I've spotted a typo. I wanted to check with people in the know before I email my tutor.&lt;br /&gt;
&lt;br /&gt;
The task tells me:&lt;br /&gt;
&lt;br /&gt;
Place the sprite at x:0 and y:170&lt;br /&gt;
So long as the y position of sprite is greater than or equals to -175 it should move down the stage in 1 step intervals.&lt;br /&gt;
&lt;br /&gt;
To my mind if the sprite's y position is equal to -175 it should continue to move and end up at -176.&lt;br /&gt;
&lt;br /&gt;
Later on i am told that the sprite should not exceed -175&lt;br /&gt;
&lt;br /&gt;
How can the sprite be equal to -175 and still move 1 place down but not exceed -175.&lt;br /&gt;
&lt;br /&gt;
Thank you for your patience</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=109615#109615</comments>
                                        <author>purplepenguin</author>
                                        <pubDate>Tue Dec 04, 2012 5:11 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=109615#109615</guid>
                                      </item></channel></rss>