MaplePrimes Posts

MaplePrimes Posts are for sharing your experiences, techniques and opinions about Maple, MapleSim and related products, as well as general interests in math and computing.

Latest Post
  • Latest Posts Feed
  • I stumbled upon this interesting quirk.  My apologies if it's already been brought up.  This is for Maple 12 on a 32 bit windows machine.  It's possibly different for newer versions and operating systems. 

    restart;
    gc();
    memory usage displays 1.37M

    restart; gc();
    memory usage displays 0.43M

    The point was that it uses more than a half a megabyte more if gc() is put on a seperate line ... interesting..

    This describes in more detail (with permission and citation) the method posted here of solving problem 2 in the XKCD comic Substitute.

     

    Download RaptorMath.mw

     

    Today is my birthday, and in fact it is also the birthday of at least one other Maplesoft employee (not surprising since more than 23 people work here - considering the generalized birthday problem, I even know of 3 people here who share the same birthday).  Of course, it turns out that birthdays are not evenly distributed through out the year and so I wanted to know if someone with an August birthday is more likely to share than someone with an April birthday. 

    My goal is to make maple better so here I am going to point
    out another annoying thing in Maple. If you for example want to have
    two plots side by side (I know your question is about two plots in the
    same chart but I still think is relevant) in an array then such a array becomes very hard to delete.

    A:=Aray(1..2):

    A[1]:=plot(....)
    A[2]:=plot(...):

    display(A);

     

    plot1    plot2


    Now the Array A...

    Look at this article (Its loading can take a few minutes: approximately 5 MB.). All those pictures could be created with Maple.

    PS. Working link to  the article.

    A new version of the Maple T.A. MAA Placement Test Suite is now available.  The latest release includes a new Calculus Concepts Readiness Test, based on modern research into calculus assessment. It also includes performance improvements when dealing with large student populations, and tools for integration with Moodle™ and other course management systems. To learn more, visit What’s New in PTS 6

    Just for fun, I've created a Pac-Man using Maple's plot command:

    body := plottools[pieslice]([0, 0], 5, (1/6)*Pi .. 11*Pi*(1/6), color = yellow):
    eye := plottools[pieslice]([-1, 2], .5, 0 .. 2*Pi, color = black, filled = true):
    plots[display](eye, body, axes = none);

    The hairpiece for Ms. Pac-Man can be added easily:

    Continuing on in this series of posts, here is a way to test the randomness of a sequence of bits from a PRNG that is the appropriate to the first morning back after the August long weekend.  It is a very fast, and not very formal test done by checking how well a sequence compresses. This is really easy in Maple 14, with the new commands ?StringTools:-Compress and StringTools:-Uncompress which use ...

    I've been seeing a lot of double posts lately which means there is a site problem/issue.  I hope the cause of this issue is under investigation for improved updates for mapleprimes.

    I'm finding that posts get burried very quickly in the new forum. 

    Also why can't we have the second level selection look like the first level (as seen here www.mapleprimes.com/posts)  ?  Unexpanded question topics (no summary)

    I find the summary info as added fluff the forum doesn't need. 

    So do something like as the old one was (simplified with topics only here just for clarity and directory structure)

    I'd like to suggest another improvement to cut down on noise in the result of a Mapleprimes Search.

    At present, the appearance of a searched keyword in summary pages for tag hits causes those summary pages to be included in the search results. Maybe an example would help explain it:

    Do an internal Mapleprimes Search for the word convex. Some of the pages with "convex" in their title are included in the results (which is fine). But some of the...

    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:

    restart:
    with(Maplets[Elements]):with(Maplets[Tools]):
    StartEngine();

    alphabet := "abcdefghijklmnopqrstuvwxyz":

    TestFont:=Maplet(
      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 http://www.sevenforums.com/tutorials/337-cleartype-text-tuner.html .)

    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

    A while back, someone asked me for a good way to plot a Klein Bottle in Maple. I didn't have a good answer at the time, but I recently stumbled upon the following, which does a pretty good job if you don't mind the use of Heaviside in the parameterization.

    plot3d(
    [4*(1-1/2*cos(u))*sin(v),
    6*cos(u)*(1+sin(u))+4*(1-1/2*cos(u))*(cos(u)*(1-Heaviside(u-Pi))+Heaviside(u-Pi))*cos(v+Pi*Heaviside(u-Pi)),

    In a previous post, I promised to write about testing the quality of pseudo-random number sequences.  I'll post later about some of the statistical tests often used, but I first wanted to mention a sort of practical test one can do. One of the many things you might want to do with pseudorandomly generated numbers is Monte Carlo integration/simulatation/etc.  As mentioned by acer in this comment, Monte Carlo integration can be shown to work better with some of the pseudorandom number generators (PRNGs) which are considered inferior in a statistical sense.  In this post, we will play with a simple Monte Carlo approximation of π.

    I would like to see a valid reason for having the thumbs down voting for an original first posted question.

    Thumbs down, because it's not a good question? (That's not a good reason)  Thumbs down because bad code? (but that would be cleared up in the answers)  Thumbs down because ...

    It's apparent the administrator will not get rid of the thumbs voting system (sigh).  As a compromise I would like to suggest as I have above, remove...

    First 125 126 127 128 129 130 131 Last Page 127 of 297