Talk:Truth table: Difference between revisions

From Rosetta Code
Content added Content deleted
(→‎Which operators?: added a comment about the ^ operator.)
m (→‎Which operators?: expanded on my original comment.)
Line 8: Line 8:
:And, or, not as a minimum; but if the rest are just more of the same then they could be left out for brevity. --[[User:Paddy3118|Paddy3118]] 14:06, 31 October 2011 (UTC)
:And, or, not as a minimum; but if the rest are just more of the same then they could be left out for brevity. --[[User:Paddy3118|Paddy3118]] 14:06, 31 October 2011 (UTC)


:From a website I found, the ^ boolean operator is an AND, almost all examples seem to use it as a NOT (negation). This same website didn't even mention (or use) the & [and] operator. The list that I used is in the REXX example. I'll change it if the consenus say that's incorrect. I think it's better to have consistency in the coding and examples. -- [[User:Gerard Schildberger|Gerard Schildberger]] 20:16, 28 April 2012 (UTC)
:From a website I found, the ^ boolean operator is an <tt> AND </tt> and almost all examples here seem to use it as as the <tt> C OR </tt> operator). This same website didn't even mention (or use) the & [<tt> AND </tt>] operator. The list that I used is in the REXX example. I'll change it if the consenus say that's incorrect, since there seems to be a very heavy <tt> C </tt> influence in Rosetta Code. I think it may be better to have consistency in the coding and examples. -- [[User:Gerard Schildberger|Gerard Schildberger]] 20:16, 28 April 2012 (UTC)

Revision as of 20:34, 28 April 2012

Inspiration

Inspired by a mention of truth tables here (Thanks Mike), which reminded me of an old blog post of mine. --Paddy3118 07:24, 31 October 2011 (UTC)

Always glad to inspire :). --Mwn3d 13:16, 31 October 2011 (UTC)

Which operators?

Just to get ahead of a possible question, which operators should this program support? And, or, and not are pretty much locks, but do we need implication operators? Xor? --Mwn3d 13:16, 31 October 2011 (UTC)

And, or, not as a minimum; but if the rest are just more of the same then they could be left out for brevity. --Paddy3118 14:06, 31 October 2011 (UTC)
From a website I found, the ^ boolean operator is an AND and almost all examples here seem to use it as as the C OR operator). This same website didn't even mention (or use) the & [ AND ] operator. The list that I used is in the REXX example. I'll change it if the consenus say that's incorrect, since there seems to be a very heavy C influence in Rosetta Code. I think it may be better to have consistency in the coding and examples. -- Gerard Schildberger 20:16, 28 April 2012 (UTC)