Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#326 Re: Help Me ! » last card standing problem » 2005-09-21 18:18:02

I've made a start, but it's late and I need to go to bed. Maybe someone else can finish it, or I'll continue it later.

Anyway, you start by discarding 1 (an odd number), so in the first round, all odd numbers drop out.

In the second round, the "odds to the evens" drop out. That is to say, every other even, which, when you start at two (which you do), is every multiple of 4.

With each subsequent round, the distance (numerically) between each card in the deck doubles, like so:
Round   Distance
0           1
1           2
2           4
3           8

And so on. Also, with every round, the number of cards is cut in half.

We ought to be able to write some sort of series with this information. Also, whether you start with an odd or even number of cards has some significance.

Oh! I've got it! If you start with an odd number of cards, then the highest-numbered even comes out last. If you start with an even number of cards, then the middle card comes out last -- the middle of the evens, that is. So, if you start with a run from 1 - 30, 16 comes out. If you start with 1 - 31, 30 comes out.

There's probably an easy, compact way to explain this, but I'm too tired. Goodnight. wink

#327 Re: Help Me ! » I Need Help » 2005-09-21 17:27:59

Who knows, man. Homework with no instructions is one of my greatest pet peeves with school.

My best guess is they want you to categorize the shapes under headings such as triangles, squares, rectangles, polygons, conics, etc.

The plus is that, with instructions that vague, the number of answers that work is much greater. There's no one "right answer" for each group, because if every shape in the group fits the bill, then your answer is correct.

#328 Re: Help Me ! » triples » 2005-09-21 17:10:06

Wow. There's a bunch of specific formulas for calculating the number of possible permutations, but I don't feel like looking any of them up, so I'm going to pull this from my *cough* posterior regions.

(I'm going to use numbers instead of letters because I think it's clearer.)

We'll start with a set of 1 element, {1}. How many permutations are possible? 1, of course. That's easy to see.

Expanding our set to 2 elements, {1, 2}, we find that 2 permutations are possible:
12
21

This is the same as 1 * 2.

Expanding to 3 elements, {1, 2, 3}, we find 6 possibilities:
1(23)
1(32)
2(13)
2(31)
3(12)
3(21)
...which is the same as 1 * 2 * 3.

Let's take a moment to examine that last set. Notice that there are two permutations that begin with each number. That's because there are only two distinct numbers that can follow the first in the series, and remember that the total number of permutations possible with two numbers is 2. So, having three numbers that can occupy the first position, and two permutations possible with each series that begins with a given number, the total number of permutations possible is 3 * 2.

Now, to four: {1, 2, 3, 4}
1 2(34)
1 2(43)
1 3(14)
1 3(41)
1 4(23)
1 4(32)

I don't need to write them all out to know the answer, because I see a pattern. There are 4 numbers that can occupy the first position, 3 that can take the second, and 2 permutations of the last two digits. This gives us 4 * 3 * 2 = 24 possibilities.

Now I know for sure that the formula for the number of combinations possible with a given number of elements n is n!.

(Skip this if you already know what the "!" means. It means  "factorial." To take the factorial of a number, you multiply it by all of the integers smaller than it. So, 4! is 4*3*2*1. 100! is 100*99*98 ... 3*2*1 = a reeeaaalllyyy big number, etc.)

#329 Re: Help Me ! » coordinate geometry » 2005-09-20 16:03:33

The equation y = mx + b will serve you well here. This is called "slope-intercept' form of the equation for a line, because m represents the slope and b represents the point where the line crosses the y axis, or y-intercept.

I think it's safe for us to assume that the origin O corresponds to the point (0, 0) on the coordinate plane. So, a line that passes through the origin will have a y-intercept of 0; that means b=0 and we don't have to worry about it.

Now, we need to find the slope. This is "rise over run". So, A (1, 2) is 2 above O and 1 to the right, so m = 2 / 1 = 2.

The final equation is y = 2x. You can verify this by plugging in a number (1) for which you know the answer (2), like so: y = 2(1) = 2. Bingo!

Now, a perpendicular line has a slope that is the negative reciprocal (flip the fraction over and negate it) of the first line. So, the slope of our new line is (-1/2). Now our equation is y = (-1/2)x + b. We need to find the value of b, so we need numbers to plug into our other variables. We have them, since the line (AB) passes through our given point (1, 2). So, solve the equation 2 = (-1/2)(1) + b for b, and you can find b and your final equation.

The line will cross the x-axis where y = 0, so set y equal to 0 in your equation and solve for x to find the coordinates.

#330 Re: Dark Discussions at Cafe Infinity » The Power of Words. » 2005-09-19 04:37:13

Well...

The Good:  The sense of place is very strong, which is good given you didn't spend very much time explicitly developing it. This means you did it right.

The action is vivid in some parts, but vague and clumsy in others.

