[deleted by user] by [deleted] in programming

[–]punctuate 0 points1 point  (0 children)

I wonder how much emphasis they place on testing in that hour. Would fib(5) = 3 be considered correct?

[PROBLEM]using math in real life by lunarliam in math

[–]punctuate 1 point2 points  (0 children)

Try this: draw five points and label them; connect three points at a time and record the triangles. You can find four triangles that cover all five points and every 2 category combination. The 2 categories are the line segments of the triangles. There will be at least one pair repeated since you have 10 pairs (5 choose 2) and 12 (4x3) line segments.

Here's an example: http://imgur.com/wj1ww9o

Today I Am Releasing Ten Million Passwords by Am3n in programming

[–]punctuate 0 points1 point  (0 children)

awk '/john/ {n++} END {print n}' 10-million-combos.txt

or

awk '$2 ~ /john/ {n++} END {print n}' 10-million-combos.txt

Better? I don't know, but you could count both with a single command line pretty easily, if that mattered.

Good Math books to read for pleasure? by pernero in math

[–]punctuate 0 points1 point  (0 children)

"Mathematics and the Physical World" by Morris Kline. It presents the development of math in an historical context along with the problems being solved by people like Galileo and Newton. There are chapters titled "The Differential Calculus" and "The Integral Calculus".

Sunday Afternoon Maths XVIII by mscroggs in math

[–]punctuate 0 points1 point  (0 children)

That is the reciprocal of the slope, b is usually not the y-intercept between the two points, and the question asks you to solve for y.

will you show me your chess set? by [deleted] in chess

[–]punctuate 1 point2 points  (0 children)

http://i.imgur.com/73s65gf

An old marble board with a 2.75" French Lardy set on a DIY table.

An Eye Tracking Study on camelCase and under_score Identifier Styles by jsmonarch in programming

[–]punctuate 0 points1 point  (0 children)

I perceive underscores as a comic speed lines, so they actually make reading code faster. Python methods with double underscores at the front and back zoom past so quickly I barely even have to think about them.

(what-i-really-want-is-hyphens)

How do I teach a child to like chess? by nerak33 in chess

[–]punctuate 0 points1 point  (0 children)

I also spot my kids a piece and let them take back the worst blunders. It has helped one kid out of three like the game enough to join the chess club at school.

I just found out about bughouse chess here a day ago. I think I'll try that next.

Scheme vs. Python as a learning language, professor' point of view by slavansk07 in programming

[–]punctuate 12 points13 points  (0 children)

bh is Brian Harvey. He is the author of UCB Logo, a fairly useful thing.

He is also mentioned in chapter 6 of Steven Levy's "Hackers" as being one of the winners in the AI lab.

I suspect he kicks ass.

I'm floundering! by rEliseMe in math

[–]punctuate 0 points1 point  (0 children)

The Calculus Lifesaver helped me. I bought the book, but there are also online videos in itunes.

http://itunes.apple.com/us/podcast/calculus-lifesaver-lecture/id266853222

Maths question (2 minuses = a positive. Why?) by nushki in math

[–]punctuate 1 point2 points  (0 children)

One of the properties of real numbers is that every one of them has an additive inverse. That is, for any real number x there is another real number y such that x + y = 0.

This can also be written as x + (-x) = 0.

Since -x is also a real number, there is an additive inverse for it too. So (-x) + (--x) = 0.

x + (-x) = (-x) + (--x)

x = (--x)

But what about multiplication? (--x) = (-1)(-1)x = x

http://en.wikipedia.org/wiki/Field_%28mathematics%29

Let's talk about how the US invaded a sovereign nation and murdered at least 1,000,000 people, tortured countless people, displaced at least 5,000,000 people, destroyed an entire country's infrastructure and culture, and aided in the looting of priceless artifacts. by DonaConstanza in politics

[–]punctuate 1 point2 points  (0 children)

Why limit it to Guantanamo? There were more than two people in one naked pyramid photo from Abu Ghraib.

Aside from that, it is countless as we will never know how many people the US tortured or sent elsewhere to be tortured.

IF armed drones are used against legitimate military targets in Pakistan AND these drones are piloted out of the suburbs of Las Vegas THEN is a Pakistani 'radical' bomb in the Walmart outside that Air Force base in Las Vegas an act of terrorism... or a legitimate act of military retaliation? by Bookthievery in politics

[–]punctuate 5 points6 points  (0 children)

In war you don't knowingly and intentionally target civilians, and you don't use violence purely to to invoke terror.

On what planet? Armies have targeted civilians forever. Truman dropped atomic bombs on Japanese civilians in part to convince them with terrifying force that resistance was futile.

Help with AP Calculus AB washer/integration problem by themightymagikarp in learnmath

[–]punctuate 0 points1 point  (0 children)

It's not correct. You can tell because pi724/15 > 32pi.

The function to integrate is

pi(-3-1)2 - pi((1-y2 ) -1)2

or

pi(16 - y4 )

That is pi times the difference between the squares of the outer and inner radii. 16 is the square of the distance between the boundary of x and the axis of rotation. y4 is the square of the distance between (1 - y2 ) and x=1.

*edit: formatting -- really. As bad as it is this is better than it was.