Christopher2222

MaplePrimes Activity


These are replies submitted by Christopher2222

@Pseudomodo That works only in 15.  It appears not to work in Maple 12 (or 13 or 14) even though ospd3 exists in the code.

Since ospd3 exists there must be a workaround to work for older versions, no?

In any case here is the english words list acceptable in scrabble (known as sowpods).  I was unable to load any file greater than 200kb so I had to break it up into 4 bits.  The list contains 267,751 words excluding of course the obvious 1 letter words a and i.

atod.zip

etol.zip

mtor.zip

stoz.zip

@Michal 

Also it seems the globalization model falls on it's head when companies move.  Globalization is fine for the world when companies stay the course that is stay where they are - in that case predictions are easy to model. 

Now when companies move it throws everything off.  Higher unemployment means less tax revenue for the government resulting in higher taxes and more people not being able to afford things.  It's a cascading effect which plunges flourishing economies into more debt.  In fact 10 year Greek bonds are trading at 20 cents on the dollar.  Funny how one country pulls the whole world economy down. 

You run into a situation where even though items are cheaper, ironically, no one can afford them.  We were better off 25 years ago.  You know it's way better to have a little money and buy something expensive than it is to have no money and not afford something cheap. 

@Michal 

Also it seems the globalization model falls on it's head when companies move.  Globalization is fine for the world when companies stay the course that is stay where they are - in that case predictions are easy to model. 

Now when companies move it throws everything off.  Higher unemployment means less tax revenue for the government resulting in higher taxes and more people not being able to afford things.  It's a cascading effect which plunges flourishing economies into more debt.  In fact 10 year Greek bonds are trading at 20 cents on the dollar.  Funny how one country pulls the whole world economy down. 

You run into a situation where even though items are cheaper, ironically, no one can afford them.  We were better off 25 years ago.  You know it's way better to have a little money and buy something expensive than it is to have no money and not afford something cheap. 

> findall("speak", "t", 4, 5);

 TABLE([5 = ("stake", "steak", "skate", "paste", "spate", "septa"), 4 = (

   "take", "tape", "peat", "pate", "seat", "east", "skat", "task", "spat",

   "past", "kept", "pest", "sept", "step")])

trivially and explicitly we could add

  if Search(char,input)=0 then
    error "expecting 2nd argument to be part of 1st argument"
  end if;

>findall("speak", "t", 4, 5);
Error, (in findall) expecting 2nd argument to be part of 1st argument

 

> findall("speak", "t", 4, 5);

 TABLE([5 = ("stake", "steak", "skate", "paste", "spate", "septa"), 4 = (

   "take", "tape", "peat", "pate", "seat", "east", "skat", "task", "spat",

   "past", "kept", "pest", "sept", "step")])

trivially and explicitly we could add

  if Search(char,input)=0 then
    error "expecting 2nd argument to be part of 1st argument"
  end if;

>findall("speak", "t", 4, 5);
Error, (in findall) expecting 2nd argument to be part of 1st argument

 

Thanks acer, works nicely now. 

Now I mentioned a nice free word database sowpods.txt (found on sourceforge) which is only 2 Mb when unzipped but reading it into Maple causes Maple to use about 27Mb's.  That's using the command readdata("g:/sowpods.txt",string,1).   

Are there other ways to read in large databases while consuming less memory or I should say more efficiently?

Or I suppose what I mean is, and this is probably really a second question, is there a way (and how) using Maple to search the database without actually loading it into Maple to conserve memory?

Thanks acer, works nicely now. 

Now I mentioned a nice free word database sowpods.txt (found on sourceforge) which is only 2 Mb when unzipped but reading it into Maple causes Maple to use about 27Mb's.  That's using the command readdata("g:/sowpods.txt",string,1).   

Are there other ways to read in large databases while consuming less memory or I should say more efficiently?

Or I suppose what I mean is, and this is probably really a second question, is there a way (and how) using Maple to search the database without actually loading it into Maple to conserve memory?

There is a mistake somewhere

findall("speak",s",5,5)

                                       table([5 = ("speak", "passe")])

passe shouldn't be there, speak doesn't contain 2 s's

A great word database is sowpods.zip a scrabble dictionary of 267,751 words as compared to the builtin of 25,950 which hasn't changed since at least Maple 9.

 

There is a mistake somewhere

findall("speak",s",5,5)

                                       table([5 = ("speak", "passe")])

passe shouldn't be there, speak doesn't contain 2 s's

A great word database is sowpods.zip a scrabble dictionary of 267,751 words as compared to the builtin of 25,950 which hasn't changed since at least Maple 9.

 

Okay thanks acer.  No reference to Unix on the help page had me confused.

These posts are very interesting.  Can someone explain why the last half on the help page of PatternDictionary doesn't work?  That is the part where it says "You can replace the small built-in dictionary with a better word list. "  Converting it to a worksheet and executing the commands results in errors which, really, shouldn't happen.

I don't have a directory called /usr/share/dict/words and there is no explanation.  Do I make one?  Where do I put it?  Is it something that existed in a historical version of maple that is no longer included? 

As far as I know everything in the help page should work and if not then sufficient documentation should be included to explain. 

It works in M12.  But it could be that your firewall may be preventing a connection.  I just tried it, and it does work.

Using plottools you'll need to use Pagan's suggestion and create another object simulating the axes.

Using animate maple will always rotate an object from the center of the viewing limits. So we just set your minimum point values for x and y at the center of the range.  Using the xsol and ysol from your branched thread we simply have

animate(plot3d,[P,x=xsol-5..xsol+5,y=ysol-5..ysol+5,orientation=[A,90]],A=0..360)

or

f:=5
animate(plot3d,[P,xsol-f..xsol+f,y=ysol-f..ysol+f,orientation=[A,90]],A=0..360)

which animates your paraboloid with the axes rotating around a z-axes centered on your minimum with a range from your minimum specified by f.

As for a bigger graph, is this what you were thinking http://www.mapleprimes.com/questions/80945-How-To-Change-The-Plot-Inline-Window-Size-

 

Using plottools you'll need to use Pagan's suggestion and create another object simulating the axes.

Using animate maple will always rotate an object from the center of the viewing limits. So we just set your minimum point values for x and y at the center of the range.  Using the xsol and ysol from your branched thread we simply have

animate(plot3d,[P,x=xsol-5..xsol+5,y=ysol-5..ysol+5,orientation=[A,90]],A=0..360)

or

f:=5
animate(plot3d,[P,xsol-f..xsol+f,y=ysol-f..ysol+f,orientation=[A,90]],A=0..360)

which animates your paraboloid with the axes rotating around a z-axes centered on your minimum with a range from your minimum specified by f.

As for a bigger graph, is this what you were thinking http://www.mapleprimes.com/questions/80945-How-To-Change-The-Plot-Inline-Window-Size-

 

How about rotating objects about their relative centers offset from the central viewing axis?

First 100 101 102 103 104 105 106 Last Page 102 of 155