The descriptions of the characters are well done. You didn't describe too much; you gave us just enough to be able to automatically visualize the players. Except, of course, for the dispensable generic soldiers, who remain faceless in my mind.

The Bad:  I won't critique it like it's a story, because I don't think you mean to make it into a full-blown story, but rather wrote it as an exercise in writing. Correct me if I'm wrong.

The gore was in places appropriate, and inappropriate in others. Don't make the hollywood mistake of showing gore fore the sake of it; when you show something sickening, make sure you have a specific purpose and a very good reason for it. Otherwise, like a bad scary movie, the audience becomes desensitized to it and it loses all its effect.

Please don't take this the wrong way, but it reads like a piece of bad Anime. Then again, I don't like Anime because (like comic books) so much of it is so bad, so maybe it reads like just plain Anime. So, I guess it might work for your intended audience (people who like Anime), but it didn't work for me.

Oh, and there are a lot of grammar and spelling mistakes. That's not so important, because they're easily fixed. But, in proofreading, before you fix mechanical errors, look for and ferret out the places where the language is awkward and doesn't flow, or impedes the reader from seeing what you see.

The Conclusion:  Even though I knew the good guy was invincible and couldn't lose, I was still curious and interested to see what kind of bad guy would challenge him after his display with the dispensable soldiers. I kept reading to see what antics the hero would go through to win the day.

So, even though I didn't particularly like it (no offense), I couldn't stop reading it. That's good. Keep at it...

#331 Re: This is Cool » The cool maths that games can teach you! » 2005-09-17 14:09:57

Hey sony, what happens if you have a sphere? There's technically no facets...

#332 Re: Help Me ! » Equations With Fractions » 2005-09-16 07:14:00

Put the x's on one side and everything else on the other:

x/10 + 2x/10 = -1/5 + 3/5

Simplify:

3x/10 = 2/5
3x = 20/5 = 4
x = 4/3

The key is that to add or subtract fractions, you need a common denominator. Once you can combine all the fractions, it becomes simple to solve.

#333 Re: Dark Discussions at Cafe Infinity » Theories of Insanity; Theory 01; Octoweek » 2005-09-16 04:36:43

You took 2 minutes of my life and I WANT THEM BACK!

Seriously, though, the Mayas had a calendar that didn't need all this leap garbage. We should toss out the baggage of centuries, ditch the gregorian/julian calendar, and go to a sensible system based more on the actual motions of the earth than our desire to have a neat, integral number of hours in a day (or days in a year).

Like that'll ever happen...

#334 Re: Help Me ! » investigation---area-- » 2005-09-16 04:26:01

I assume they mean that only whole numbers are allowed (they should have said so!).

You can solve these by writing a factor table, like this:
1    2    3   4  6
36  18  12  9  6

These are all the factors of 36. This means, "Multiply the top number by the bottom number, and you'll get 36." Since you find the area of a rectangle by multiplying the length by the width, then these factor pairs are also your rectangles.

Good luck!

#335 Dark Discussions at Cafe Infinity » The Dreaded Paper » 2005-09-16 04:15:35

ryos
Replies: 1

Have you ever had a professor/teacher that lectures with an overhead projector and pre-prepared transparencies? Do they use a piece of opaque paper to cover up most of the transparency, revealing only the part they want you to see at that time?

*Charlie Brown voice* I can't stand it!

My physics professor lectures like that. The trouble is, he takes so long to explain between key points that my brain shuts down and I'm completely unable to understand what he's saying. I know that, conceptually, I should be able to understand, but it's like there's a physical limit in my brain that prevents me from slowing down to his pace.

The solution? DITCH THE PAPER! Never, ever use it again. That way, I can look at the whole of the transparency and figure out for myself what he's trying so clumsily to explain.

*pants*

So what's the point of that paper? What does it accomplish? Who would even think that that would be good lecturing practice?

Ok, I've ranted. Now maybe I can write rationally about it to my professor.

#336 Re: Help Me ! » Couldnt Be Difficult » 2005-09-14 05:06:01

Someone correct me if I'm wrong:

A number can be constrained to proportion by multiplying by that proportion.

For example, if I have a ratio of 4:3, if I choose 640 as my first number, I multiply it by 3/4: 640 (3/4) = 480. If you want to go from 480 to 640, do the inverse: 480 (4/3) = 640.

Now let's extend it to a ratio with 3 terms: 4:3:2. We know that 640:480, so the third term is found by multiplying by 2/3: 480 (2/3) = 320.

You can find any term in the ratio based off any single term by multiplying by the correct ratio. So, to find the first term from the third, we multiply by 4/2 = 2: 320 (2) = 640.

Good luck.

#337 Re: Help Me ! » extreem of function » 2005-09-14 02:46:51

