An introduction to Axiom (3): Calculus

This is the third in a sequence of posts about the open source CAS Axiom. The previous post can be found at http://amca01.wordpress.com/2008/05/25/an-introduction-to-axiom-2/.

In this post I shall be looking at Axiom’s calculus abilities, starting with every beginning student’s love, limits:

Limits in Axiom

Note here the use of %plusInfinity which is positive infinity. Axiom also has %minusInfinity. Limits are also possible for complex variables, using complexLimit, and %infinity for complex infinity.

After limits there are derivatives, implemented in Axiom with D. A third optional parameter gives the order of the derivative:

Derivatives in Axiom

Integration is performed with the integrate command. Sometimes Axiom gets worried that an integrand may have a pole in the region of integration, in which case the addition of the string "noPole" will alleviate its fears:

Integration in Axiom

Now for some series. There are several different commands for producing a power series, of which series is the most general. The following three commands show some of the power of Axiom’s type system. Since the first two outputs are of type UnivariatePuiseuxSeries, arithmetic on them will produce an output also of that type. Thus the division command produces the series for \tan(x):

Series in Axiom

As an example of Axiom’s calculus power, let’s use the series command as a generating function. In particular we shall construct the Euler polynomials
E_n(x) defined by

\displaystyle{\frac{2e^{xt}}{e^t+1}=\sum^\infty_{n=0}E_n(x)\frac{t^n}{n!}}.

So first create the series, and then extract a particular polynomial from it:

A generating function in Axiom

Finally, some differential equations. Note the use of the solve command – since the equation to be solved is a differential equation, solveproduces an appropriate solution. The main thing to note here is the prior definition of the unknown function as an operator:

Differential equations in Axiom

One Response

  1. [...] An introduction to Axiom (3) [...]

Leave a Reply