## Search found 42 matches

Sat Aug 22, 2009 10:08 am UTC
Topic: 0626: "Newton and Leibniz"
Replies: 213
Views: 58597

### Re: "Newton and Leibniz" Discussion

I have been using this joke for ages.
Now if I use it with new people, they'll assume I stole it from XKCD.
My limited sense of humour is being further constricted
Fri Aug 07, 2009 5:32 pm UTC
Forum: Logic Puzzles
Topic: Prisoners' passports
Replies: 3
Views: 1439

### Re: Prisoners' passports

Puck wrote:Not this again.

(IBL)

Sorry, I tried to find it. Mainly wanted to check my analysis of the solution was correct.
What's IBL?
Fri Aug 07, 2009 5:17 pm UTC
Forum: Logic Puzzles
Topic: Prisoners' passports
Replies: 3
Views: 1439

### Prisoners' passports

Okay, I'm sorry if this has been posted before. I did look for it, but could not find it. Here's the problem: There is a room with one hundred lockers numbered one to one hundred. There are one hundred prisoners, each with a matching passport. Each of the one hundred passports are placed at random i...
Mon Oct 27, 2008 9:02 pm UTC
Forum: Mathematics
Topic: Help with calculus
Replies: 4
Views: 971

### Re: Help with calculus

I think it's asking you to sepa-grate. (move all x terms to one side, move all y terms to the other, then integrate both sides to get rid of the differential.) I have no idea if that's what it's actually asking...especially with the whole 'z' term... You had to let z = y^2, then find all derivative...
Mon Oct 27, 2008 8:39 pm UTC
Forum: Mathematics
Topic: Help with calculus
Replies: 4
Views: 971

### Re: Help with calculus

The question just wants the implicit version of y(x) not as a differential equation.
Mon Oct 27, 2008 8:21 pm UTC
Forum: Mathematics
Topic: Help with calculus
Replies: 4
Views: 971

### Help with calculus

Hi, I'm having trouble with a calculus question. It's for an assignment, and I've tried it myself for a while and have come to the conclusion I cannot see how it is done. However, I imagine for a better mathematician it should be fairly trivial. The question is: By introducing the new dependent vari...
Tue May 27, 2008 4:18 pm UTC
Forum: Logic Puzzles
Topic: One Third Bobcat
Replies: 41
Views: 9101

### Re: One Third Bobcat

the_frufru wrote:Now, I ask this question to all of my interviewees at my company.

You interview people for the position of janitor?

Seriously, though. Incredibly trivial question
Tue Apr 15, 2008 3:04 pm UTC
Forum: Coding
Topic: Help with C++ if-else statements
Replies: 8
Views: 1761

### Re: Help with C++ if-else statements

May I take this opportunity to suggest a minor modification to your code? int n; cout << "Input a number."; cin >> n; if (n % 2 == 1) { cout << "It is odd"; } else { cout << "It is even"; } If you're going to suggest adding unnecessary braces, at least chose a logical ...
Sat Apr 12, 2008 10:59 am UTC
Forum: Coding
Topic: Need help learning... let alone starting...
Replies: 7
Views: 1228

### Re: Need help learning... let alone starting...

In my opinion, Pascal is the best language to start with. It's a standard imperative high-level language, but enforces the use of entirely logical operations. It also forces you to get into a good mind set. As for things to program with Pascal, if you do some tutorials, and then try USACO training (...
Fri Apr 11, 2008 6:59 pm UTC
Forum: Coding
Topic: 3D Graphics
Replies: 15
Views: 4308

### Re: 3D Graphics

This was one book I was considering. It made it to my top 3 based on reviews and descriptions of the content of the book. However, if you would recommend it over Fundamentals of Computer Graphics or Real-time Rendering , or would recommend it would be my best bet to get it as a third book, then I'l...
Thu Apr 10, 2008 10:54 am UTC
Forum: Science
Topic: General Relativity
Replies: 23
Views: 3210

### Re: General Relativity