The cosine and sine functions are periodic, so they have infinitely many maximums. The period of both is pi radians (180 degrees), though cos begins pi/2 radians to the left of sin. So, at every increment of pi/2, either sin or cos has a maximum.

You can use this info to figure out the answer...

#338 Re: This is Cool » The cool maths that games can teach you! » 2005-09-13 17:54:02

No intuitive answers? But all answers are intuitive!

I also don't know what #2 is asking.

These answers aren't rigorous proofs by any means, just intuitive thoughts based on the definitions of things.

#339 Re: Help Me ! » the formulas for sine, cosine and tangent » 2005-09-05 07:35:47

"^" means to raise to a power. It's necessary on plain text documents that don't support superscripts. It's also an operator in many programming languages, including, I think, C/++, so you can use it in your programs to raise things to a power.

#340 Re: Help Me ! » the formulas for sine, cosine and tangent » 2005-09-04 18:14:13

This may help.

If it doesn't, I'll have a go at translating it for you.

Of course, if your program is such that you know the lengths of at least two of the sides of your triangle, you can compute the trig functions using SOH CAH TOA.

#341 Re: Help Me ! » Limits » 2005-08-27 18:04:49

MathsIsFun wrote:

Ryos, that is a remarkable avatar.

Thanks.

MathsIsFun wrote:

Who would have thought that "ryos" could be symmetrical?

Me. big_smile

Inverting words is a hobby of mine. I can't claim to be tremendously good at it, but I'm gratified that you could read it and recognized its significance.

The man whose work got me started is Scott Kim. His are still the most brilliant I've seen. His book, "Inversions," is also a fascinating read; it has a ton of his drawings in it, too.

#342 Re: Help Me ! » Limits » 2005-08-24 17:23:41

The limit will be 1 atmosphere (the atmosphere is a unit of gas pressure. 1 atm = atmospheric pressure at sea level = 14.7 psi). We know this because, even if the plane crashes in the sea, the atmospheric pressure does not exceed 1 atm (except in places like Death Valley or the Dead Sea).

That's probably not what your teachers are looking for. Well, if they wanted a mathematical answer, they shouldn't have given you a problem easily solved with common sense. big_smile

Seriously, if you need a mathematical answer post the formula and we'll help you. (If it were water pressure I'd have it, but atmospheric pressure is harder because the density changes with altitude and I haven't gotten the far yet...)

#343 Re: Help Me ! » math notation to code notation » 2005-08-24 16:26:39

Wow. It's been a really long time since I did any C programming, and I don't remember what Math functions are available. So, I'll give a couple simple examples in Java, which has similar syntax.

The Quadratic Formula:

public Point quadform (a, b, c)  {
       float plus, minus;

       plus = (b^2 + Math.sqrt (2*b - 4*a*c)) / (2*a);
       minus = (b^2 - Math.sqrt (2*b - 4*a*c)) / (2*a);

       return new Point (plus, minus);
}

n!:

public double factorial (n)  {
       double answer = 2;

       if (n > 1)  { answer = factorial (n-1); }
       
       return answer * (n-1);
}


This may sound really stupidly obvious, but writing algorithms of math functions is just programming. Get a book and practice. If you're having a problem with a specific function, post a specific question and we'll be happy to answer.

#344 Re: Introductions » Mikau's Introduction » 2005-08-24 04:21:29

I was (am) in a similar spot. I left High School midway through my Junior year to do the homeschool thing. Math was the subject that got neglected; I just couldn't find a decent book on the subject.

This book was written a few years later. Since I'm preparing to take a college-level calculus course this next semester, I felt I needed some exposure to the subject before diving in, and this book has done the job well for me so far.

Good luck with your ambitions!

#345 Re: Help Me ! » Integration. Where is the 2 coming from? » 2005-08-23 02:34:59

Thanks for the replies. Now I get where the 2 comes from. Now my question is: where does the du go? u²/2 is the integral of u...what happened to the du?

Thanks again.

#346 Help Me ! » Integration. Where is the 2 coming from? » 2005-08-22 16:38:37

ryos
Replies: 5

I'm working through The Complete Idiot's Guide to Calculus. It's been great so far, but it's explanations of integration have proven inadequate to make me understand. Specifically, I've gotten quite stuck with a certain problem involving u-substitution:

[Edit: the integral symbols that I pasted from the row above came through as ?, so that will have to do. smile all the ? below are intended to be integral symbols.]

Integrate ƒ(x) = ln(x) / x  on the interval [1, 100].

So I go like this:
u = ln(x)
du = 1/x dx

?(u * du) = ln(x)dx ? ln|x|dx = u² ... what?

I'm stuck; I don't get it. The solution in the book goes like this:
? [b=ln100, a=ln1] udu ->

u² | ln100
2   | ln1    ->

(ln100)² / 2 - 0

