![]() |
Freethought & Rationalism ArchiveThe archives are read only. |
|
|
#21 |
|
Contributor
Join Date: Jul 2001
Location: Deep in the heart of mother-lovin' Texas
Posts: 29,689
|
lpetrich, wouldn't that yield 11000?
|
|
|
|
|
#23 |
|
Contributor
Join Date: Jul 2001
Location: Deep in the heart of mother-lovin' Texas
Posts: 29,689
|
Think Boolean (or, rather, binary), Farren. I know what the factorial operator does.
|
|
|
|
|
#24 |
|
Veteran Member
Join Date: Nov 2001
Location: South Africa
Posts: 2,194
|
Doh! You're right, of course
|
|
|
|
|
#25 |
|
Senior Member
Join Date: Dec 2001
Location: Toronto, Ontario, Canada
Posts: 762
|
cos(0) = 1 as well.
|
|
|
|
|
#26 | |
|
Obsessed Contributor
Join Date: Sep 2000
Location: Not Mayaned
Posts: 96,752
|
Quote:
|
|
|
|
|
|
#27 | |
|
Obsessed Contributor
Join Date: Sep 2000
Location: Not Mayaned
Posts: 96,752
|
Quote:
|
|
|
|
|
|
#28 |
|
Veteran Member
Join Date: Nov 2001
Location: South Africa
Posts: 2,194
|
Loren
~0 may yield -1 in some languages, but the language is innacurate, not Ipetrichs math. In pure binary math, the truth table for ~ is A | ~A -------- 0 | 1 1 | 0 This is invariant and pure math. It is as certain as 1+1=2. The error you're making is confusing the conventions adopted by certain programming languages with pure maths. To invalidate it as a solution, you would need to invalidate +/-/Cos and just about everything else on the grounds that a system can be concieved where the result is different. For instance, + is invalid because 255 + 1 yields ERROR if the 255 is stored in a Byte variable (or zero if there is no overflow checking). This has little to do with actual math.
|
|
|
|
|
#29 |
|
Veteran Member
Join Date: Nov 2001
Location: South Africa
Posts: 2,194
|
Chopped out follow up post because I realised that its not that simple. There is a possible difficulty here, sorry, otherwise only natural positive numbers can be used.
On the other hand, since the schema can be chosen, simply stating, "using 8-bit 2's complement Integer form", perform the following operation, the operation provided by ipetrich is valid. Note: this is providing the context of the calculation, not introducing terms disallowed by the rules. Its the same as saying "that zero is not the letter O" |
|
|
|
|
#30 | |
|
Veteran Member
Join Date: Jun 2000
Location: Greensboro, NC, U.S.A.
Posts: 2,597
|
Quote:
|
|
|
|
| Thread Tools | Search this Thread |
|