Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 115 116 [117] 118 119 ... 173

Author Topic: Mathematics Help Thread  (Read 228533 times)

Graknorke

  • Bay Watcher
  • A bomb's a bad choice for close-range combat.
    • View Profile
Re: Mathematics Help Thread
« Reply #1740 on: February 12, 2015, 06:40:37 pm »

Is that the one where you use logarithms to get a linear graph?
Logged
Cultural status:
Depleted          ☐
Enriched          ☑

Skyrunner

  • Bay Watcher
  • ?!?!
    • View Profile
    • Portfolio
Re: Mathematics Help Thread
« Reply #1741 on: February 21, 2015, 06:02:25 am »

What does ∇ · ∇<vector u> mean? Is it the same as divergence(<vector u>)?


edit: one more, what does the big D in Du/Dt (u and t and vectors) mean?
« Last Edit: February 21, 2015, 06:06:49 am by Skyrunner »
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

da_nang

  • Bay Watcher
  • Argonian Overlord
    • View Profile
Re: Mathematics Help Thread
« Reply #1742 on: February 21, 2015, 08:08:32 am »

If ∇·∇u = 2u then it's the vector Laplacian. This is a vector and thus can't be the same as the divergence.

The D in Du/Dt is presumably a differential operator. The result in this case would be the Jabocian matrix.
Logged
"Deliver yesterday, code today, think tomorrow."
Ceterum censeo Unionem Europaeam esse delendam.
Future supplanter of humanity.

Skyrunner

  • Bay Watcher
  • ?!?!
    • View Profile
    • Portfolio
Re: Mathematics Help Thread
« Reply #1743 on: February 21, 2015, 09:08:58 am »

But what's a vector laplacian? @_@ How do you calculate del squared? Is it just the square of the partial derivative?
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 #1744 on: February 21, 2015, 11:48:47 am »

It's a scalar, the sum of all second derivatives of u to each coordinate. It's basically the divergence of the gradient of u.
Logged

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Mathematics Help Thread
« Reply #1745 on: February 23, 2015, 03:03:15 pm »

Well, I'm stumped on a little problem.

Given the equation 2n - k = 3m - j, where n,m,k,and j are all positive integers (including zero), how would you reduce the function to only being in terms of m and j? In other words, if I have some number that is in terms of powers of 3 and wanted to re-write it in terms of powers of 2, how would I go about this in a reasonable fashion, preferably in an equation format? It is guaranteed that j is not divisible by 3- it doesn't actually matter if k is not divisible by 2, though if that can also be guaranteed, that would be nice.
So given nonnegative integers m and j, you want to find nonnegative integers n and k satisfying the equation? Just set n to 0 or 1 and k to 1+j-3m or 2+j-3m depending on parity of 3m-j. This doesn't seem to be all that useful though. Do you have any more constraints on n and k?
Logged

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Mathematics Help Thread
« Reply #1746 on: February 23, 2015, 03:45:25 pm »

Okay, so you basically want the smallest power of 2 containing the number represented by m and j. May I assume that 3m is the smallest power of 3 containing said number? In this case, n is equal to m multiplied by log(3)/log(2), plus a small number between -2 and 1. So you need to choose the right n from three given values, which is not hard to do algorithmically, and algorithmically is how you need to do this conversion, I assume.
Logged

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Mathematics Help Thread
« Reply #1747 on: February 23, 2015, 04:47:29 pm »

*I'm assuming you meant "largest power of 2 that does not contain the number", since that's what you demonstrated in your example.

If that's the case, why not just find the smallest power of 2 that contains the number... and then subtract one from the power?
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

da_nang

  • Bay Watcher
  • Argonian Overlord
    • View Profile
Re: Mathematics Help Thread
« Reply #1748 on: February 23, 2015, 07:12:32 pm »

