flat assembler
Message board for the users of flat assembler.
Index
> Heap > Is 1 even or odd? Goto page 1, 2 Next 
Author 

typedef
Is 1 even or odd?


13 Mar 2014, 18:10 

MHajduk
typedef wrote: Is 1 even or odd? 

13 Mar 2014, 18:25 

sleepsleep


13 Mar 2014, 18:27 

baldr
typedef,
Please define «1», «even» and «odd». 

13 Mar 2014, 19:01 

sleepsleep
are integer and float is how we zoom in and zoom out inside numbers?


13 Mar 2014, 19:08 

revolution
Is pi odd or even?


13 Mar 2014, 23:56 

tthsqe
Quote:
No. Typedef, why would you ask such a trivial question? 

14 Mar 2014, 00:48 

comrade
revolution wrote: Is pi odd or even? Neither, it's an irrational number. 

14 Mar 2014, 01:46 

revolution
Is pie odd or even?


14 Mar 2014, 01:59 

baldr
revolution,
Please define «pie», «odd» and «even». 

14 Mar 2014, 03:22 

tthsqe
I found the definitive proof! http://www.wolframalpha.com/input/?i=EvenQ%5BPi%5D+%7C%7C+OddQ%5BPi%5D+
If wlofram alpha says no, the answer has got to be no. 

14 Mar 2014, 08:10 

revolution


14 Mar 2014, 08:13 

revolution
tthsqe wrote: If wlofram alpha says no, the answer has got to be no. 

14 Mar 2014, 08:15 

tthsqe
One thing of which these engines don't have a firm grasp is human language. For example:
How many numbers n are there between 1 and 1000 such that both n and n^22 are prime? Fail: http://www.wolframalpha.com/input/?i=How+many+numbers+n+are+there+between+1+and+1000+such+that+both+n+and+n%5E22+are+prime%3F I'll eat my hat if you can get an engine to parse that correctly. Where as we can get the answer easily with machine language http://www.wolframalpha.com/input/?i=Length%5BSelect%5BRange%5B1000%5D%2CPrimeQ%5B%23%5D%26%26PrimeQ%5B%23%5E22%5D%26%5D%5D 

14 Mar 2014, 08:52 

revolution
The problem is that you didn't properly specify how you wanted to interpret "between". Is that inclusively or exclusively? This is why human language is tricky to parse and interpret, because it is context sensitive and ambiguous.


14 Mar 2014, 11:52 

ManOfSteel
A number is odd when it's not even. A number is even when it can be divided evenly into groups of two and when it ends with any of these: 0, 2, 4, 6 and 8.
1 is an odd number. Also, the concept of parity only applies to integers, so asking about π doesn't even make sense. revolution wrote: Is pie odd or even? 'Pie' is neither since it's not even a number, but a type of pastry. 

14 Mar 2014, 20:56 

baldr
ManOfSteel wrote:


14 Mar 2014, 23:08 

JohnFound
ManOfSteel wrote: 'Pie' is neither since it's not even a number, but a type of pastry. If it is not even a number, it should be odd a number. Isn't it? _________________ Tox ID: 48C0321ADDB2FE5F644BB5E3D58B0D58C35E5BCBC81D7CD333633FEDF1047914A534256478D9 

14 Mar 2014, 23:58 

Tyler
baldr wrote:
Even and odd are only defined in terms of integers, with the definition being "p is even if p = 0 mod 2". Since modular arithmetic is only defined over the integers and even/odd are defined in terms of modular arithmetic, even and odd are only defined over the integers. 

17 Mar 2014, 20:08 

Goto page 1, 2 Next < Last Thread  Next Thread > 
Forum Rules:

Copyright © 19992020, Tomasz Grysztar.
Powered by rwasa.