On a more simple note, Special relativity deals with inertial reference frames (no acceleration, what you are doing) whereas general relativity deals with accelerated reference frames (which is the same as a gravitational field). Apparently GR contains SR (I didn't know this) but it seems that SR w...
Thu Apr 10, 2008 7:07 am UTC
Forum: Science
Topic: General Relativity
Replies: 23
Views: 3210

### Re: General Relativity

On a more simple note, Special relativity deals with inertial reference frames (no acceleration, what you are doing) whereas general relativity deals with accelerated reference frames (which is the same as a gravitational field). Apparently GR contains SR (I didn't know this) but it seems that SR w...
Wed Apr 09, 2008 9:39 pm UTC
Forum: Science
Topic: General Relativity
Replies: 23
Views: 3210

### Re: General Relativity

You are right in that General relativity encapsulates special relativity, but he is right in that the equation you're looking for is from special relativity. You wouldn't say that, F=ma is an equation from special relativity, would you? But, honestly, who cares what you call it? Well, it doesn't re...
Wed Apr 09, 2008 9:25 pm UTC
Forum: Science
Topic: General Relativity
Replies: 23
Views: 3210

### General Relativity

I'm not a physicist, so please don't be mad at me if this question is poorly worded or in and of itself stupid. My question probably doesn't require a thorough grasp of precisely what General Relativity is, so I imagine any physicist worth his salt could answer it. Anyway, my question is thus: Does ...
Mon Mar 31, 2008 11:46 am UTC
Forum: Coding
Topic: 3D Graphics
Replies: 15
Views: 4308

### Re: 3D Graphics

I don't think that's what he's asking: since he mentioned writing an OS, I think he means he wants to develop his own graphics system, from scratch. That's a herculean task that would probably take most programmers well over 3 months to do, but if he can get it done (or even well on it's way), more...
Sun Mar 30, 2008 11:51 pm UTC
Forum: Coding
Topic: 3D Graphics
Replies: 15
Views: 4308

### 3D Graphics

I have a three month period in which I won't be doing anything, so what I want to do is to write my own 3D graphics engine (and an operating system (very stripped down, of course!) for an old computer, but that's beside the point). Fortunately, I have recently done well in a contest and gained a bud...
Mon Mar 24, 2008 11:49 am UTC
Topic: 0400: "Important Life Lesson"
Replies: 242
Views: 50803

### Re: "Important Life Lesson" Discussion

Greensleeves was probably the weirdest song to come on for me...
Mon Mar 10, 2008 11:34 pm UTC
Forum: Logic Puzzles
Topic: Puzzle for exceptional intelligence
Replies: 21
Views: 5100

### Re: Puzzle for exceptional intelligence

How is that for exceptional intelligence? I know that I'm far from exceptionally intelligent and I got it...
Mon Mar 10, 2008 4:46 pm UTC
Topic: 0394: "Kilobyte"
Replies: 138
Views: 40624

### Re: "Kilobyte" Discussion

Linux0s wrote:The FPU Intel kb is funny because it's true.

Blatantly not.

Assuming just a 16-bit normalised signed floating point number with 8-bits each for the exponent and the mantissa you can represent 1024 exactly.

i.e:

0100 0000 0000 1011

= 0.12 * 10210112
= 10,000,000,0002
= 102410
Wed Feb 20, 2008 1:45 pm UTC
Forum: Logic Puzzles
Topic: I dare you to solve this.
Replies: 82
Views: 35781

### Re: I dare you to solve this.

I hate these. I wrote a quick program to solve one of these a while ago, it had 30 questions. Do people consider that to be cheating? (It took five minutes as opposed to thirty minutes doing it with a program )
Thu Jan 03, 2008 3:45 am UTC
Forum: Logic Puzzles
Topic: The Sorting Game
Replies: 3
Views: 2078

### Re: The Sorting Game

Spoiler:

Spoiler:
Edit: scratch that... I was thinking of a deterministic strategy before I read that your strategy was known
Mon Dec 24, 2007 4:19 am UTC
Forum: Religious Wars
Topic: Rename Quicksort!
Replies: 30
Views: 9865

### Rename Quicksort!

My justification for this wanting to rename quicksort is quite simple. Whilst thinking about sorting lists quickly, and remembering a piece of code I'd written a little while ago, I thought, "Ah ha! I can reduce the time of my sort by pretending that I am working on a binary tree but have lost ...
Mon Dec 24, 2007 4:11 am UTC
Forum: Religious Wars
Topic: Recursion
Replies: 123
Views: 22626

### Re: Beginning in Computer Science

Honestly, though, how many times have any of you here actually written a recursive function in the wild? Most of the time it's a better idea to write it iteratively simply because it takes up less space and is more straightforward. Don't get me wrong, every programmer worth his salt should understa...
Thu Dec 20, 2007 12:24 am UTC
Forum: Religious Wars
Topic: Coding vs. Sex
Replies: 111
Views: 27921

### Re: Coding vs. Sex

I disagre with your sign. Pi in base Pi is 1. 2 in Base 2 (Binary) is 10. 8 in Base 8 (Octal) is 10. 10 in Base 10 (Decimal) is 10. 16 in Base 16 (Hexadecimal) is 10. Seeing a pattern? Pi in Base Pi is 10. 1 would be 1. I disagree with it on the grounds that a base of anything other than a natural ...
Sat Dec 08, 2007 11:28 pm UTC
Forum: Logic Puzzles
Topic: Small values of 20
Replies: 42
Views: 5627

### Re: Small values of 20

Hangar wrote:
Spoiler:
Aww, I thought you were going for little-endian.

Spoiler:
In little endian, 20 > 10.
That would correspond to 2 > 1.
Thu Dec 06, 2007 6:08 pm UTC
Forum: Logic Puzzles
Topic: Small values of 20
Replies: 42
Views: 5627

### Re: Small values of 20

I have been extremely, inexcusably stupid. It turns out that what I thought was the solution is, in fact, not really a solution at all. Sorry for wasting your time. (Not a) solution: I was thinking of base i. 10 and 20 wouldn't exist in base i. In base i, numbers would be expressed as unary coe...
Thu Dec 06, 2007 1:23 pm UTC
Forum: Religious Wars
Replies: 48
Views: 11278

# TITLE: Approximate Fraction # AUTHOR: Karl Ove Hufthammer # EMAIL: huftis@bigfoot.com # WEB: ? # DATE: ? # MAKE: CASIO # MODEL: 9850 # NOTES: # # Just type in a number, and press EXE until you get a accurate enough # fraction. It's useful with repeating decimal numbers (like 2,715151515.....
Thu Dec 06, 2007 1:02 pm UTC
Forum: Religious Wars
Topic: Coding vs. Sex
Replies: 111
Views: 27921

### Re: Coding vs. Sex

Yeah... who's gonna have sex with a lousy programmer? :twisted: I would. Well, one in particular - my bf. However, he would much prefer to code... *sigh* Maybe he'd be more willing to have sex with you if you didn't go bad mouthing him on the internet to strangers? I'd be more inclined to code than...
Thu Dec 06, 2007 12:58 pm UTC
Forum: Religious Wars
Topic: Underscores vs CamelCase
Replies: 108
Views: 94032

### Re: Underscores vs CamelCase

I find CamelCase is much easier on the eyes. However, this is just down to my personal experience. I think on the plus side it does make you use case consistently, as opposed to a lot of people using inconsistent capitals. Perosnally, if I read something with underscores, I mentally pause in between...
Thu Dec 06, 2007 10:16 am UTC
Forum: Logic Puzzles
Topic: Small values of 20
Replies: 42
Views: 5627

### Re: Small values of 20

Surely if they are in the same base, and the bass is not negative, then 10 is always < 20. Given that for a base: "Tens column" : a^1 "Units column" : a^0 10 = 1*a[sup]1[/sup] + 0*a[sup]0[/sup] = a 20 = 2*a[sup]1[/sup] + 0*a[sup]0[/sup] = 2a Given that a is positive, 2 > 1 therf...
Tue Dec 04, 2007 1:16 pm UTC
Forum: Religious Wars
Replies: 48
Views: 11278

I've never written a program in a team, so have never gotten into commenting. That said, when I use Pascal I write comments of this form: if condition then statement {end if}; I tend to forget exactly what my own code does after a few days if I don't comment it at least a bit... I prefer not to com...
Mon Dec 03, 2007 5:53 pm UTC
Forum: Religious Wars
Topic: Coding vs. Sex
Replies: 111
Views: 27921

### Re: Coding vs. Sex

I prefer coding, as I'm actually good at it.
Mon Dec 03, 2007 2:00 am UTC
Forum: Religious Wars
Replies: 48
Views: 11278

I've never written a program in a team, so have never gotten into commenting.
That said, when I use Pascal I write comments of this form:

Code: Select all

`if conditionthen  statement{end if};`
Mon Dec 03, 2007 1:47 am UTC
Forum: Religious Wars
Topic: QWERTY versus Dvorak
Replies: 166
Views: 87630

### Re: QWERTY versus Dvorak

Dvorak users are delusional if they think their keyboard actually types faster. There's no evidence, and the fact that the top typists in the world tend to be Dvorak users can easily be explained by the myth itself, people who type fast want to type fast, and if they think that Dvorak will help the...
Sat Dec 01, 2007 1:05 am UTC
Forum: Logic Puzzles
Topic: Nice Maths Puzzle
Replies: 7
Views: 2388

### Nice Maths Puzzle

Evaluate the following efficiently and without the use of a calculator: (1 4 + 2007 4 + 2008 4 )/(1 2 + 2007 2 + 2008 2 ) I'd be interested to see different methods. Though, I am pleased with the method I came up with. My solution: (1 4 + 2007 4 + 2008 4 )/(1 2 + 2007 2 + 2008 2 ) Ex...
Mon Nov 26, 2007 9:22 pm UTC
Forum: Logic Puzzles
Topic: Left/Right
Replies: 38
Views: 4271

### Re: Left/Right

One of the things which is sent into space is the order of bases in human DNA. All you then need to do is say the heart is on the left side of the body :D Are you saying they would clone a human based on us sending them the genome? Assuming they could do that, I think which side the heart was on wo...
Mon Nov 26, 2007 8:49 pm UTC
Forum: Logic Puzzles
Topic: Left/Right
Replies: 38
Views: 4271

### Re: Left/Right

One of the things which is sent into space is the order of bases in human DNA. All you then need to do is say the heart is on the left side of the body
Mon Nov 26, 2007 3:45 pm UTC
Forum: Logic Puzzles
Topic: A Roulette Challenge
Replies: 21
Views: 2911

### Re: A Roulette Challenge

The probability of a 0 occuring on any particular roll is 1/37. Therefore, the odds of not getting a 0 is 36/37 {1 - 1/37}. Given that each event is independent, the probability of receiving a win for a bet on the nth spin is (1/37)*(36/37)^(n-1). Obviously, given that n is ...
Sun Nov 25, 2007 11:51 am UTC
Forum: Logic Puzzles
Topic: Money and fruit
Replies: 27
Views: 3164

### Re: Money and fruit

Since the first statement is false, the second statement is necessarily false. As to the first question, You've made \$10, which would clearly be inferior to taking the second gentleman's offer and saying something like "this statement is true" (which would give you \$15). T...
Sun Nov 25, 2007 11:43 am UTC
Forum: Logic Puzzles
Topic: Clocks
Replies: 25
Views: 3894

### Re: Clocks

Spoiler:
With only the information you have provided, in such a simple form, I would have said all times of the day are equally likely.

However, if you knew some kind of distribution describing how far it is likely for the clocks to be out by, then you could calculate an answer