Permit dollars in identifiers.


git-svn-id: svn://svn.tartarus.org/sgt@7580 cda61777-01e9-0310-a592-d414129be87e
Perl-friendliness: permit dollars in identifiers in the expression
language, and also introduce the -V option to allow specifying a
different variable name (such as `$x') in the output rational
function expressions.


git-svn-id: svn://svn.tartarus.org/sgt@7581 cda61777-01e9-0310-a592-d414129be87e
Native-code Python module to be used as part of my mathlib.py.


git-svn-id: svn://svn.tartarus.org/sgt@7582 cda61777-01e9-0310-a592-d414129be87e
In evaluate mode, interpret the input numbers as expressions as well
as the main expression on the command line. This means we can
conveniently type things like `pi/4' into `frunc -E 'sin(x)'', and
also means we can run `frunc -E x' to obtain a standalone expression
evaluator.


git-svn-id: svn://svn.tartarus.org/sgt@7583 cda61777-01e9-0310-a592-d414129be87e
Add a configurable convergence threshold.


git-svn-id: svn://svn.tartarus.org/sgt@7584 cda61777-01e9-0310-a592-d414129be87e
I keep needing this recently, so here it is for keeps: a script
which uses xcopy to process the text currently in the X selection by
canonicalising all whitespace into single spaces and removing
leading or trailing whitespace.


git-svn-id: svn://svn.tartarus.org/sgt@7585 cda61777-01e9-0310-a592-d414129be87e
Calculate the probability of three people sharing a birthday given n
people in a room.


git-svn-id: svn://svn.tartarus.org/sgt@7586 cda61777-01e9-0310-a592-d414129be87e
Inverses of erf and the normal distribution function. Bound to come
in handy, I reckon.


git-svn-id: svn://svn.tartarus.org/sgt@7587 cda61777-01e9-0310-a592-d414129be87e
Correct the sign of Phi and invPhi! Also make invPhi(0.5) return +0
instead of -0.


git-svn-id: svn://svn.tartarus.org/sgt@7588 cda61777-01e9-0310-a592-d414129be87e
Typo.


git-svn-id: svn://svn.tartarus.org/sgt@7589 cda61777-01e9-0310-a592-d414129be87e
Improve display.


git-svn-id: svn://svn.tartarus.org/sgt@7590 cda61777-01e9-0310-a592-d414129be87e
It's easy to generate the expansion of an arbitrary rational, so
let's do so.


git-svn-id: svn://svn.tartarus.org/sgt@7591 cda61777-01e9-0310-a592-d414129be87e
erfc.


git-svn-id: svn://svn.tartarus.org/sgt@7592 cda61777-01e9-0310-a592-d414129be87e
Write up my implementation notes for W and inverse-erf. I've moved
all the detailed discussion of frunc internals out of lambertw.c
into the new document, on the grounds that they'd be largely
meaningless to most readers anyway. In the source file itself it
seems sufficient just to state what I'm approximating on what
intervals.


git-svn-id: svn://svn.tartarus.org/sgt@7593 cda61777-01e9-0310-a592-d414129be87e
Tweak to compile under Python 2.2. Also an ignore property for the
.so file.


git-svn-id: svn://svn.tartarus.org/sgt@7594 cda61777-01e9-0310-a592-d414129be87e
Convenient way to invoke a Python with mathsy modules loaded. Valid
on several systems (if not all), so it can go in here.


git-svn-id: svn://svn.tartarus.org/sgt@7595 cda61777-01e9-0310-a592-d414129be87e
Export the other C99 functions which are missing from Python proper.


git-svn-id: svn://svn.tartarus.org/sgt@7596 cda61777-01e9-0310-a592-d414129be87e
Fix a type-checking error when comparing a rational to None.


git-svn-id: svn://svn.tartarus.org/sgt@7597 cda61777-01e9-0310-a592-d414129be87e
Move `py' out into a script, mainly so that bash's job-control
notifications for it don't look quite so silly...


git-svn-id: svn://svn.tartarus.org/sgt@7598 cda61777-01e9-0310-a592-d414129be87e
I don't keep ~/src/misc in the same place everywhere.


git-svn-id: svn://svn.tartarus.org/sgt@7599 cda61777-01e9-0310-a592-d414129be87e