Applications, Examples and Libraries

Share your work here

I'm one of several technical writers at Maplesoft.  It's our job to craft the text in our brochures and user stories, and on our web site.  We all have differing styles, but we share a common goal; we want to write in a manner that’s technically compelling but simple to understand.

After recently exploring Maple’s string manipulation tools, I was surprised to find a command that measures the readability of a sample of English text.  It seems that as well as making you a better mathematician, Maple will poke and prod you into being a better writer.

StringTools[Readability] returns a measure of readability called the SMOG index (but, when asked, will also give the Flesch Reading Ease, Flesch-Kincaid Grade Level Formula, Automated Readability and the Coleman-Law indices).

These measures do not gauge the quality of the writing, its grammatical correctness, or account for specialized discipline-specific vocabulary. They simply use guidelines determined from in-the-field studies (largely conducted in the US) to quantify the degree of education or effort it takes to understand a sample of text.  Additionally, the calibration of the results against the required reading effort is only meaningful for readers whose native language is English, and whose schooling resembles that of the US system.

The SMOG index wins an award for the most amusing acronym of the month: Simple Measure of Gobbledegook. It's calculated with the following empirical formula.

 It returns the years of education (that is, the US grade level) required to completely understand a sample of text.  Typically, Newsweek has a SMOG index of 10 to 11, the New York Times 13 to 15, and the Harvard Law Review 17 to 18.

I was recently asked to describe MapleSim in less than 70 words; this was the result:

MapleSim is a tool for multi-domain physical modeling and control systems development.  Physical components and signal-flow blocks can be connected to create models that map onto the real system. It features an integrated environment in which the system equations can be automatically generated and analyzed, and new physical components created. It contains tools for optimized code generation, controls analysis and design documentation.

This has a SMOG index of 15.5, which implies the reader needs a university education for complete comprehension.  Since that’s the target audience, I guess I’m in the right ballpark.

As I write this post, I know I’m guilty of making many readability errors.  Are my fellow Maplesoft bloggers as guilty?

To answer this question, I used Maple to calculate the SMOG index for all the blog posts on Maplesoft.com (but first stripping out code snippets or URLs that would distort the score).  The top 10 and the bottom 10 scores are given below.

 

The Ten Most Readable Blog Posts

 

Rank

Title

Author

SMOG Index

1

Who Needs Math?

Fred Kern

10.2

2

China on my Mind

Fred Kern

10.8

3

Maple Goes Social (Networking)

Tom Lee

10.9

4

Top 10 things to evangelize about …

Tom Lee

11.0

5=

“Every time I walk into math class a little part of me dies”

Tom Lee

 

11.1

 

5=

India on my Mind

Fred Kern

11.1

7=

The Physics of Santa Claus

Stephanie Rozek

12.1

7=

Stringing Me Along

Samir Khan

12.1

9

A Better Tomorrow in Engineering Software

Samir Khan

12.2

10

Good Vibrations

Samir Khan

12.6

 

The Ten Least Readable Blog Posts

 

Rank

Title

Author

SMOG Index

30=

An Animated Discussion about Pendulums

Samir Khan

15.4

30=

Algebraic Surface Blending

Tom Lee

15.4

32

An Optimal Day

Tom Lee

15.5

33

Repaying Old Debts

Tom Lee

15.6

34

Taking the Lead

Tom Lee

15.8

36

Postcards from the road: Part 1 -- On rocket science

Tom Lee

 

16.0

35

Postcard from the road: Found in translation Part II

Tom Lee

16.3

37

Postcard from the road: Found in translation Part I

Tom Lee

16.5

38

Physical Modeling - Killer Application No. 2 for Symbolics

Laurent Bernardin

 

16.7

 

39

Let's Get Physical

Samir Khan

18.1

Well...it appears that I’ve written some of the most readable posts and the single least readable post.  The two least readable blog posts are those that explore abstract, high-level ideas (and hence demand more sophisticated writing), while the most readable blog posts are essentially opinion pieces.

Other than that, the only conclusion we can make is that good writers tend to write to the level of comprehension of the intended audience and the material; they don’t unnecessarily dumb down the sophistication of their writing to the lowest common denominator, or write to a level that’s beyond the scope of the material.

I’ve attached a Maple worksheet that helps you explore the readability of text using all of the measures in StringTools[Readability].  You may want to use it to write a more readable blog post than this one.

This is a follow-up to an earlier post about CovarianceMatrix.

There are several ways in which Statistics:-CorrelationMatrix can be improved.

CorrelationMatrix shares some inefficiencies with CovarianceMatrix, by computing correlations between the n columns, pairwise. But in doing so it also computes...

Some years ago, before the advent of the Statistics package, a colleague asked for a fast way to generate thousands of normally distributed random numbers in Maple. The suggestion that worked quickest and most easily (using existing, simple Maple Library routines) was to generate random deviates using the usual formula associated with the distribution. But the key was to replace the scalar values (representing the uniformly distributed input) with a whole Matrix of input values....

