Math Is Fun Forum

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

You are not logged in.

#1576 2012-10-25 00:57:57

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,877

Re: Is this cool with you?

Only a touch, I reckon.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#1577 2012-10-25 01:00:42

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

I remember a movie called "Quigley Down Under." There apparently were a lot of cowboys in Australia. I guess they brought the expression, "I reckon."


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1578 2012-10-25 01:15:42

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,877

Re: Is this cool with you?

Ah reckon ye'd be bang on there. smile

Quigley and "reckon"

Last edited by phrontister (2012-10-25 01:18:39)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#1579 2012-10-25 01:18:20

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

That is it. Seems that a while back some Texans got lost, took a wrong turn and ended up in Australia.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1580 2012-10-25 01:25:56

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,877

Re: Is this cool with you?

And they're very hard to tolerate, too.

Overheard a couple of 'em the other day, with one who'd been here before briefing the other one on what to expect:

"They're OK, these Aussies, but you'll find they take themselves a bit too seriously sometimes, so you'll have to humor them.

"For instance, if they say that Australia is bigger than Texas, you just make out you believe 'em!"


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#1581 2012-10-25 01:30:11

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Yep, those are Texans alright.

I am going to get some sleep see you later and thanks for working on the problem.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1582 2012-10-25 01:32:51

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,877

Re: Is this cool with you?

Sleep well...I enjoyed the problem.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#1583 2012-10-25 03:17:52

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,877

Re: Is this cool with you?

Hi Bobby,


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#1584 2012-10-25 07:02:17

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi phrontister;


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1585 2012-10-25 20:14:13

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,877

Re: Is this cool with you?

Hi Bobby,

Here's an image of the first 29 rows of my Excel solution, including most formulas.

You used M, I suppose. I haven't put any thought into attempting an M solution as E & LB are still my go-to solving programs, and I haven't tried much to shake the habit.

Last edited by phrontister (2012-10-30 01:46:29)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#1586 2012-10-25 21:27:19

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi phrontister;

I used geogebra to give me a solution that M could work on. Thanks for supplying your method.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1587 2012-10-26 02:12:26

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,877

Re: Is this cool with you?

Hi Bobby,

The answer in my first post (#1552) was from a drawing I did in Word.

I didn't mind doing it by 'hand' then because I'd mistakenly thought there were only a few rectangles, having scaled them to 100th their correct size in relation to the triangle. That accounts for the fact that my correct answer turned out to be about 100 times greater than my first.

So I was actually quite close - mainly just a couple of zeros missing from the end, that's all...which is nothing.

But you know what they say...

Last edited by phrontister (2012-10-26 02:15:33)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#1588 2012-10-26 02:27:21

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi;

Originally I was trying to get geogebra to draw the rectangles for me, layer by layer. Then it became obvious that was not necessary and an M solution took shape.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1589 2012-10-26 02:57:04

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,877

Re: Is this cool with you?

Hi Bobby,

I actually started placing the tiny rectangles into the triangle in Word (at 500% magnification and with automatic object alignment) and got as far as about 10 rows - which took a while. I stopped when I realised that the answer might depend on which triangle side I ran the rectangles parallel to, and couldn't picture myself still busily placing little rectangles carefully into a triangle into my old age.

That's when I thought I'd better try to do this properly and with better accuracy, and came up with the Excel idea.

Would you like to show me your M solution, or at least give me a good hint? I haven't got a clue right now as to how to do it in M.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#1590 2012-10-26 03:03:51

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,877

Re: Is this cool with you?

It's bed time for me now - way past it, actually (again) - so I'd better sign off before I nod off.

See you later, Bobby.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#1591 2012-10-26 03:31:54

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi;

Okay, have a good night. See you tomorrow.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1592 2012-10-28 13:07:46

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,877

Re: Is this cool with you?

Hi Bobby,

is my code in LB.

It's a bit wordy, but if I look at this post in 50 years' time it'll be easy to work out what I did.

Last edited by phrontister (2012-10-31 11:14:34)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#1593 2012-10-28 13:29:36

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi phrontister;

That is nice, neat code. Hope you will give it a try in M.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1594 2012-10-28 13:52:27

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,877

Re: Is this cool with you?

Hi Bobby,

Ok...I'll try, but not sure when. Off to work now...


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#1595 2012-10-28 13:56:47

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi;

Very good, if you need help...


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1596 2012-10-28 23:02:46

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,877

Re: Is this cool with you?

Hi Bobby,

Lines 4 & 6 are repeats of line 2. How do I steer the third and fifth lines into the line 2 calculation route so that I can eliminate lines 4 & 6?

Last edited by phrontister (2012-10-29 00:50:00)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#1597 2012-10-29 01:13:18

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi phrontister;

I am the worst in the world at debugging or streamlining someone else's code but I will look at it.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1598 2012-10-29 01:37:16

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,877

Re: Is this cool with you?

Thanks, but take your time, Bobby.

I have a very early start in the morning, so it's bedtime for me now.

See you later...


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#1599 2012-10-29 01:40:55

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi;

Line 5 is different than line 3, can you make it the same. I am talking about

h = IntegerPart[250*150/b];


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1600 2012-10-29 19:14:50

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,877

Re: Is this cool with you?

Hi Bobby,

Line 5's h (ie, h being the height from the base of side 50√34) has to be calculated as it's not given (unlike with the other two orientations of the triangle).  In LB & E I got them to do that calculation of h, and so that's what I did in M's line 5. The integer part of the height is 128, so the h equation in line 5 could read "h = 128", instead of the formula for h.

But that's not the issue (although maybe you've got something up your sleeve that prompted you to ask me that question).

Lines 1, 3 & 5 contain different information as they pertain to the three orientations of the triangle, with each side taking its turn at being the base. Each of those lines is followed by a line (2, 4 and 6 respectively) that calculates the preceding line's maximum number of blocks.

In LB I was able to dispense with lines 4 and 6 by using GOSUB and RETURN and directing the calculation for each of lines 1, 3 & 5 to be done by line 2. However, in M I had to copy/paste line 2 twice to give lines 3 and 5 their own calculation lines as I couldn't work out how to direct them to line 2 to get their calculations done there.

That was the quick 'n easy way and gets the job done, but it left me with the question I couldn't solve.

Last edited by phrontister (2012-10-29 19:44:21)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

Board footer

Powered by FluxBB