Doug Meade



Douglas B. Meade <><
Math, USC, Columbia, SC 29208 E-mail:
Phone: (803) 777-6183 URL:

MaplePrimes Activity

These are Posts that have been published by Doug Meade

Recently I was presented with some code that had a seq command that used i as the index variable. While this code had been used in a number of applicaitons, it was now giving trouble.

seq( i^2, i=1..10 );
Error, illegal use of an object as a name

After a stroke of fortune it was discovered that the problem was that Maple's imaginary unit had been changed from I to i. Given that this change was made, the error message now made sense.

This example was reported to me after a Calculus II student encountered this ridiculous result:

f := (k+5)/sqrt(k^7+k^2):
Int( f, k=1..infinity ):
% = value( % );
| k + 5
| -------------- dk = -infinity
| (1/2)
/1 / 7 2\
\k + k /

A common example to emphasize that it is not OK to bring absolute values inside the integral compares

abs( int( cos(n*x), x=0..Pi ) ) asuming n::integer


int( abs( cos(n*x) ), x=0..Pi ) assuming n::integer

Maple correctly formulates the first to 0. But the second expression gives it more trouble, returning two messages:

Warning, unable to determine if (1/2)*Pi*(1+2*_Z7)/n is between 0 and Pi; try to use assumptions or use the AllSolutions option
Warning, unable to determine if (1/2)*Pi*(1+2*_Z8)/n is between 0 and Pi; try to use assumptions or use the AllSolutions option

A new edition of Maplets for Calculus  (M4C) is now available.  M4C v1.3 is a collection of 129 maplets for calculus students and instructors.  The 35 new maplets fill in some gaps in the coverage of precalculus and single variable calculus and begin to address multivariate topics. Each maplet provides a customized graphical user interface (using 2D and 3D graphics and animation) to provide immediate, step-by-step guidance through an endless supply of random ...

I recently noticed that the symbol font in my maplets was not appearing correctly when I ran them using Maple 13 or 14 on my Windows 7 laptop. Additional testing showed that while this was pretty standard on Windows 7, it happened on some, but not all, Windows XP systems.

By a stroke of fortune, my local inquiries about this problem suggested that I look at the Clear Type effect that can produce sharper results, particularly on newer LCD displays.

Before going into too many details, let's look at an example. Here's the code for a simple maplet:


alphabet := "abcdefghijklmnopqrstuvwxyz":

  Window[mainWin](title="Font Test", [
    [ "The two lines of text should show the alphabet in the Times font and then\n the Symbol font, but sometimes the Symbol font is not correctly rendered." ],
    [ "Times ",    Label( alphabet, font=Font("Times",18) ) ],
    [ "Symbol",    Label( alphabet, font=Font("Symbol",18) ) ],
    [ Button( "Done", Shutdown() ) ],
    [ "Version: ", Label( convert(interface(version),string) ) ]
Maplets[Display]( TestFont );

Copy these lines to a Maple worksheet (or document) and execute them, or save them to a text file with file extension .maplet, then double click on the file. The maplet should display two copies of the alphabet, the first with Times Roman font, the second with Symbol font. (The version of Maple running the maplet is given at the very bottom of the maplet.)

If you are running Maple 12 or older, I expect you'll see two different versions of the alphabet, like this:

If you are running Maple 14, I expect the line that should be in Symbol font will be in a poor quality Latin font, like this:

I can't predict which outcome you will see if the maplet is run in Maple 13.

What controls this behavior is the "effects" setting for the appearance settings for your display. If you are using the Clear Type effect, you will not see the Symbol font.

This problem is appearing now because up until Windows 7, the ClearType effect was not the default.

Along with the change in the default effect, the way in which users control the effect changed with the introduction of Windows 7.

Prior to Windows 7, access the Properties popup by right-clicking on your desktop. Then select the Appearance tab and click on the Effects button. In the second dropdown menu you can choose either Standard or ClearType. To see the symbol font (in Maple 13 and later), make sure this is set to Standard.

In Windows 7, go to the start menu and search for cttune.exe. Start the ClearType Text Tuner application. In the first popup window, be sure the Turn on ClearType box is unchecked. (For full instructions, including screenshots, please see .)

When this effect is toggled, the effect changes immediately.

I can't call this a bug, but it is something that I think should be included somewhere in Maple's documentation.

Thanks for listening, I hope this is of use to someone else

1 2 3 4 5 6 7 Last Page 1 of 9