Thomas Richard posted a brute force
solution to the variant of the IBM "Ponder This" challenge. However, it isn't truly a brute force technique; though the coding is elaborate, the selection is straightforward.
Finding the maximum value for that variant is quite easy, it can be done in your head. Here's a straightforward, non-recursive code that returns the maximum number meeting the conditions.
It would be convenient if the subscripted version of
type/integer could handle
-infinity. Then, to specify an integer greater than, say, 1, we could do
type(i, integer[2..infinity]). Currently I handle this as
type(i, And(integer,Range(1,infinity))) which is not as nice, particularly because it isn't clear that 1 is excluded.
The drawback of doing this is that it implies that
infinity is allowed. However, because
infinity is not an integer, it seems reasonable that it would return fals
Here's a quick and dirty solution to the following task:
Arrange digits 1,...,9 so that the first two form a number divisible by 2, the first three form a number divisible by 3, etc..
See Joe Riel's blog for more information.
Welcome. If you have questions on using Maple, try posting on our two forums: New User's "How Do I? (Newbie)"
forum, or Experienced User's "How Do I"
For posts where there's an attachment, the CC information touchtes the attachment info ... Firefox 1.0.1
The IBM Research August 2005 Ponder This
challenge is out. The attached 11 line Maple procedure solves it in just under 2.5 seconds. Don't look at my solution if you want to do this yourself.
Good idea to provide a moderated place ...
The look is something i have to get used to it, find the
following screen shots for Netscape 4.7, IE or Mozilla (i do
use larger fonts on my PC), it looks a little bit strange,
look here: www.axelvogt.de/maplekram/forum_screenshots.zip
Thanks to all those who are getting this MaplePrimes ball rolling. Please note that we have a long weekend in Ontario (home of Maplesoft) so some of the responses to your comments from our team may be a bit delayed. Happy "Civic Holiday"! (that's what we poetic Ontarians call this day :-) )
just noticed that the default width for the text box when composing a message is too wide by 3-4 characters for a 1024x768 resolution.
The standard Maple worksheet uses color to distinguish elements. This is convenient when viewed on the screen, however, when printing to a monochromatic printer, colored text frequently is too light. I prefer to have it printed as dark black. This tip describes one way to do that.
The technique is to apply a previously created style file that specifies all the fonts as being black. The easiest way to do this is to first create a user style file that has has your default settings, then manually edit this file to change the foreground color of all fonts to black. You could manually change the colors using the Maple Format -> Styles submenu; however, doing so is more work than editing the file in an external editor.
I described how to change the default zoom setting for the Maple gui by modifying the appropriate initialization file. Another useful setting to change is the default background color of the help browser. This is done by modifying, in the initialization file, the line HelpBGColor=
. I set it to HelpBGColor=240 240 240
, that gives a light gray background that is less harsh on my eyes. The three fields should be integers from 0 to 255; they correspond to the red, green, and blue components of the color.
A poster on comp.soft-sys.math.maple recently asked how to set the default zoom for worksheets to a non-standard value; the jump from 100% to 150% being rather large.
This can be readily accomplished by modifying the proper Maple initialization file.
- the file is ~/.maple10rc
- Mac OS X
- the file is Maple 10 Preferences in Library/Preferences under your user directory (thanks to Tim Lahey).
- the file is Maple10.ini (not maple.ini). The maple help pages do not mention this file and I do not have Windows, so cannot check. I have received reports that it is located in the users subdirectory under the Maple installation directory, but also reports that it is in c:\Documents and Settings\JoeUser, where JoeUser is your user name. My advice, until this is cleared up, is to search for all instances of this file and use the newest one. Maple writes to this file whenever the gui exits, so the newest one should be the right one. You might send me a note on what you've found (along with which version of Maple you are using); I'll update this accordingly.
Is there an option to mark all posts read? Either for individual forums or for the whole board?
My signature isn't showing up.
When I upgraded my Mac G5 from OS 10.3 to OS 10.4, the OS X versions of Maple (Maple 9.5 and Maple 10) continued to work. But the classic versions of Maple (Maple 7 and Maple Vr5) quit working. It turns out that the classic versions will run in OS 10.4 if the following files (perhaps from an old "System Folder") are moved into the "Extensions" folder of the active classic OS 9 "System Folder":