00001 #include "MusimatTutorial.h" 00002 MusimatTutorialSection(B0110) { 00003 Print("*** B.1.10 Relations ***"); 00004 /***************************************************************************** 00005 00006 B.1.10 Relations 00007 00008 Relational operators compare numeric values. For example, in the expression x < y, if y is greater 00009 than x, the value of the expression is True; otherwise the value of the expression is False. Other 00010 relational operations include > for greater than, <= for less than or equal, and >= for greater than 00011 or equal. 00012 00013 Because = has already been given the meaning of assignment, we must choose another way to 00014 express equality, which we do by putting two equals signs together: ==. For example, the expres- 00015 sion x == y is True if x and y have the same value. 00016 00017 Inequality is expressed by !=, so for example, x != y is True if x and y have different values. 00018 00019 *****************************************************************************/ 00020 }} 00021 00023 /* $Revision: 1.4 $ $Date: 2006/09/12 17:37:58 $ $Author: dgl $ $Name: $ $Id: _b0110_8cpp-source.html,v 1.4 2006/09/12 17:37:58 dgl Exp $ */ 00024 // The Musimat Tutorial © 2006 Gareth Loy 00025 // Derived from Chapter 9 and Appendix B of "Musimathics Vol. 1" © 2006 Gareth Loy 00026 // and published exclusively by The MIT Press. 00027 // This program is released WITHOUT ANY WARRANTY; without even the implied 00028 // warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00029 // For information on usage and redistribution, and for a DISCLAIMER OF ALL 00030 // WARRANTIES, see the file, "LICENSE.txt," in this distribution. 00031 // "Musimathics" is available here: http://mitpress.mit.edu/catalog/item/default.asp?ttype=2&tid=10916 00032 // Gareth Loy's Musimathics website: http://www.musimathics.com/ 00033 // The Musimat website: http://www.musimat.com/ 00034 // This program is released under the terms of the GNU General Public License 00035 // available here: http://www.gnu.org/licenses/gpl.txt 00036
1.4.7