alec's blog

alec's picture

Maplesoft sale statistics

Here is some statistics from the Cybernet Systems press release.

Overview of Maple

CEO - C. James Cooper
Number of employees - 122
Capital - 2.75 million dollars
Main shareholders - Keith O. Geddes (22%), C. James Cooper (19.8%)

Business results of past 3 years (in US dollars)

alec's picture

Shana Tova

alec's picture

Huffman Coding

Huffman coding can be implemented in Maple similarly to Python.

First, we need a set of character frequencies. It can be created from a string using the following procedure,

Freq:=s->map(x->rhs(x)=lhs(x),
    {StringTools:-CharacterFrequencies(s)});

For example (used in the wikipedia article),

alec's picture

Sage Facebook Group

Sage has a group on Facebook now. I've just became a fan.

Alec

alec's picture

Wolfram Alpha

Wolfram Alpha is launching in May - that looks interesting.

Alec

alec's picture

Producing music in Maple

Following the midi crash course written by Daniel White, and using a table of midi note numbers, it is rather easy to write a Maple procedure producing midi files. Here is an example that I posted in Simple Sounds thread, slightly modified by adding an instrument as a 3rd parameter:

alec's picture

Maple 12.02 is now available

Maple 12.02 is now available. The Maple 12.02 update includes enhancements in a variety of areas, including:

alec's picture

Reduce became free

Reduce became free and is available for download.

Alec

alec's picture

Lexical Table

In the recent discussion about patching, a question about patching a function f including local variables of a module or another function was discussed. For example, let it be defined as

A:=proc() global f,t; local x,y,z;
f:=()->x+y();
y:=()->z;
t:=()->x+z;
x,z:=0,1;
NULL end:
A();

Now,

op(f);
                            () -> x + y()
f();
                                  1

How to change it so that it would return 2 instead of 1, without reassigning it?

Syndicate content
}