Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Huh?

Name: Anonymous 2010-04-14 10:44

Python 2.6.5
>>> i = -3
>>> i ** 0
1
>>> -3 ** 0
-1


GHCi, version 6.10.4
Prelude> let i = -3
Prelude> i ^ 0
1
Prelude> -3 ^ 0
-1

Name: Anonymous 2010-04-14 10:45

Mmm, precedence.

Name: Anonymous 2010-04-14 10:46

>>2
Explain, please.

Name: Anonymous 2010-04-14 10:49

Powers are evaluated before subtraction
so it's implicitly -(3^0) = -(1)
but substitute i and it is (-3)^0 = 1

Name: Anonymous 2010-04-14 10:49

>>3
Shit, never mind, I get it. :<

Name: Anonymous 2010-04-14 10:58

>>2,4
Don't help him!

Welcome to DrScheme, version 4.2.5 [3m].
Language: R5RS; memory limit: 1024 MB.
> (expt +i 0)
1

Name: Anonymous 2010-04-14 11:25

>>6
Yeah, no, not helping people has turned this board into a wasteland.

Name: Anonymous 2010-04-14 12:54

>>7
You've seen the power of sagebot below.

Name: Anonymous 2010-04-14 13:17

>>7
The wasteland has only really occurred in the past 12-16 months, not helping people has been going on for much longer.

Name: Anonymous 2010-04-14 15:50

>>6
DrScheme
(ㅎ_ㅎ)

Name: Anonymous 2010-04-14 15:51

>>9
So you're agreeing that the former caused the latter, yes?

Name: Anonymous 2010-04-14 16:13

>>11
If I agree to that, then I am going to have to rethink my entire system of logic.

Name: Anonymous 2010-04-14 16:37

>>6
I'll help whoever I damn well want to.

Name: Anonymous 2010-04-14 16:40

>>13
Help yourself to the door.

Name: Anonymous 2010-04-14 16:40

>>12
Don't be afraid to think the unthinkable.

In unrelated news, I just discovered you can report threads with a hotkey.

Name: Anonymous 2010-04-14 16:41

We need one constant "Post your homework and someone may help you" thread.

Name: Anonymous 2010-04-14 16:46

>>16
How does it feel to have come up with the worst idea

Name: Anonymous 2010-04-14 16:46

>>16
Or maybe just ban children--oh wait.

Can't these people just go to stackoverflow? I mean if they wouldn't touch it over there then there's no interesting topical discussion to be had about it here.

Name: Anonymous 2010-04-14 16:54

>>14
Listen here, jerkface.

Name: Anonymous 2010-04-15 7:07

bump

Name: Anonymous 2010-04-15 11:12

What's with /prog/ and it's insistence to not help people?

Name: Anonymous 2010-04-15 11:28

Name: Anonymous 2010-04-15 11:31

>>21
Many questions are just not interesting, and it's more funny to bait the questioner. A little of >>22 too.

Name: Anonymous 2010-04-15 11:42

>>21
Many questions are trivially solved by:
1. 5 minute search through Google
2. Reading the right textbook
3. Getting the right university or collage education

Too many people don't have the time for any of these, so I will not have the time for these people. Also, see >>22,23.

Name: Anonymous 2010-04-15 11:47

>>24
3. Getting the right university or collage education

Name: Anonymous 2010-04-15 11:49

>>25
Are you suggesting that collages aren't an important part of your education?

Name: Anonymous 2010-04-15 11:50

>>26
I am, actually.

Name: Anonymous 2010-04-15 11:55

>>27
Don't worry, we'll replace you with an artist soon enough.

Name: ​​​​​​​​​​ 2010-09-09 13:07

Name: Anonymous 2010-11-28 17:23

Name: Anonymous 2011-02-02 23:10

Name: Anonymous 2011-02-04 14:05

Name: Anonymous 2011-02-18 14:05

<-- check 'em
Don't change these.
Name: Email:
Entire Thread Thread List