Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 68 69 [70] 71 72 ... 173

Author Topic: Mathematics Help Thread  (Read 228904 times)

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Mathematics Help Thread
« Reply #1035 on: June 26, 2013, 08:34:43 pm »

Try f(x) = 1 + floor(1/2 + sqrt(2*x)). Then f(1) = 2, f(2) = 3, etc...
Logged

da_nang

  • Bay Watcher
  • Argonian Overlord
    • View Profile
Re: Mathematics Help Thread
« Reply #1036 on: June 27, 2013, 01:46:29 am »

"W(z) is the Lambert W function"

...what is the Lambert W function?
Lambert W function is a multivalued, nonelementary function (curve is more correct if including all real-valued branches) that is the solution to the equation a = beb where b = W(a).

http://en.wikipedia.org/wiki/Lambert_W

It's not something I'd expect one to come across at any education lower than university.
Logged
"Deliver yesterday, code today, think tomorrow."
Ceterum censeo Unionem Europaeam esse delendam.
Future supplanter of humanity.

ZetaX

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #1037 on: June 27, 2013, 07:27:48 am »

Is there a formula where I pop in n and it pops out the term I want.
From a mathematical perspective, this is a very unsatisfying definition. You need to specify the meaning of "formula", as shown by this valid (¿) solution:
a_0=2*sup_{zeta(s)=0} Re(s), a_{n+1} = a_n+[2n=x^2+x has a solution x \in \IZ]
Logged

Skyrunner

  • Bay Watcher
  • ?!?!
    • View Profile
    • Portfolio
Re: Mathematics Help Thread
« Reply #1038 on: June 27, 2013, 07:34:22 am »

Well, from a linguistic perspective, it's a pretty clear request :P f(n) = something, substitute for n and get a result? o_O

In this case, n is the n'th term in the series.
Logged

bay12 lower boards IRC:irc.darkmyst.org @ #bay12lb
"Oh, they never lie. They dissemble, evade, prevaricate, confoud, confuse, distract, obscure, subtly misrepresent and willfully misunderstand with what often appears to be a positively gleeful relish ... but they never lie" -- Look To Windward

ZetaX

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #1039 on: June 27, 2013, 07:52:08 am »

If you really want to, you could also expand that recursion into a sum. So what makes it not satisfactory¿  :P
Logged

Owlbread

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #1040 on: June 27, 2013, 08:50:09 am »

I've got a problem that's been bugging me for months, I just haven't tried to work it out.

I have a cube. I stack 5 cubes on top of that cube in the shape of a cross. On top of those cubes I stack another 13 in the shape of a square with single cubes protruding above the points of the cross below. That pattern continues until I reach an indeterminate number (say 25 cubes) up in a straight line from the bottom cube. The pattern then reverses, creating a strange plumbob like shape made entirely of solid cubes.

At the centre of this plumbob will be enough space to create a large empty cube or "room". How do I calculate the length and height of one of the inner cube's walls, as if I was looking at them? The size would be cubes.

I've also got another question - how do I calculate the number of cubes I'd need to create the whole plumbob if I only know the length and height of one of the inner walls?
« Last Edit: June 27, 2013, 08:56:18 am by Owlbread »
Logged

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Mathematics Help Thread
« Reply #1041 on: June 27, 2013, 09:52:17 am »

I've got a problem that's been bugging me for months, I just haven't tried to work it out.

I have a cube. I stack 5 cubes on top of that cube in the shape of a cross. On top of those cubes I stack another 13 in the shape of a square with single cubes protruding above the points of the cross below. That pattern continues until I reach an indeterminate number (say 25 cubes) up in a straight line from the bottom cube. The pattern then reverses, creating a strange plumbob like shape made entirely of solid cubes.

At the centre of this plumbob will be enough space to create a large empty cube or "room". How do I calculate the length and height of one of the inner cube's walls, as if I was looking at them? The size would be cubes.

I've also got another question - how do I calculate the number of cubes I'd need to create the whole plumbob if I only know the length and height of one of the inner walls?
Let's say the small cubes have length 1, and the center cube is axis-aligned and placed at (0, 0, 0). Then there is a cube at any (x, y, z) exactly when |x| + |y| + |z| < 25. You basically get a voxelated octahedron.
Now let's imagine any axis-aligned cuboid with integer sidelengths (l, w, h) measured in small cubes. This cuboid fits into your shape exactly when |l| + |w| + |h| < 52, which means that the largest axis-aligned cube fitting into your plumbob has a side length of 17 cubelets.

About the other question: The volume of a plumbob with 2n-1 cubes diameter is (4n³-6n²+8n-3)/3.
Logged

Skyrunner

  • Bay Watcher
  • ?!?!
    • View Profile
    • Portfolio
Re: Mathematics Help Thread
« Reply #1042 on: June 27, 2013, 10:01:33 am »

Can I do the question thing too? :D
I'm fairly sure this has already been asked, but what is the area of the largest equilateral triangle that can fit into a square which has sides of length n? And how would the triangle be placed? O_o
Logged

