Dominion Strategy Forum

Please login or register.

Login with username, password and session length
Pages: 1 ... 95 96 [97] 98 99 ... 123  All

Author Topic: Random Stuff Part III  (Read 242639 times)

0 Members and 1 Guest are viewing this topic.

Witherweaver

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 6460
  • Shuffle iT Username: Witherweaver
  • Respect: +7817
    • View Profile
Re: Random Stuff Part III
« Reply #2400 on: March 04, 2017, 07:34:48 pm »
+9

Logged

silverspawn

  • Governor
  • *****
  • Online Online
  • Posts: 4095
  • Shuffle iT Username: sty.silver
  • ♦ Twilight ♦
  • Respect: +1814
    • View Profile
Re: Random Stuff Part III
« Reply #2401 on: March 12, 2017, 01:23:40 pm »
+6

I love how, after the 20th egg, the day care man still goes "We don't know how it got there, but your pokemon had it." Such innocence.
Logged

Kuildeous

  • Cartographer
  • *****
  • Offline Offline
  • Posts: 3733
  • Respect: +2142
    • View Profile
Re: Random Stuff Part III
« Reply #2402 on: March 21, 2017, 11:42:19 am »
0

Man, I've been hanging out on the forums for a new RPG launch and engaging with others regarding the previews.

I volunteered to run a demo of it, so now I have a draft of the rules. Naturally I'm under an NDA.

But now I have to be extremely careful when posting on those forums because I have materials not released in the previews. I have to go back through previous posts to make sure what I want to talk about has already been disclosed.

Damn you, curse of knowledge!
Logged
A man has no signature

pacovf

  • Cartographer
  • *****
  • Offline Offline
  • Posts: 3359
  • Multiediting poster
  • Respect: +3695
    • View Profile
Re: Random Stuff Part III
« Reply #2403 on: March 21, 2017, 11:44:57 am »
+1

I believe the brag board is this way. :P
Logged
pacovf has a neopets account.  It has 999 hours logged.  All his neopets are named "Jessica".  I guess that must be his ex.

pingpongsam

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1743
  • Shuffle iT Username: pingpongsam
  • Respect: +767
    • View Profile
Re: Random Stuff Part III
« Reply #2404 on: March 21, 2017, 12:09:58 pm »
+2

Logged
You are the brashest scum player on f.ds.

silverspawn

  • Governor
  • *****
  • Online Online
  • Posts: 4095
  • Shuffle iT Username: sty.silver
  • ♦ Twilight ♦
  • Respect: +1814
    • View Profile
Re: Random Stuff Part III
« Reply #2405 on: March 21, 2017, 01:19:00 pm »
0

Does sin(x) (with some parameters) describe water waves exactly, or does it just look kind of similar because they're both round and go up and down?

I can't find an answer to this simple question through google!
Logged

