Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: Bob

A = A + 1 is never a valid mathematical statement. Subtract A from both sides of the equation and you’re left with 0 = 1, which is never true. The single and double =’s used in certain programming languages are just syntactical operators, not mathematical statements.

The expression a = a + 1 simply instructs the microprocessor to increment some value a by 1. It does not mean that a actually equals one more than itself, which is a mathematical absurdity.


163 posted on 07/21/2017 7:15:20 AM PDT by IronJack
[ Post Reply | Private Reply | To 146 | View Replies ]


To: IronJack; C19fan

You’re right that it’s not a valid mathematical statement. In a programming class, it’s a valid assignment statement in many languages. The context was a math major in a programming class and I’m fairly certain that c19fan meant it as a joke.


191 posted on 07/21/2017 8:21:41 AM PDT by Bob (Damn, the democrats haven't been this upset since Republicans freed their slaves.)
[ Post Reply | Private Reply | To 163 | View Replies ]

To: IronJack

10 for i=1 to 10 step 1
20 x=x*i
30 print i
40 next


203 posted on 07/21/2017 9:00:09 AM PDT by Conan the Librarian (The Best in Life is to crush my enemies, see them driven before me, and the Dewey Decimal System)
[ Post Reply | Private Reply | To 163 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson