Math Is Fun Forum

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

You are not logged in.

#26 2014-12-12 22:49:12

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

Re: Algebra puzzle

Maybe I should have replied from The Land of Tomorrow before you posted your answer...


"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

#27 2014-12-12 22:51:44

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

Re: Algebra puzzle

That reminds me of a movie called, The Land That Time Forgot.


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

#28 2014-12-12 22:59:31

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

Re: Algebra puzzle

Haven't seen that one. I doubt that I'd like it, though, as I don't really go for war movies or monster movies. Anyway, we're ahead of the rest, time-wise, so...


"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

#29 2014-12-12 23:03:42

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

Re: Algebra puzzle

I never saw it either or maybe I did and forgot.


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

#30 2014-12-13 00:08:23

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

Re: Algebra puzzle

With rasher's code:

IT+TAKES+A+LITTLE=EFFORT solves nearly instantaneously;

FIVE - TWO + THREE - NINE = 5239 (from my post #403 in the 'Add 13 more and post it forever' thread) takes just over 5 seconds.

So, thanks for the code. smile I like rasher's output display, the helpful remarks and some other stuff that I can understand...which is not all of it, that's for sure.


"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

#31 2014-12-13 03:22:55

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

Re: Algebra puzzle

Hi;

How did you get it to do "IT+TAKES+A+LITTLE=EFFORT?"


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

#32 2014-12-13 03:52:15

David
Member
From: Bumpkinland
Registered: 2014-04-23
Posts: 3,164

Re: Algebra puzzle

CAN WE DO M? Please? Pretty Please?


His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.

Offline

#33 2014-12-13 03:53:40

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

Re: Algebra puzzle

What thread were we in?


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

#34 2014-12-13 03:54:06

David
Member
From: Bumpkinland
Registered: 2014-04-23
Posts: 3,164

Re: Algebra puzzle

Teach Chris


His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.

Offline

#35 2014-12-13 03:57:10

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

Re: Algebra puzzle

Okay, then go there.


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

#36 2014-12-13 11:55:34

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

Re: Algebra puzzle

Hi Bobby,

How did you get it to do "IT+TAKES+A+LITTLE=EFFORT?"

That puzzle has two more terms than the template, so I included two extra terms in the three places where the group of terms appear. Also, I altered the contents of ClearAll, vars, conditions, the four terms, and sum to suit.

Then I pressed Shift+Enter. Maybe you left out that last step. wink

Last edited by phrontister (2014-12-13 12:26:43)


"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

#37 2014-12-13 20:27:43

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

Re: Algebra puzzle

I did not think about modifying his.


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

#38 2014-12-13 20:41:48

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

Re: Algebra puzzle

Oh, I mistook you.

Here's my code...

s1 = Permutations[{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, {10}];

Select[s1, (10 #[[1]] + #[[2]]) + (10000 #[[2]] + 1000 #[[3]] + 
      100 #[[4]] + 10 #[[5]] + #[[6]]) + (#[[3]]) + (100000 #[[7]] + 
      10000 #[[1]] + 1000 #[[2]] + 100 #[[2]] + 10 #[[7]] + #[[5]])
   == (100000 #[[5]] + 10000 #[[8]] + 1000 #[[8]] + 100 #[[9]] + 
     10 #[[10]] + #[[2]]) &]

"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

#39 2014-12-13 20:43:19

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

Re: Algebra puzzle

Hi;

That looks to be the simplest idea.


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

#40 2014-12-13 20:52:08

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

Re: Algebra puzzle

Yes, and that's the way I do most of them. From now on I'll also try rasher's code...but his may be tricky to adapt for puzzles that don't fit his mold.


"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

#41 2014-12-13 20:56:05

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

Re: Algebra puzzle

His way has some advantages, that output looks nice.


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

#42 2014-12-13 23:40:43

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

Re: Algebra puzzle

Yes, I like that output too.

Ease of obtaining nice output is one of the reasons I still use Excel for some things (although that number is shrinking now that I'm using M). I've used Excel for so long that most outputs I want aren't hard for me to do on their page layout, whereas achieving similar outputs in M would entail a steep learning curve + frequent use.


"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

#43 2014-12-14 00:35:25

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

Re: Algebra puzzle

(although that number is shrinking now that I'm using M)

But will Excel ever become unnecessary?


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

#44 2014-12-14 04:31:29

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

Re: Algebra puzzle

Not for me...I just never could bring myself to killing a pet. I'd perpetuate their existence with replacements ('upgrades', one might say), which, while they may not have the initial appeal of the first young pup, nevertheless would always be there for me in some way.


"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

#45 2014-12-14 04:36:46

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

Re: Algebra puzzle

I do remember a vid where there was the most amazing canine in it. The man would put a piece of cheese squarely between the dog's eyes. The dog would balance it there for a bit and then with a quick jerk of its head invoke the law of inertia and gulp it down.


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

#46 2014-12-14 16:12:26

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

Re: Algebra puzzle

That was the hideous mutt who pinched the trick off my wonderful Tulip! Tu and I should have copyrighted it before that beast had the chance to perform its revolting demolition act! sad

bobbym wrote:

...and gulp it down.

And Grosso didn't gulp it down...it gulped it up! Grosso was such a clumsy oaf that it missed the catch completely and with its slobbering mouth knocked the cheese to the ground, from whence it gobbled it up.


"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

#47 2014-12-15 00:15:16

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

Re: Algebra puzzle

Grosso?


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

#48 2014-12-15 00:19:57

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

Re: Algebra puzzle

"the law of inertia"? Or the law of gravity?


"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

#49 2014-12-15 00:20:59

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

Re: Algebra puzzle

That dog is oh-so-gross...so = Grosso.


"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

#50 2014-12-15 00:23:38

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

Re: Algebra puzzle

I would say Inertia.

So you are saying that Tulip and you are much better than that pair.


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

Board footer

Powered by FluxBB