Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 99 100 [101] 102 103 ... 173

Author Topic: Mathematics Help Thread  (Read 226973 times)

vagel7

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #1500 on: April 09, 2014, 02:49:13 pm »

He simply made a calculation error at the very end. 3x / 4 = 9 / 2 is actually 6x = 36. Now it is correct.
Logged
That last gobbo would stand there, missing an arm, punctured in a kidney, liver, and spleen, fading in and out of consciousness at the far end of where the drawbridge would go, and his last sight would be the drawbridge dropping down and smashing him like a bug.

God DAMN I love this game!

Bauglir

  • Bay Watcher
  • Let us make Good
    • View Profile
Re: Mathematics Help Thread
« Reply #1501 on: April 10, 2014, 06:54:50 pm »

Okay here's are two questions I mostly want confirmation of to make sure I don't spend a while implementing code that correctly does something, but which isn't actually what I want done.

Let's say I have two continuous curves, a and b, in the xy plane, defined between x0 and x1. For each curve, x0 is either a maximum or a minimum, and x1 is the other, and between the two neither dy/dx nor dx/dy is ever 0 (although it may be 0 at one of those two locations).

First, does this mean that for a given curve, y is either always increasing or always decreasing? That is to say, it never peaks in between the relevant xs.

Second, assuming that's the case, the two curves intersect if, and only if, the sign of ya-yb is different at x0 and x0, right? For the sake of argument, 0 is a different sign from + or - since it means an intersection at an endpoint.
Logged
In the days when Sussman was a novice, Minsky once came to him as he sat hacking at the PDP-6.
“What are you doing?”, asked Minsky. “I am training a randomly wired neural net to play Tic-Tac-Toe” Sussman replied. “Why is the net wired randomly?”, asked Minsky. “I do not want it to have any preconceptions of how to play”, Sussman said.
Minsky then shut his eyes. “Why do you close your eyes?”, Sussman asked his teacher.
“So that the room will be empty.”
At that moment, Sussman was enlightened.

Vector

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #1502 on: April 10, 2014, 06:57:16 pm »

You're correct on both points.

(hohohohoho)
Logged
"The question of the usefulness of poetry arises only in periods of its decline, while in periods of its flowering, no one doubts its total uselessness." - Boris Pasternak

nonbinary/genderfluid/genderqueer renegade mathematician and mafia subforum limpet. please avoid quoting me.

pronouns: prefer neutral ones, others are fine. height: 5'3".

Bauglir

  • Bay Watcher
  • Let us make Good
    • View Profile
Re: Mathematics Help Thread
« Reply #1503 on: April 10, 2014, 07:04:59 pm »

Yesssssss. Now I just need to grok this in order to split everything where my assumptions aren't correct into cases where they are, and everything should be peachy. Soon, I will venture forth into the code mines! I'll have to hug the friend who randomly suggested this forever.

Thank you, Vector, for being awesome.

EDIT: Or maybe I don't even need to use the linked algorithm. Huh. Hehehehehe
« Last Edit: April 10, 2014, 07:19:29 pm by Bauglir »
Logged
In the days when Sussman was a novice, Minsky once came to him as he sat hacking at the PDP-6.
“What are you doing?”, asked Minsky. “I am training a randomly wired neural net to play Tic-Tac-Toe” Sussman replied. “Why is the net wired randomly?”, asked Minsky. “I do not want it to have any preconceptions of how to play”, Sussman said.
Minsky then shut his eyes. “Why do you close your eyes?”, Sussman asked his teacher.
“So that the room will be empty.”
At that moment, Sussman was enlightened.

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Mathematics Help Thread
« Reply #1504 on: April 10, 2014, 09:24:10 pm »

Second, assuming that's the case, the two curves intersect if, and only if, the sign of ya-yb is different at x0 and x1, right?
Hold up, here's a mistake. The "if" part is true, but the "only if" part is not. Simple counterexample here.
Logged

Vector

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #1505 on: April 10, 2014, 09:29:55 pm »