It is some time ago, that I was fighting with that model and how
to estimate the 3 parameters (until recognizing that one may want
restrictions for them).
Essentially one uses the statistics of the underlying data to get
a reasonable starting guess. 
For an estimation then one can use the Optimization package.
The gradients involved are best coded as a floating point library,
which here is done through a DLL (it should work on all Windows OS),
code in C is included for that.
Meanwhile all can be done using 'Compiler:-compile' or the Watcom
compiler delivered with Maple.
I left that older sheet as it is - in Maple 9 (may be one should
brush it up for concurrent Maple versions, they are grumbling a bit
about the code) and hope it is of interest despite of that.

Maple sheet: www.mapleprimes.com/files/102_Garch.mws
DLL + code:  www.mapleprimes.com/files/102_Garch.dll.zip
as a pdf:    www.mapleprimes.com/files/102_Garch.mws.pdf

 

Well, we've officially joined the web 2.0 revolution :) ... Maplesoft now has a page on Facebook.Come check it out and become a fan!

The Facebook page is intended to be a place for our “fans” to gather, share ideas and talk about their Maple experiences. The page will continue to be updated with interesting photos, videos (including a great one of some of our staff trying to work off the Christmas weight gain!...

A colleague of mine recently mentioned something to me about an article that circulates every year during the holiday season, entitled “The Physics of Santa Claus”. This was news to me, so I ran a few Google searches to find out what she was talking about.

 

It seemed that some enterprising person had taken the time to go through and explain just what is involved in Santa’s Christmas Eve trip around the world delivering presents. How many households does he have to visit? How much do all those presents really weigh? How fast do the reindeer need to fly in order to get it all done in a finite amount of time? There is much speculation as to the origins of this piece; the general consensus seems to be that it began life published in SPY magazine in the early 1990s. Whatever the true story, it’s still an entertaining read in 2008.

I’ve taken some time to update the original with more current data – for instance, it seems the world’s population has grown a bit in the last 20 years. According to the Population Reference Bureau, the world population in 2008 was approximately 6,705 billion; 28% of these are children (defined as being under 15):

In fact, making some assumptions about the percentage of these children that celebrate Christmas and the number of children per household, it turns out that Santa needs to visit close to 200 million homes in one night.

We assume he distributes gifts from 5 pm to midnight, or for 7 hours. Due to the Earth's rotation, there is an overall time difference of 24 hours between different time zones, so we can therefore say that Santa has 31 hours to finish his work (assuming he logically travels east to west). Visiting 200 million homes in 31 hours means that Santa has to visit approximately 1586 homes per second:

This gives him about 1/1600th of a second to do everything at each home, such as parking his sleigh, looking for the right gifts, climbing down the sleigh and chimney, binge on snacks, fill the stockings, come up again and rush to his next stop!

For the complete details of his annual trip, visit the Applications Center where I’ve posted the Maple document in which I’ve recreated the Santa calculations. Happy Holidays!!

We are happy to announce Maplesoft's latest solution for modeling and simulation is now available!  For those of you who are not familiar with the product, it is a high-performance multi-domain modeling and simulation tool which will revolutionize how you bring products to market.

To learn more about MapleSim follow this link.

Recently, I was reading about random.org again.  It is an online random number generating service that uses atmospheric noise gathered from radios tuned between stations as a source of randomness.  It has been running more or less continuously for about ten years.   On their analysis page there is a nice pair of bitmaps (scroll down past the Dilbert comic) that contrast their random bits with those from one version of the PHP rand() function. Basically this demonstrates how easy it is to create a pseudo-random number generator that is periodic with too small of a period.

I decided to take a look at Maple's random number generator in comparison.

 

The attached work sheet teaches you the fundamental concepts behind the antiderivative.

The examples in this worksheet are entirely done in an interactive video tutorial - follow the link below:

 (Ctrl+Click on the link to view the video)

Antiderivatives - Video Tutorial

 

Enjoy!

 

The attached worksheet is a wonderful introduction to the concept of obtaining the area under a curve.

You'll see how easy it is to learn how to find the limit of the sum of a series using Maple.

An interactive video tutorial that shows you how to do Riemann sums really fast is linked below:

(Ctrl+Click on the link to view the video)

Riemann Sums...

In this previous post, an example is shown that demonstrates the potential problems that can arise following symbolic conversions such as from sqrt(x^2)  to x^(1/2).

Here x is an unknown symbol. The difficulties include the fact that, while `sqrt` can be smart about simplifying numeric values (eg. integers, rationals) the `^` operator has no such opportunity. Once the conversion from `sqrt`...

The attached Maple worksheet gives an outline of the basics of Concavity, Points of Inflection and the Second Derivative Test, commonly encountered problems, and how to use Maple to solve them.

The attached Maple worksheet gives an outline of the basics of increasing and decreasing functions, commonly encountered problems, and how to use Maple to solve them.

Download Attached File

The attached Maple worksheet gives an outline of the basics of limits, commonly encountered problems, and how to use Maple to solve your limit problems.

Download Attached File

Everybody is invited to Maple Wiki .

It is hosted on Maple Advisor, a Maple community site independent of Maplesoft and/or Mapleprimes.

The site has started just a couple of days ago and doesn't have much of a content yet.

First 70 71 72 73 74 75 76 Page 72 of 76