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
  • There is a new template for MapleSim that allows you to import your Simulink models into Maple.  Once imported, you can quickly create a custom component that can be used in MapleSim.

    Click here for more information:  www.maplesoft.com/applications/app_center_view.aspx

    Requires BlockImporter and MATLAB/Simulink, version 2007b or later, to execute.

    Mike Kucera and I are happy to announce the availability of MapleMIX, a partial evaluator for Maple. Partial evaluation (PE) is a program transformation technique that uses a subset of the inputs to a program to generate a specialized version of the program that will then accept the rest of the inputs. With PE it is possible to write algorithms in a highly general and abstracted form, and then automatically extract optimized versions of the algorithm specialized for certain inputs.

    Wolfram Alpha is launching in May - that looks interesting.

    Alec

    You can duplicate this in Maple 11 or Maple 12: restart; L:=Array(1..10, j->rand(0..1)()); L := [0, 0, 0, 1, 0, 1, 1, 1, 0, 1] restart; L:=Array(1..10, j->rand(0..1)()); L := [0, 0, 0, 1, 0, 1, 1, 1, 0, 1] restart; L:=Array(1..10, j->rand(0..1)()); L := [0, 0, 0, 1, 0, 1, 1, 1, 0, 1] restart; L:=Array(1..10, j->rand(0..1)()); L := [0, 0, 0, 1, 0, 1, 1, 1, 0, 1] restart; L:=Array(1..10, j->rand(0..1)()); L := [0, 0, 0, 1, 0, 1, 1, 1, 0, 1]

    The maplev emacs mode provides a means to communicate to the tty (command-line) maple process.  Alas, the method is rather crude; I designed it that way because it was all I knew how to do.  However, I would really like to improve it; I'm looking for advice. 

    I was considering what sorts of "normally coded" things might get broken by the loading of a Maple Library package and the ensuing rebinding of names.

    And so I tried this,

    > with(RealDomain): # rebinds sin
    
    > convert( cos(x), sin );
                                         sin(2 x)
                                     1/2 --------
                                          sin(x)
    

    I was actually surprised to see that work OK. I was expecting `convert`...

    It’s no secret that I have a soft spot for matters of space and space exploration … so even if we have all sorts of great news about modeling advancements in automotive, or electronics, it will never be as thrilling (yes this is the right word) as the things I encounter through my work at Maplesoft that deal with space. In countless blog posts, I’ve commented on aerospace engineering and space exploration, and once again this week, several events have confirmed that inside me, there is still this wide eyed boy staring into the night sky in amazement …

    Great playwrights and poets are drummers – they craft the written word so that the rhythm and the cadence of their dialogue when spoken are a drumbeat, and combine with the meaning of the language to create emotion.  Shakespeare, for example, used syllables as his drumbeats (as did many other playwrights and poets).  Analyzing linguistic structure isn’t a common application for a math tool (and for a very good reason), but can Maple tell us more about Shakespeare’s favourite drumbeat?

    We need to find some way of programmatically counting the number of syllables in a word. In an irregular language like English, this is a hit-and-miss affair.  Maple’s SyllableLength command, for example, tallies the number of vowel-consonant changes in a word to calculate the number of syllables (but increases the count by one if the word ends in a “y”.)  While this is a good start, for many words it’s merely an approximation. Conscious and serious, for example, have the same number of vowel-constant changes, but a different number of syllables when spoken.

    I chose to modify the basic premise of SyllableLength with several empirical adjustments that give a more accurate tally of the number of syllables in a word.  This simply involves increasing or decreasing the calculated number of vowel-consonant changes if a word contains a particular letter structure.  For example, terrible has two vowel-consonant changes, but we increase this count by one (to calculate the number of syllables) because it ends in ble.

    Although we can implement a number of these workarounds, this (admittedly very clumsy) approach is never going to account for the full irregularity of the English language, and we have to accept the results in that light.  The attached worksheet contains the chosen approach, and I’d appreciate feedback on more accurate ways of programmatically counting the number of syllables in a word.

    So, let’s start by examining the monologue in Act 3 Scene 1 of Henry V.  Here’s the number of syllables per line as computed by the attached worksheet.

    “Once more unto the breach, dear friends, once more;”
    10 syllables

    “Or close the wall up with our English dead”
    10 syllables

    “In peace there’s nothing so becomes a man”
    10 syllables

    “As modest stillness and humility”
    10 syllables

    “But when the blast of war blows in our ears,”
    10 syllables

    “Then imitate the action of the tiger”
    11 syllables

    So it looks like Shakespeare used ten beats, or syllables, per line, but placed an extra syllable in the final quoted line.  In fact, he often wrote monologues in a style called iambic pentameter, in which each line consists of five syllable-pairs (the first syllable in each pair being unstressed and the second stressed)

    In much the same way that the darkening of a cinema is a visual cue that implies that a movie is about to begin, Shakespeare used iambic pentameter as an audio cue to signify emotionally resonant or particularly important dialogue, occasionally varying the number of syllables (or the number of polysyllabic words) per line to create a sense of discord, or a quickening or slowing of pace.

    You might want to check out the following video – it’s Kenneth Brannagh’s version of the full speech in his 1989 film adaptation of Henry V.

    Here’s another example from Romeo and Juliet (Act 3 Scene 5), together with the syllable counts given by Maple.

    “Wilt thou be gone? It is not yet near day”
    10 syllables

    “It was the nightingale, and not the lark”
    10 syllables

    “That pierced the fearful hollow of thine ear”
    11 syllables

    “Nightly she sings on yond pomegranate tree”
    11 syllables

    “Believe me, love, it was the nightingale”
    10 syllables

    Again, Shakespeare shifts between 10 and 11 syllables per line to indicate emotionally resonant and poetic dialogue.

    Shakespeare did not write entirely in verse with a defined metric structure.  He also wrote in free prose with no defined syllable structure, sometimes to indicate that the speaker was vulgar or mentally unbalanced, or in short question-answer dialogue.

    Given the limitations of a purely programmatic approach, we’re never going to fully deconstruct the beauty of Shakespeare’s language.  Maple can, however, offer a small insight into how he controlled the rhythm and pace of his dialogue.

    Download the attachment: Shakespeare.mw

    The following type of difference in behaviour, due to deterministic ordering of sets as introduced in Maple 12, may affect implementations of some algorithms.

        |\^/|     Maple 11 (X86 64 LINUX)
    ._|\|   |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2007
     \  MAPLE  /  All rights reserved. Maple is a trademark of
     <____ ____>  Waterloo Maple Inc.
          |       Type ? for help.
    
    > seq(x, x in {a,b,c,d,e,f,g}) assuming d>0;
       ...

    I have recently been working on a problem using fractional calculus and have come across something in Maple's fracdiff  command that makes no sense to me.

    Consider the function y:=a+b*(x-q)+c*(x-q)^2

    z:=subs(x=q,fracdiff(y,x,1)) gives the correct answer of z:=b, z:=subs(x=q,fracdiff(y,x,2)) gives the correct answer of z:=2c, z:=subs(x=q,fracdiff(y,x,3/2)) gives the answer of z:=4*sqrt(q)*c/sqrt(pi)

    Last week I had the distinct pleasure of attending the retirement celebration for Dr. Keith Geddes, founder of Maplesoft and inventor of the Maple system. I’ve known Keith for over 20 years now and I consider him one of the few people I know well who has had, without exaggeration, a profound impact on the world.

    Keith earned his chops as a numerical analyst in the 1970’s. Then as a young faculty member at the University of Waterloo, he developed an interest in symbolic computation. The lore has it that he had no intention of designing a complete new system but wanted to use the “grand-daddy” of symbolic systems MACSYMA from MIT. During those wild frontier days of computing, the only way to get access to such specialized systems was remote dialing to the MIT machine in the wee hours of the night (to reduce phone costs),  using  a 90 Baud modem … those were the days!

    Hi! The following worksheet considers two methods for using given bases to find the change-of-coordinate matrices and coordinate vectors. One method uses matrix manipulation and the second uses the solving of systems of equations. The worksheet uses a Brief Review to describe both processes and the examples are used to show you how to use both processes as well as to illustrate how they are related.

    Hi!

    This worksheet contains three examples that show you how to:

     

    • Obtain the quadratic form
    • Obtain the matrix of quadratic form
    • Diagonalize the quadratic form to transform it into a

    In a previous post  I asked what happend to the Casio PDA that could run a special version of Maple V, as I am interested in purchasing "something" that would provided symbolic capability in a portable format. As it appears that this particular Maple project died a horrible death, I am still searching for this particular mathematical nervana. One possibility is to use a netbook with Maple V, or a CAS calculator such as the HP 50g or the TI voyager. So I am interested hearing of anyones experiences/recommendations with any of these devices.

    I recently migrated to CentOS 5.2 Gnome.  I found that I often encounter loss of keyboard control.  Maple reacts well to my mouse, but to nothing from my keyboard.

    I don't know how to reproduce the phenomenon, but it often happens when I switch back from another desktop workspace.

    I found that when I open a new document and back, the keyboard control will return.  What's the problem?  Anyone else encountered the same problem?  How can I solve?

    Thanks!

    First 163 164 165 166 167 168 169 Last Page 165 of 297