bay12 lower boards IRC:irc.darkmyst.org @ #bay12lb
"Oh, they never lie. They dissemble, evade, prevaricate, confoud, confuse, distract, obscure, subtly misrepresent and willfully misunderstand with what often appears to be a positively gleeful relish ... but they never lie" -- Look To Windward

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Mathematics Help Thread
« Reply #1043 on: June 27, 2013, 10:20:26 am »

Can I do the question thing too? :D
I'm fairly sure this has already been asked, but what is the area of the largest equilateral triangle that can fit into a square which has sides of length n? And how would the triangle be placed? O_o
Spoiler: Here it is (click to show/hide)
The really acute angle on the bottom left is 15°, therefore the side length s is n*sec(15°) = n*(sqrt(6)-sqrt(2)) and the area is s²(sqrt(3)/4) = n²(sqrt(12)-3).
Logged

Virex

  • Bay Watcher
  • Subjects interest attracted. Annalyses pending...
    • View Profile
Re: Mathematics Help Thread
« Reply #1044 on: June 27, 2013, 10:24:49 am »

Cool, but can you also prove that is the biggest triangle you can fit in there?


Edit: An answer of my own


Let the square be oriented so that one edge is along x and the other along y with x and y unit vectors.


Let the triangle consists of points A, B and C, and therefor of sides AB, AC and BC

Observe that if a triangle does not have all it's corners on the edges of the square, it is possible to translate and rotate the triangle so that only 1 corner is on an edge and then expand the edges of the triangle until one other point ends up on an edge of the square. Repeating this, one eventually ends up with all 3 corners on the square's edges (messy, this may need better proof)


We are then looking for a triangle with a projection along x equal to n and a projection along the y axis equal to n.

Observe that if there is no corner on the side of the square oriented along y, it is possible to rotate the square so that there is a corner on that side. Therefor we can start with point A on the side oriented along y.

We now define AB as starting on A and being at an angle t with x. This means that AC starts at A and is at an angle t+60 with x.

The projection of AB along x is |AB| cos t and it's projection along y is |AB| sin t. Likewise, the projections of AC are |AC| cos t+60 and |AC| sin t+60

Since the triangle is equilateral, |AB| = |AC| = s

Since all three corners of the triangle are on the square's edges, the projection of AB or AC on x must be n. The same holds for the projection on y. (remember we can always reorient and relable the triangle to turn BC[\i] int AB[\i] or AC[\i], so we do not consider it here)

s cos t > s cos t+60 and s sin t < s sin t+60, so

s cos t = n = s sin t+60

cos t = sin t+60

Since 0 <= t <= 90, t = 15 degrees

Now, since the projections of AB and AC are n, A must be at a corner of the square, but also at |x| = 0. Additionally, since we defined t to be positive, this must be the lower corner, meaning that A must be on the origin.
« Last Edit: June 27, 2013, 11:42:03 am by Virex »
Logged

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Mathematics Help Thread
« Reply #1045 on: June 27, 2013, 10:57:31 am »

Cool, but can you also prove that is the biggest triangle you can fit in there?
Sure I can, watch me.

Let there be a triangle inside a square. We can move this triangle around inside the square until one corner of the triangle is inside a corner of the square. Let A be this corner, and let ABCD be the square and AQR be the triangle, and let AQ'R' be the triangle in my previous post.

Spoiler: Diagram (click to show/hide)

Now either AQ is in ABQ' or AR is in AR'D, which means that either |AQ| <= |AQ'| or |AR| <= |AR'|, which means that AQR cannot be greater than AQ'R', and since AQR was chosen arbitrarily (save for translation), AQ'R' is maximal.
« Last Edit: June 27, 2013, 10:59:09 am by MagmaMcFry »
Logged

Another

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #1046 on: June 27, 2013, 06:07:01 pm »

A very informal take on this is that the maximal triangle should not be able to move inside the square and for it to not be able to move it has to touch all 4 sides of the square and that is only possible if one of the corners of the triangle is touching 2 sides i.e. is in a corner of the square and the other 2 sides are touching the rest sides which can only happen symmetrically.
Logged

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Mathematics Help Thread
« Reply #1047 on: June 27, 2013, 06:25:13 pm »

A very informal take on this is that the maximal triangle should not be able to move inside the square and for it to not be able to move it has to touch all 4 sides of the square and that is only possible if one of the corners of the triangle is touching 2 sides i.e. is in a corner of the square and the other 2 sides are touching the rest sides which can only happen symmetrically.
Actually the not-being-able-to-move is neither required nor sufficient for the maximality of a shape inside another. Examples: If you put an axis-aligned X pentomino into a square, you can't move it, but it would fit better diagonally; on the other hand, a maximal 3:4 rectangle has room to slide in the square.
Logged

Another

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #1048 on: June 27, 2013, 06:49:23 pm »

To slide, but not to rotate. And we are not talking about circles - they are a special case.

Is there a case when 1 non-circle figure inside another non-circle figure is maximal but can rotate?
Logged

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Mathematics Help Thread
« Reply #1049 on: June 27, 2013, 06:51:29 pm »

There are lots.
Logged
Pages: 1 ... 68 69 [70] 71 72 ... 173