Oh, whoops.  I knew I wasn't looking at that closely enough ._.  Thanks for the catch, Fry...
Logged
"The question of the usefulness of poetry arises only in periods of its decline, while in periods of its flowering, no one doubts its total uselessness." - Boris Pasternak

nonbinary/genderfluid/genderqueer renegade mathematician and mafia subforum limpet. please avoid quoting me.

pronouns: prefer neutral ones, others are fine. height: 5'3".

Furtuka

  • Bay Watcher
  • High Priest of Mecha
    • View Profile
Re: Mathematics Help Thread
« Reply #1506 on: April 10, 2014, 10:07:40 pm »

Logged
It's FEF, not FEOF

Bauglir

  • Bay Watcher
  • Let us make Good
    • View Profile
Re: Mathematics Help Thread
« Reply #1507 on: April 10, 2014, 10:31:30 pm »

Oh, balls. Hrrrrrrrm. Well, good thing I hadn't started writing code yet. That's probably why all the suggestions I've seen for what I want to do are so much more computationally expensive and difficult to grasp. Thanks!
Logged
In the days when Sussman was a novice, Minsky once came to him as he sat hacking at the PDP-6.
“What are you doing?”, asked Minsky. “I am training a randomly wired neural net to play Tic-Tac-Toe” Sussman replied. “Why is the net wired randomly?”, asked Minsky. “I do not want it to have any preconceptions of how to play”, Sussman said.
Minsky then shut his eyes. “Why do you close your eyes?”, Sussman asked his teacher.
“So that the room will be empty.”
At that moment, Sussman was enlightened.

Skyrunner

  • Bay Watcher
  • ?!?!
    • View Profile
    • Portfolio
Re: Mathematics Help Thread
« Reply #1508 on: April 11, 2014, 04:32:03 am »

What is S() in the answer Wolfram Alpha gives for the integral of sin(x^2) ?
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 #1509 on: April 11, 2014, 05:01:24 am »

What is S() in the answer Wolfram Alpha gives for the integral of sin(x^2) ?
Says it's the Fresnel S integral.
Logged
"Deliver yesterday, code today, think tomorrow."
Ceterum censeo Unionem Europaeam esse delendam.
Future supplanter of humanity.

da_nang

  • Bay Watcher
  • Argonian Overlord
    • View Profile
Logged
"Deliver yesterday, code today, think tomorrow."
Ceterum censeo Unionem Europaeam esse delendam.
Future supplanter of humanity.

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Mathematics Help Thread
« Reply #1511 on: April 11, 2014, 07:09:07 am »

Spoiler (click to show/hide)
IIRC the gradient test is dm/dy = dn/dx, dm/dz = dp/dx, dn/dz = dp/dy.

Now grad(f) = {df/dx, df/dy, df/dz} = {m, n, p},  so f = ∫mdx + c1(y, z) = ∫ndy + c2(x, z) = ∫pdz + c3(x, y). In this case, the function f(x, y, z) = 1/sqrt((x-a)²+(y-b)²+(z-c)²) satisfies these equations.
Logged

Furtuka

  • Bay Watcher
  • High Priest of Mecha
    • View Profile
Logged
It's FEF, not FEOF

da_nang

  • Bay Watcher
  • Argonian Overlord
    • View Profile
Re: Mathematics Help Thread
« Reply #1513 on: April 19, 2014, 04:03:49 am »

Seems to me program isn't evaluating the derivatives. The answer would be correct if they did. Is there a simplify function? Or check if Dx, Dy, Dz are interpreted as something else.
Logged
"Deliver yesterday, code today, think tomorrow."
Ceterum censeo Unionem Europaeam esse delendam.
Future supplanter of humanity.

Pnx

  • Bay Watcher
    • View Profile
Re: Mathematics Help Thread
« Reply #1514 on: April 20, 2014, 12:46:47 pm »

Quick question, is there some sort of formulaic or algebraic way to find when a factorial is greater than some number?

Like I want to find for example when N! > 100, I know I can find the answer by just plugging in values for N until I get a number greater than 100. But I was wondering if there was a better way.
Logged
Pages: 1 ... 99 100 [101] 102 103 ... 173