Well, I know that n>=m and k<((2^n)-(2^(n-1))).
With the variables being non-negative integers, this implies 2n-1 + 1 <=  2n - k <= 2n and n > 0.
Consequently, 2n-1 + 1 <=  3m - j <= 2n must hold for the equation to have a solution fitting said conditions.
Automatically, one can see that n >= m requires an additional constraint on j since 3m - j <= 3m and the condition requires 2n >= 3m or equivalently n >= ceil(m log2(3)).

If we were to choose n = ceil(m log2(3)), then n >= m is satisfied. No other n can be chosen since there can only exist one m such that 2n-1 <=  3m <= 2n and any other chosen n would result in k not satisfying its condition.
The former is true since otherwise there would exist an integer s > 0 such that 3m + s <= 2n or equivalently 3m <= 2n / 3s < 2n-1, which cannot happen since 3m >= 2n-1. This is also similarly true for negative s which is omitted here.
Consequently, j must have a value so that 2ceil(m log2(3))-1 + 1 <=  3m - j <= 2ceil(m log2(3)) or equivalently j < 3m - 2ceil(m log2(3)) - 1.

Hence the unique integer solution n = ceil(m log2(3)) and k = 2n - 3m + j when above conditions are met.

Do correct me if I'm wrong.
« Last Edit: February 23, 2015, 07:17:44 pm by da_nang »
Logged
"Deliver yesterday, code today, think tomorrow."
Ceterum censeo Unionem Europaeam esse delendam.
Future supplanter of humanity.

Helgoland

  • Bay Watcher
  • No man is an island.
    • View Profile
Re: Mathematics Help Thread
« Reply #1749 on: March 02, 2015, 08:45:51 pm »

Can anyone imagine what a non-finite CW complex dominated by a finite one would look like? I've been wrecking my brain for days, and I have no idea...
Logged
The Bay12 postcard club
Arguably he's already a progressive, just one in the style of an enlightened Kaiser.
I'm going to do the smart thing here and disengage. This isn't a hill I paticularly care to die on.

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Mathematics Help Thread
« Reply #1750 on: March 03, 2015, 03:59:27 am »

Can anyone imagine what a non-finite CW complex dominated by a finite one would look like? I've been wrecking my brain for days, and I have no idea...
What's the definition of "dominated" again?
Logged

Helgoland

  • Bay Watcher
  • No man is an island.
    • View Profile
Re: Mathematics Help Thread
« Reply #1751 on: March 03, 2015, 05:02:38 am »

A space X is dominated by a finite CW complex Y if there's maps f and g, X--f-->Y--g-->X with gof homotopic to the identity.
Logged
The Bay12 postcard club
Arguably he's already a progressive, just one in the style of an enlightened Kaiser.
I'm going to do the smart thing here and disengage. This isn't a hill I paticularly care to die on.

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Mathematics Help Thread
« Reply #1752 on: March 03, 2015, 05:49:53 am »

Okay, then how about this: Let X = (0,1), Y = [0,1], f : x |-> x, g : y |-> y/2.
Then Y is a finite CW complex, and X is an infinite CW complex, and g°f is homotopic to identity by homotopy H: (x, t) |-> x/(1+t).
Logged

Helgoland

  • Bay Watcher
  • No man is an island.
    • View Profile
Re: Mathematics Help Thread
« Reply #1753 on: March 03, 2015, 06:17:39 am »

Ugh, I should've mentioned: The infinite CW complex needs to not be homotopic to a finite one, of course. Else any infinite contractible space would do, yes.
Logged
The Bay12 postcard club
Arguably he's already a progressive, just one in the style of an enlightened Kaiser.
I'm going to do the smart thing here and disengage. This isn't a hill I paticularly care to die on.

ZetaX

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #1754 on: March 10, 2015, 06:06:11 am »

Can anyone imagine what a non-finite CW complex dominated by a finite one would look like? I've been wrecking my brain for days, and I have no idea...

The best I can offer is http://en.wikipedia.org/wiki/Wall%27s_finiteness_obstruction . An explicit (but probably to complicated) example is given at the very end of http://www.math.harvard.edu/~lurie/281notes/Lecture2-Wall.pdf .
Logged
Pages: 1 ... 115 116 [117] 118 119 ... 173