Awaclus

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 10885
  • Shuffle iT Username: Awaclus
  • (。 ω 。`)
  • Respect: +11514
    • View Profile
Re: Random Stuff Part III
« Reply #2406 on: March 21, 2017, 01:36:11 pm »
0

Does sin(x) (with some parameters) describe water waves exactly, or does it just look kind of similar because they're both round and go up and down?

I can't find an answer to this simple question through google!

The shape of water waves depends on a lot of factors, such as wind and the shape of the container which contains the water. I'm not sure if sin(x) can be a close approximation in some cases, though.
Logged
Bomb, Cannon, and many of the Gunpowder cards can strongly effect gameplay, particularly in a destructive way

The Twitch channel where I stream DominionThe YouTube channel where I make musicDownload my band's albums for free

pingpongsam

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1743
  • Shuffle iT Username: pingpongsam
  • Respect: +767
    • View Profile
Re: Random Stuff Part III
« Reply #2407 on: March 21, 2017, 01:41:12 pm »
0

var total = 0;
var i = 0;
var startAge = 13;
var endAge = 39;
var diff = endAge-startAge;;
var compAge = startAge;

while (i <= diff) {
total = total + compAge
compAge++
i++}
Logged
You are the brashest scum player on f.ds.

pacovf

  • Cartographer
  • *****
  • Offline Offline
  • Posts: 3359
  • Multiediting poster
  • Respect: +3695
    • View Profile
Re: Random Stuff Part III
« Reply #2408 on: March 21, 2017, 02:08:19 pm »
+2

What language is that?

total = (EndAge+StartAge)*(EndAge-StartAge+1)/2, for what it's worth. No idea why you are computing that though.
Logged
pacovf has a neopets account.  It has 999 hours logged.  All his neopets are named "Jessica".  I guess that must be his ex.

pingpongsam

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1743
  • Shuffle iT Username: pingpongsam
  • Respect: +767
    • View Profile
Re: Random Stuff Part III
« Reply #2409 on: March 21, 2017, 02:18:58 pm »
+1

Probably some hodgepodge of javascript and php.

On my 13th birthday my father gave me 13 one dollar bills. On my 14th birthday my father gave me 14 one dollar bills. And so it goes. Laying in bed last night I was trying to figure a formula for solving how many total dollars I have netted at my next birthday.

I can't formula but I can program a bit. The fun part is plugging in different ages.

Turns out I will have to get to 1414 years of age in order to break the million dollar mark.

Was curious if there was an efficient means to type in an end amount and determine the number of years required to meet or exceed that amount.
Logged
You are the brashest scum player on f.ds.

pingpongsam

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1743
  • Shuffle iT Username: pingpongsam
  • Respect: +767
    • View Profile
Re: Random Stuff Part III
« Reply #2410 on: March 21, 2017, 02:21:28 pm »
0

What language is that?

total = (EndAge+StartAge)*(EndAge-StartAge+1)/2, for what it's worth. No idea why you are computing that though.

formula checks out.
Logged
You are the brashest scum player on f.ds.

Kuildeous

  • Cartographer
  • *****
  • Offline Offline
  • Posts: 3733
  • Respect: +2142
    • View Profile
Re: Random Stuff Part III
« Reply #2411 on: March 21, 2017, 02:22:34 pm »
0

Somehow I had never heard this joke before.

What is the integral of 1/cabin dcabin?
Logged
A man has no signature

Witherweaver

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 6460
  • Shuffle iT Username: Witherweaver
  • Respect: +7817
    • View Profile
Re: Random Stuff Part III
« Reply #2412 on: March 21, 2017, 02:23:38 pm »
0

Somehow I had never heard this joke before.

What is the integral of 1/cabin dcabin?

... log cabin
Logged

theorel

  • Salvager
  • ****
  • Offline Offline
  • Posts: 66
  • Shuffle iT Username: theorel
  • Respect: +34
    • View Profile
Re: Random Stuff Part III
« Reply #2413 on: March 21, 2017, 02:27:34 pm »
+3

you forgot the constant...
it's a (natural) log cabin by the sea!
Logged

Witherweaver

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 6460
  • Shuffle iT Username: Witherweaver
  • Respect: +7817
    • View Profile
Re: Random Stuff Part III
« Reply #2414 on: March 21, 2017, 02:32:52 pm »
+1

you forgot the constant...
it's a (natural) log cabin by the sea!

You mean I chose a constant.
Logged

SpaceAnemone

  • Spy
  • ****
  • Offline Offline
  • Posts: 86
  • Shuffle iT Username: SpaceAnemone
  • Correct Horse Battery Staple
  • Respect: +26
    • View Profile
Re: Random Stuff Part III
« Reply #2415 on: March 21, 2017, 02:42:09 pm »
0

Does sin(x) (with some parameters) describe water waves exactly, or does it just look kind of similar because they're both round and go up and down?

I can't find an answer to this simple question through google!

Have you ever come across Fourier decomposition? :-) I think I'd expect standing waves in 1D to be more or less sinusoidal, but I'm pretty sure you could generate other shapes of wave given an appropriate driving function. Obviously there's room for some error caused by friction and fluid viscosity and stuff. I managed to avoid having to study fluid dynamics as part of my engineering degree, though...
Logged
Congratulations! Your SpaceAnemone evolved into UniverseAnemone!
Town games: M84(L), M85(W), M86(L), M87(W), M88(L), M90(L), M92(W), M94(L), M97(L), M99(W), M100(L), M104(W), M107(W), M110(L), M112(L), RMM37(L), RMM40(D), RMM41(L), RMM43(L), RMM47(W), ZM23(W).
Scum games: M89(D), M108(L), NM8(W&MVP), NM10(L)   Mod: NM9, RMM38, RMM42.   Pronouns: they/them

Kuildeous

  • Cartographer
  • *****
  • Offline Offline
  • Posts: 3733
  • Respect: +2142
    • View Profile
Re: Random Stuff Part III
« Reply #2416 on: March 21, 2017, 03:05:04 pm »
0

you forgot the constant...
it's a (natural) log cabin by the sea!

Or a houseboat, though I like Witherweaver choosing the constant. I'm going to use that on the person who snagged me with that joke.
Logged
A man has no signature

SpaceAnemone

  • Spy
  • ****
  • Offline Offline
  • Posts: 86
  • Shuffle iT Username: SpaceAnemone
  • Correct Horse Battery Staple
  • Respect: +26
    • View Profile
Re: Random Stuff Part III
« Reply #2417 on: March 21, 2017, 03:06:25 pm »
+2

What language is that?

total = (EndAge+StartAge)*(EndAge-StartAge+1)/2, for what it's worth. No idea why you are computing that though.

formula checks out.

If you want a direct formula, try: EndAge = -0.5+sqrt(2)*sqrt(66.125+TotalMoney)

The two things you need to know to derive that are just:
1) The sum of a set of numbers from 1 to N inclusive is 0.5*N*(N+1);
2) The Quadratic Formula.
(And then just a bit of rearranging to tidy it up).
Logged
Congratulations! Your SpaceAnemone evolved into UniverseAnemone!
Town games: M84(L), M85(W), M86(L), M87(W), M88(L), M90(L), M92(W), M94(L), M97(L), M99(W), M100(L), M104(W), M107(W), M110(L), M112(L), RMM37(L), RMM40(D), RMM41(L), RMM43(L), RMM47(W), ZM23(W).
Scum games: M89(D), M108(L), NM8(W&MVP), NM10(L)   Mod: NM9, RMM38, RMM42.   Pronouns: they/them

pingpongsam

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1743
  • Shuffle iT Username: pingpongsam
  • Respect: +767
    • View Profile
Re: Random Stuff Part III
« Reply #2418 on: March 21, 2017, 03:27:11 pm »
0

You math people are so cute. It's why I stay here.
Logged
You are the brashest scum player on f.ds.

SpaceAnemone

  • Spy
  • ****
  • Offline Offline
  • Posts: 86
  • Shuffle iT Username: SpaceAnemone
  • Correct Horse Battery Staple
  • Respect: +26
    • View Profile
Re: Random Stuff Part III
« Reply #2419 on: March 21, 2017, 04:19:41 pm »
0

You math people are so cute. It's why I stay here.

Sometimes I have to pretend to be a normal human female person. Talk about scary!

What do you do for a living outside in the real world if you can get by without maths?
Logged
Congratulations! Your SpaceAnemone evolved into UniverseAnemone!
Town games: M84(L), M85(W), M86(L), M87(W), M88(L), M90(L), M92(W), M94(L), M97(L), M99(W), M100(L), M104(W), M107(W), M110(L), M112(L), RMM37(L), RMM40(D), RMM41(L), RMM43(L), RMM47(W), ZM23(W).
Scum games: M89(D), M108(L), NM8(W&MVP), NM10(L)   Mod: NM9, RMM38, RMM42.   Pronouns: they/them

jonts26

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2732
  • Shuffle iT Username: jonts
  • Respect: +3622
    • View Profile
Re: Random Stuff Part III
« Reply #2420 on: March 21, 2017, 04:43:05 pm »
0

Does sin(x) (with some parameters) describe water waves exactly, or does it just look kind of similar because they're both round and go up and down?

I can't find an answer to this simple question through google!

I'm afraid this question is far from simple. What sort of waves in particular are you interested in? I'm guessing surface waves? Like a pebble in a lake or more like wind generated waves? I can probably dig up an old textbook on the subject later, but I'm expecting the answer to be derived from the navier Stokes equations, which are a set of partial differential equations and only reducible under specific conditions.
Logged

Witherweaver

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 6460
  • Shuffle iT Username: Witherweaver
  • Respect: +7817
    • View Profile
Re: Random Stuff Part III
« Reply #2421 on: March 21, 2017, 04:49:03 pm »
0

Regarding wave shapes, it depends on the domain.  Basically you have a wave equation

D^2 u = d^2u/dt^2

inside the domain and some boundary condition on the outside.  (For example, if you were looking at a vibrating drum head, the domain would be a disk and the boundary condition would be u=0, since the drum head is fixed to some base.) 

You might expect a second-order PDE to have solutions built from exp, which as we know are sines and cosines (or hyperbolic ones, but signs of stuff don't allow those).  You can do a Fourier treatment and look in frequency space as well.

In one-dimension, we have u_{xx} = u_{tt}, and separating as u(x,t)=X(x)T(t) gives

X''/X = T''/T

As the left-hand depends only on x and the right-hand side depends only on t, we conclude both are a constant k, so

X'' = kX,

and we see why we have exponentials.  Boundary constraints fix the sign of k (for real-word scenarios it is negative), and so we have sines and cosines.  Boundary conditions also give us the frequency, and we basically have a sequence of eigenvalues giving rise to the fundamental frequencies (what you see in a Fourier series expansion).

So you don't just have one sine function, you have a whole series of them, but their amplitude decreases (and pretty quickly, else the series would diverge).  So you have the primary one, and then you have overtones/harmonics.   This works basically the same way for a one-dimensional wave on a string or a musical instrument.

Detail can be found here:

https://en.wikipedia.org/wiki/Wave_equation

PPE: I think wave equation (maybe you need an extra damping term) is approximate enough for surface waves.  For full blown fluid dynamics in a viscous liquid, you'd need Navier-Stokes.  I believe Navier-Stokes reduces to wave equations under various simplifying assumptions. 
Logged

Witherweaver

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 6460
  • Shuffle iT Username: Witherweaver
  • Respect: +7817
    • View Profile
Re: Random Stuff Part III
« Reply #2422 on: March 21, 2017, 04:53:10 pm »
+2

I mean we can always say that sines describes water waves exactly, as they basically describe every (nice enough) function 'exactly'.  It's just you need an infinite series of sine functions. 
Logged

Awaclus

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 10885
  • Shuffle iT Username: Awaclus
  • (。 ω 。`)
  • Respect: +11514
    • View Profile
