Installing TeTeX latex packages
Monday, February 28th, 2005Installing LaTeX packages under MikTeX, the windows distro I use, is painless: you just select them in a gui; consequently, I have all the available packages installed. On the other hand, you have to manually install LaTeX packages when you’re using TeTeX, the major *Nix TeX distribution. Since I barely know enough LaTeX as it is, without getting into the specifics of how kpathsea works, I’ve never installed any packages under TeTeX, even the ones that I really feel are necessary. Today, my laziness triumphed and I forced myself to learn how to install packages: I was working on my algebra homework, and was dreading typsetting polynomial long divison, when I realized that there is a package (polynom) which will handle it for you: you call it like (\polylongdivision{\frac{1}{2}x^2 + 2x}{x+1}} ) and it typesets the long division process for you! Hmm, hours of messing with spacing in tables, or learning how to install packages?
So here’s how to install latex packages, as gleaned (i.e. plagiarized) from the UK TeX FAQ:
(more…)
is convex iff for every two points
in its domain,
. Geometrically speaking,
function is the only positive function on
with certain properties (which I am too lazy to write here), and furthermore, as a side-effect of that proof, you get the intimidating identity
is bounded, and
is such that
, then the series
converges. The proposition itself didn’t interest me too much, it was the tools necessary to prove it that I wanted: the triangle inequality, the existence of supremums and infimums, and the nested interval theorem. After having taken 2 other upper level courses with Dr. Johnson, those (except the triangle inequality) are topics that we spend a lot of time on— we managed to free up a significant amount of time this semester for new material by proving all that stuff early on.
be such that
is within the intial set of
. Then
integrable on
and a subdivision
of
, for all subdivisions
of
. If we’re considering a rod whose volume
and density
vary along its length, how would we do that integration except via the Stieljes integral? I almost wished I hadn’t completed all my required mechanics classes, so I could bust out with that one on a homework assignment :).
. I suspect this mainly because as that difference between the
decreases, the difference term would approach
. We’ll see; supposedly he’s going to add derivatives to the toolbox sometime soon.![\Q[x] \Q[x]](/cz/latexrender/pictures/301e2bb0b6e9646cb427f264378415c9.png)
, we are trying to decide if
, neither of which is 1 or -1), and if so to determine its factors, or irreducible (any factorization of
and we assume it is reducible to
, without loss we can assume that
— because if not, we would just switch
.
such that
. Then
.
such that
is a divisor of
for
; you can use Lagrange polynomial interpolation to do this. Then test (using synthetic divison, for example) all these candidate
, where
are such that
:
, then return 

such that 



![%PS
% visualize the dog training problem
/dogpnts 1 array def
/sidelength 4 def
/nummoves 1000 def
/ptrad 1 def
/triangle [ [0 0] [sidelength 0] [ 60 cos sidelength mul 60 sin sidelength mul] ] def
dogpnts 0 [sidelength 60 cos mul sidelength 60 sin mul 3 div] put
/lastmoveindex 0 def
/curtrainer 0 def
/unit 36 def
/setup {
20 srand
unit unit scale
8.5 sidelength sub 2 div 11 sidelength sin 60 mul sub 2 div translate
1 unit div setlinewidth
} def
/drawtriangle {
/x1 triangle 0 get 0 get def
/y1 triangle 0 get 1 get def
/x2 triangle 1 get 0 get def
/y2 triangle 1 get 1 get def
/x3 triangle 2 get 0 get def
/y3 triangle 2 get 1 get def
newpath
x1 y1 moveto
x2 y2 lineto
x3 y3 lineto
closepath
stroke
} def
/drawdot {
dup
0 get /x exch def
1 get /y exch def
gsave
%1 0 0 setrgbcolor
newpath
x y ptrad unit div 0 360 arc
closepath
fill
grestore
} def
/getnewtrainer {
rand 3 mod
} def
/drawdogmove {
/lastmoveindex dogpnts length 1 sub def
/lastpnt dogpnts lastmoveindex get def
{
/nexttrainer getnewtrainer def
nexttrainer curtrainer ne
{
/curtrainer nexttrainer def
exit
} if
} loop
/newtrainerloc triangle nexttrainer get def
% calculate halfway to next trainer
/newx lastpnt 0 get newtrainerloc 0 get add 2 div def
/newy lastpnt 1 get newtrainerloc 1 get add 2 div def
/nextpoint [newx newy] def
/dogpnts [dogpnts aload pop nextpoint] def
%newpath
%lastpnt 0 get lastpnt 1 get moveto
%newx newy lineto
%closepath
stroke
nextpoint drawdot
} def
setup
drawtriangle
dogpnts 0 get drawdot
nummoves { drawdogmove } repeat
%PS
% visualize the dog training problem
/dogpnts 1 array def
/sidelength 4 def
/nummoves 1000 def
/ptrad 1 def
/triangle [ [0 0] [sidelength 0] [ 60 cos sidelength mul 60 sin sidelength mul] ] def
dogpnts 0 [sidelength 60 cos mul sidelength 60 sin mul 3 div] put
/lastmoveindex 0 def
/curtrainer 0 def
/unit 36 def
/setup {
20 srand
unit unit scale
8.5 sidelength sub 2 div 11 sidelength sin 60 mul sub 2 div translate
1 unit div setlinewidth
} def
/drawtriangle {
/x1 triangle 0 get 0 get def
/y1 triangle 0 get 1 get def
/x2 triangle 1 get 0 get def
/y2 triangle 1 get 1 get def
/x3 triangle 2 get 0 get def
/y3 triangle 2 get 1 get def
newpath
x1 y1 moveto
x2 y2 lineto
x3 y3 lineto
closepath
stroke
} def
/drawdot {
dup
0 get /x exch def
1 get /y exch def
gsave
%1 0 0 setrgbcolor
newpath
x y ptrad unit div 0 360 arc
closepath
fill
grestore
} def
/getnewtrainer {
rand 3 mod
} def
/drawdogmove {
/lastmoveindex dogpnts length 1 sub def
/lastpnt dogpnts lastmoveindex get def
{
/nexttrainer getnewtrainer def
nexttrainer curtrainer ne
{
/curtrainer nexttrainer def
exit
} if
} loop
/newtrainerloc triangle nexttrainer get def
% calculate halfway to next trainer
/newx lastpnt 0 get newtrainerloc 0 get add 2 div def
/newy lastpnt 1 get newtrainerloc 1 get add 2 div def
/nextpoint [newx newy] def
/dogpnts [dogpnts aload pop nextpoint] def
%newpath
%lastpnt 0 get lastpnt 1 get moveto
%newx newy lineto
%closepath
stroke
nextpoint drawdot
} def
setup
drawtriangle
dogpnts 0 get drawdot
nummoves { drawdogmove } repeat](/cz/illustrender/pictures/260073c06c607ec92e275a73981d477f.png)
since
is a distributive lattice (unfortunately, this equality has to be proven to show that it is in fact a distributive lattice), and since this is true, so is the formula
(this one is automatic, since the first one shows that it is a distributive lattice).