I understand why the limits of integration changed from [1, 100] to [ln1, ln100], and that the final expression is g(b) - g(a), which as I understand it is the final step to definite integration.

What I don't understand is, where did the /2 come from?

Thanks for the help. I hope my explanation is clear; some notation really doesn't translate to the web at all.

#347 Re: Puzzles and Games » Tunnel Conundrum » 2005-08-17 06:02:38

We are constrained by physical laws which make drilling the hole impossible unless it turns out we were wrong about those laws. You are limited by materials and energy. It's like trying to build a fusion reactor. We have been able to produce fusion for 50 years or so, but only in bombs--we can't contain it. The properties of matter say it's impossible to produce a material that can withstand the temperatures of fusion without ionizing and turning into plasma themselves. So you need to generate a magnetic field strong enough to keep it from touching anything, and we haven't been able to do that yet.

Or space travel. We pretty much reached our limits on space travel technology in the 60's and 70's, because there does not exist a fuel with sufficient energy density to propel a passenger ship at a reasonable rate. It takes our unmanned probes years to reach Jupiter. The only candidate is antimatter, which we cannot produce or store with near the efficiency required for practical application.

Talking about the hole, there doesn't exist a material with sufficient tensile strength to extend from the surface of the earth to the center--it would break under its own weight. That is, unless we discover one (buckminsterfullerine looks promising).

If we could make an antigravity field to balance the weight, there's still the problem of having a motor big enough to turn it. Even with a nuclear-powered gas turbine, I'm not sure you could produce enough power.

And if you had an antigravity field, how much power would it require? Could you project it along the length of the tunnel?

All of this is ignoring the presence of magma.

A thought just occurred to me. We could perform this experiment on a smaller scale in space. Not that we'd want to...

#348 Introductions » Englishes is fun » 2005-08-17 04:05:33

ryos
Replies: 1

I suppose to say "Maths" is a British thing...

Anyway, I'm starting to get hooked on this place, so I guess I'll post here.

I found this place by searching for "Math forum" on google.

I quit high school in the middle of my junior year. I couldn't take the madness anymore. Maybe schools in the UK are better...

In "The Complete Idiot's Guide to Calculus" (a wonderful book for fools like me), the author mentions in an aside that that horrific abomination of notation, the quadratic formula, had been created by completing the square on the general quadratic equation, ax² + bx + c. I decided to try it, it worked, and I was exhilarated. That's when I found out I don't hate math after all--I just hate math textbooks and the way it's usually taught.

I'm currently a Chemical Engineering student at Brigham Young University in Utah, so I better figure this math thing out quick before it figures me. My dream is to make a dent in our dependence on on oil.

Se habla español, también. wink Ya que saben algo de mi, dejo de escribir para que pueda yo hacer trabajo real.

#349 Re: Help Me ! » Constrain proportions » 2005-08-17 03:38:19

Maths - I may be reading your code wrong, but I don't think that's quite the effect he was looking for.

?x = 150    is less than    (800/600) * ?y  = 226.7,  so:
?y = (600/800) * ?x = 112.5

In order to constrain the proportion to 4:3, you need to change one side in proportion to the side whose delta is greater. That way, the user's mouse stays connected with at least one side of the rectangle. So:

if (deltaX > deltaY)  {
       deltaX = (3/4) * deltaX
}
else  {
       deltaX = (4/3) * deltaY
}

However, that algorithm falls down when the user drags the mose above or to the left of the top left corner of the rectangle, since the deltas become negative. So, we need to work in terms of the coordinates of the corners, instead of the width/height of the rectangle.

Declare variables  (xTL, yTL);  (xBR, yBR);  to hold the coordinates of the top left and bottom right corners of the rectangle. xM and yM refer to the position of the mouse. The deltas will also make an appearance.

if (xM > xBR)  {
     deltaX = xM - xBR;
     deltaY = yM - yBR;
     
     if (deltaX > deltaY)  { xBR = xM;  yBR = (3/4) * xM; }
     else  { xBR = (4/3) * yM;  yBR = yM; }

     if (yM < yTL)  {  //The user is above the top left; invert!
          yBR -= 2 * (yBR - yTL);
     }
}

if ((xM < xBR) && (yM > yBR))  {
     //The user is below and to the left of the bottom right
     //Adjust yBR and xBR accordingly, and
     //make sure to check for the user being to the left of xTL
}

And keep going until you've covered every possible situation. Sorry I ran out of time and couldn't finish it. sad

#350 Re: Puzzles and Games » Who owns the fish? » 2005-08-16 16:06:10

As an aside, did Einstein really think that 98% of the world would be unable to solve the puzzle? If you weren't allowed to use a paper and pencil (I used an excel spreadsheet wink) it would be almost impossible, but with paper it's not very hard at all.

Board footer

Powered by FluxBB