## Alec Mihailovs

Dr. Aleksandrs Mihailovs

## 4470 Reputation

20 years, 18 days
Mihailovs, Inc.
Owner, President, and CEO
Tyngsboro, Massachusetts, United States

## Social Networks and Content at Maplesoft.com

I received my Ph.D. from the University of Pennsylvania in 1998 and I have been teaching since then at SUNY Oneonta for 1 year, at Shepherd University for 5 years, at Tennessee Tech for 2 years, at Lane College for 1 year, and this year I taught at the University of Massachusetts Lowell. My research interests include Representation Theory and Combinatorics.

## 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),

## Factoring mod 2...

Try following,

```Factor(a^4 + a^2*b^2 + b^4 + a^2*b*c + a*b^2*c + a^2*c^2 + a*b*c^2 +
b^2*c^2 + c^4) mod 2;
```

I couldn't get an answer in a reasonable time and interrupted calculations.

Alec

## Medium Image...

About a year ago I posted about the following bug - check your files, any image that you posted, Get code for different size, Medium Image.

The code has double </a> at the end, i.e. </a></a> which is wrong. It should be only one </a> at the end.

Now, not only that bug was not fixed  (how hard that could be, really?), but I also wasn't able to find my post about it - very probably it was just deleted instead of fixing the bug.

Alec

## An infinite loop? with residue...

The following seems to be putting Maple into an infinite loop, and I wasn't able to stop it by pushing the Interrupt button,

`residue(1/sqrt(1+x^4),x=(1+I)/sqrt(2));`

Alec

## Increments and switch...

With some recent additions to the Maple language, such as ~ in Maple 13, it would be natural to return to the basics and add two other standard in other languages constructions.

First, I would like to be able to write something like s += 1; instead of s:= s+1; as well as as s*=2; instead of s:=s*2;

Second - switch. That was discussed a couple of times earlier on this site, I think.

Alec

 4 5 6 7 8 9 10 Last Page 6 of 23
﻿