jpmay's blog

jpmay's picture

Biggest Bignum

On his blog, Jaime Zawinski (of Netscape and XEmacs fame) relates a tale of finding limits in the (supposedly) unlimited big number representation on a TI Lisp machine in the early 1990s. It is an amusing story, and it makes me wonder if GnuMP is has a similar limit on a different scale.  Or in other words, is there a positive integer small enough to fit into memory  (assuming 64 bit address space) but that cannot actually be constructed in GnuMP due to limits in the implementation? Does someone here know enough about the GnuMP internals to give the answer?

jpmay's picture

Stupid SVD Tricks Part 1

Of all the ways to decompose a numerical (floating point) matrix, my favorite is the singular value decomposition (SVD).  There are a lot of applications of the SVD (see my dissertation for one related to polynomial algebra) but my favorite ones are probably two applications related to image processing.

The first one I want to talk about comes from the cover of James Demmel's book "Applied Numerical Linear Algebra": image compression.  This example gives a really cool intuitive understanding of the Rank of Matrix and is also nice excuse to play with Maple's ImageTools package.

So, the first thing you need a test image. I used the classic image compression benchmark of a Mandrill.


jpmay's picture

Colouring Easter Eggs with Plots

I spotted this today whist wandering the blogosphere: Who Among You are Geek Enough to Decorate Your Easter Eggs in Mathematica? (via BoingBoing). Clearly there is a challenge here.

I am not a master of the plot command, but I would like to see what others can come up with. 

Here's a simple egg to start people off:

plots:-implicitplot3d((1/4)*x^2*(1+.1*z)+(1/4)*y^2*(1+.1*z)+z^2/2.75^2 = 1, x = -3 .. 3, y = -3 .. 3, z = -3 .. 3, grid = [20, 20, 20], style = patchnogrid, shading = zhue);

jpmay's picture

Labeling - For TTY Eyes Only

I use Maple primarily in a Unix text window (TTY or "command-line" Maple), so I am used to seeing common subexpression labeling in the output of my computations. However, in Maple 11, GUI users don't see subexpression labeling by default.  I'll begin by talking about subexpression labeling as it appears in TTY Maple, then I'll talk about it in the GUI.

For starters lets look at an example in which a single subexpression is labeled:

I got an interesting question about integration yesterday. The question was about the integral of the rather innocuous looking function = sqrt(1+sin(x)). The inside of the square root is always non-negative so the function is continuous (and bounded!) so it must have a continuous integral.

The question I was asked, was if the following result was a bug in Maple:

Int(sqrt(1+sin(x)),x) = (2*(sin(x)-1))*sqrt(1+sin(x))/cos(x)

since the right-hand side is definitely not continuous at x=-Pi/2 + 2*n*Pi!

Syndicate content
}