Re: Random Stuff Part III
« Reply #2423 on: March 21, 2017, 04:55:02 pm »
0

I mean we can always say that sines describes water waves exactly, as they basically describe every (nice enough) function 'exactly'.  It's just you need an infinite series of sine functions.

I don't think that's what ss meant.
Logged
Bomb, Cannon, and many of the Gunpowder cards can strongly effect gameplay, particularly in a destructive way

The Twitch channel where I stream DominionThe YouTube channel where I make musicDownload my band's albums for free

Witherweaver

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 6460
  • Shuffle iT Username: Witherweaver
  • Respect: +7817
    • View Profile
Re: Random Stuff Part III
« Reply #2424 on: March 21, 2017, 05:01:32 pm »
0

In a simple case of 1-D surface waves, the fundamental solutions are sines and cosines (basically what I typed above).  However it's not just a unique one: it's a bunch of them combining together.  how they combine depends on a bunch of stuff, like the domain (in 1-D, the length of the container), and also what kind of function is forcing the motion.  (The waves have to start from some force.)

The wave equation above does not include damping; in general you'd have that and the amplitude would die out like exp(-at).  But you might drive it with some force (like banging the container or plucking a string every N seconds).
Logged
Pages: 1 ... 95 96 [97] 98 99 ... 123  All
 

Page created in 0.12 seconds with 21 queries.