Items tagged with grid grid Tagged Items Feed

One of the most basic decisions a baseball manager has to make is how to arrange the batting order.  There are many heuristics and models for estimating the productivity of a given order.  My personal favourite is the use of simulation, but by far the most elegant solution from a mathematical perspective uses probability matrices and Markov chains.  An excellent treatment of this topic can be found in Dr. Joel S. Sokol's article,

I'm sure there are other Maple users who have done these things, but I'm in the early stages of learning Maple 15 after moving (up) from Mathcad.

1. How do I plot a simple wireframe map of the world?

2. If I have a dataset of gridded data where the data is in the form [latitude, longitude, number] how do I map that data to a grid on the globe and give it a height according to the magnitude of the [number]?

3. Is there a way to smooth the heights of each...

I am making a 2D plot and need to mark certain irregular points on the x-axis, so I managed to put tickmarks (and gridlines) at those points, and somehow Maple even labels each tickmark, which is what I want. 

Except, there is no room along the x-axis for all the labels, so I need the labels to appear vertically at each tickmark.

Is  there any way to do this? The only instructions I can find for vertical labelling just apply to axis labels, not tickmark or gridline labels.

Black and white

February 17 2012 by Markiyan Hirnyk 4738 Maple

Is it possible to paint in black and white colors the cells of 5x5 grid so that each 3x3 square contains exactly 5 black cells and  each 2x4 rectangle (vertical or horisontal) contains exactly 4 black cells? How to answer this with Maple?

If you look at Maple help on Grid[Launch] command there is an example of checking the prime numbers.

I do not understand why the timingData variable is empty after specifying it in exports parameter.

When I do not specify it in the exports parameter, the timingData variable has the same value as it had before calling Launch command.

I have a for loop which run 50000 times.

I have a dual core cpu made by amd, so parallel is a better choice.

There are two packages in Maple 15: Grid and Thread.

I want to know which one is more effeciency?

And in my program,there are no intersection between for-loops.

how to programming in parallel?

Thank you in advance.

Classic Triangle Peg Board GameIn high school I was briefly fascinated by a triangular "jump all but one" game, commonly found at Cracker Barrel restaurants.  The basic premise is that any peg can "jump" over an adjacent peg to occupy the empty hole next to the jumped peg.  The jumped peg is then removed.  The goal is to continue jumping pegs until there is only one left.  


The instructions on the face of the Cracker Barrel version of this game say, "LEAVE ONLY ONE -- YOU'RE A GENIUS".  Wanting to claim the right to call myself a genius, unlike ordinary kids, who might just play the game a few times, I sat down on my Turbo-XT and started writing BASIC code.  The algorithm I came up with ran a bit slow, so I directed output to my printer and let it run over night.  In the morning the program was still chugging along.  I advanced the paper feed on the dot-matrix lineprinter -- the kind that used continuous feed paper with perforated edges and holes on each side.   Into view came 3 solutions represented by a string of numbers.   A quick check verified that I was now a genius.  

Page 1 of 1