Applications, Examples and Libraries

Share your work here

I would like to pay the attention of the MaplePrimes users
to a Robert Chero application.
This is a Maple package on graphics, which can be implemented in Maple as a usual package.
It  has community rating 4.5 stars. This package can be downloaded from http://www.maplesoft.com/applications/view.aspx?SID=1671.
It was submitted in 2005 when MaplePrimes started. Because of this reason this...

As a user of Maple 13, namely in computations on General Relativity & Tensor Calculus, I would like to let you know I just got, using Maple 13, the WRONG SIGN (positive Riemann scalar curvature in stead of correct NEGATIVE Riemann scalar curvature) in studying a threefold used as a 'Public Space' by Milne many years ago.

The square of the distance on the said threefold is dE^2=dR^2+(c*t0)^2*sinh(R/(c*t0))^2*(dtheta^2+sin(theta)^2*dphi^2) and you might be interested...

 

This is the fourth and final part of a blog post, the first three parts of which can be found here: Generating Samples from Custom Probability Distributions (I)

As alluded to in my previous post in this series, one of the most straight forward ways to test if a PRNG is generating good random sequences is by examining the frequency of 0's and 1's.  This is just a couple lines in Maple using Statistics:

(**) r1 := rand(0..1):L := [seq(r1(), i=1..10000)]:
(**) n := nops(L); tally := `+`(op(L));
(**) Statistics:-ChiSquareGoodnessOfFitTest(
[n-tally, tally], [n/2, n/2], ':-output'=':-hypothesis');

I thought for sure something like this would have already been done in Maple (mapleprimes).  I see it's already been done over at Mathematica.  I must admit I am a bit jealous at how much Mathematica users have done.  So anyways ... something simple

for i from 1 to 10 do
  for j from 1 to 10 do

This is the third post in a four-part series; the earlier posts are Generating...

This is the second post in a four-part series that started with this post: Generating...

Maple's Statistics package contains many predefined probability distributions; well-known ones such as the normal distribution and lesser-known ones such as the Gumbel distribution. For these distributions, we ship efficient algorithms that can quickly generate a large number of sample points. To generate a sample of size 106 of both of these distributions, and print the time it took to do this (in seconds), you can run the following:

with(Statistics):

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. 

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.

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 ...

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 π.

There are two pieces of extended functionality that I quite often want from the Maple Compiler. The first (task A) is to be able to link in and use an arbitrary function from some other external ("3rd party") shared library, within my Compile'd Maple procedure. The second (task B) is to directly call the compiled Maple procedure from within some computational routine in a 3rd party shared library (which I would then access using define_external). This post is about the first of those, task A.

First 66 67 68 69 70 71 72 Last Page 68 of 76