Code: Select all

`third = ((-1**n)*1.0)/(640320**(3*n))`

All your terms would be negative because you are doing -1^n instead of (-1)^n.

Code: Select all

`third = (((-1)**n)*1.0)/(640320**(3*n))`

- Fri Dec 28, 2012 4:30 pm UTC
- Forum: Coding
- Topic: numbers too small / chudnovsky formula / python
- Replies:
**6** - Views:
**2220**

Code: Select all

`third = ((-1**n)*1.0)/(640320**(3*n))`

All your terms would be negative because you are doing -1^n instead of (-1)^n.

Code: Select all

`third = (((-1)**n)*1.0)/(640320**(3*n))`

- Tue Dec 25, 2012 3:21 pm UTC
- Forum: Logic Puzzles
- Topic: Find a power outlet in a dark room
- Replies:
**22** - Views:
**8137**

In addition to the above: **Spoiler:**

- Tue Dec 11, 2012 10:06 pm UTC
- Forum: Mathematics
- Topic: Integral of 1/x as a limit
- Replies:
**44** - Views:
**6429**

Yet you can't do the same with 1/(n+1), you can't say lim_{n->-1}C_{1}-1/(n+1) = lim_{n->-1}C_{2}, as this is what they are trying to say.

- Tue Dec 11, 2012 8:23 pm UTC
- Forum: Mathematics
- Topic: Integral of 1/x as a limit
- Replies:
**44** - Views:
**6429**

What they're saying is that we should pull a 1/(n+1) term out of one of the constants-wrt-x. I.e. split C 1 into C 3 -1/(n+1) (and then see that C 3 happens to equal C 2 ). We can't just split C 1 into C 3 -1/(n+1), as 1/(n+1) is not constant wrt n, and we are taking the limit as n approches -1. An...

- Tue Dec 11, 2012 10:55 am UTC
- Forum: Mathematics
- Topic: Integral of 1/x as a limit
- Replies:
**44** - Views:
**6429**

That wouldn't be two constants. That would be an infinity of constants on the left, and one on the right. As we're talking about integrals wrt x, by "constant" I only meant wrt x. http://mathurl.com/anbaxy6.png What you want. http://mathurl.com/czl3c2p.png If you wish to add -1/(n+1) in t...

- Tue Dec 11, 2012 10:19 am UTC
- Forum: Logic Puzzles
- Topic: Squish the bug
- Replies:
**20** - Views:
**5095**

dudiobugtron wrote:What is the integer part of 1.99999999999999..... ?

1.999... Is an integer, so its integer part is itself, thus, the integer part is 1.999...=2.

- Mon Dec 10, 2012 11:22 am UTC
- Forum: Logic Puzzles
- Topic: Video Logic Puzzle
- Replies:
**8** - Views:
**3064**

It's 0xADEADAEAFF62 = 191,224,206,786,402.

- Sat Dec 08, 2012 11:05 am UTC
- Forum: Mathematics
- Topic: Integral of 1/x as a limit
- Replies:
**44** - Views:
**6429**

If you wish to add -1/(n+1) inside the limit, then you also need to subtract it inside the limit.

That limit does not exist ( lim_{x->-1+} 1/(x+1) =\= lim_{x->-1-} 1/(x+1) ).

So I'd say no, that isn't a true statement.

That limit does not exist ( lim

So I'd say no, that isn't a true statement.

- Tue Dec 04, 2012 3:08 pm UTC
- Forum: What If?
- Topic: What-If 0023: "Short Answer Section II"
- Replies:
**80** - Views:
**20278**

Why not make the boomerang out of C4? That way you reserve aerodynamics and have a high explosive flying back at you after you throw it.

- Mon Dec 03, 2012 9:31 pm UTC
- Forum: Logic Puzzles
- Topic: What isn't the answer to this puzzle?
- Replies:
**13** - Views:
**3471**

For the sake of trying, and because HonoreDB already wrote what I wanted.

**Spoiler:**

- Sun Dec 02, 2012 7:57 pm UTC
- Forum: Mathematics
- Topic: Can this algorithm be converted into an equation?
- Replies:
**4** - Views:
**757**

In general: (a+1) choose (a) = a+1. So to simplify things: (k-b+1) choose (k-b) = k-b+1. You do need to check if k-b is non-negative, I guess.(EDIT: or not, wolfram alpha says (a choose a-1) = a for all values of a.) int b=0; while(a>k-b+1){a-=k-b+1;b++;} //this loop will terminate eventually, unles...

- Fri Nov 30, 2012 10:18 pm UTC
- Forum: General
- Topic: INTRO THREAD THE THIRD
- Replies:
**10916** - Views:
**2190801**

Hello, my name is Mor, I'm 17, almost 18, I live in Israel. I like mathematics, physics, and I like computer science even though I don't know much yet. I play Dwarf Fortress, Toribash, (a very small bit of) Minecraft, Heroes of M&M III, Golems Universal Constructor(if anyone has even heard of th...

- Fri Nov 30, 2012 10:06 pm UTC
- Forum: Mathematics
- Topic: problems for fun! Volume of a cone as a function of height
- Replies:
**33** - Views:
**3888**

It should be y=kr+kR1

Because: y=Δy+Y1, Δy = kr, Y1 = k*R1

Because: y=Δy+Y1, Δy = kr, Y1 = k*R1