Imaxima and imath home page adds inline graph tutorial
Subject: Imaxima and imath home page adds inline graph tutorial
From: John Lapeyre
Date: Sat, 30 Aug 2008 19:03:55 -0700
I have recoded a half dozen functions in my current project
from maxima to lisp, just for the sake of learning it. But
lisp is still slow going for me.
I'll get around to doing the following, but later.
It looks like I'd want to modify the function tex-matrix in
imaxima.lisp. It would check if check to see if the matrix
is a (single) row or (single) column matrix and then do the
following:
These are the elements of the row matrix
(a_1 a_2 a_3 ... a_n)
with n = 2^m for some positive integer m.
For integer i from 1 to n:
If a_1 = 0, do nothing,
otherwise, write i in binary form as a string b_i, padded with
leading zeros for a total of m binary digits. Then print a
term like this
a_i |b_i>
put "+" signs between the terms.
Eg (a 0 0 b) would be
a |00> + b |11>
And actually the |> symbols are \lvert and \rangle