~peterpall/maxima/+git/maxima.code:rtoy-add-info-for-psi

Last commit made on 2023-01-07
Get this branch:
git clone -b rtoy-add-info-for-psi https://git.launchpad.net/~peterpall/maxima/+git/maxima.code

Branch merges

Branch information

Name:
rtoy-add-info-for-psi
Repository:
lp:~peterpall/maxima/+git/maxima.code

Recent commits

ffe6054... by Raymond Toy <email address hidden>

Fix up doc for psi[n](x)

The first sentence for psi[n](x) says Maxima can't compute a numerical
value. This is false, so correct the sentence.

Add some examples of Maxima computing values for psi[n](x).

04c5a4e... by Raymond Toy <email address hidden>

Add more info for psi function.

Add links to maxpsiposint, maxpsinegint, maxpsifracnum, and
maxpsifracdenom in the description of the function psi so the user of
the html doc can find them easily.

For each variable maxpsiposint, maxpsinegint, maxpsifracnum, and
maxpsifracdenom, use m4_math to make it a bit nicer to read in html,
and also add some examples on what impact these variables have on
computing psi[n](x).

For example, maxpsifracnum and maxpsifracdenom only affect psi[0](x).
But maxipsiposint and maxpsinegint affect all orders n.

db08afa... by Raymond Toy <email address hidden>

Define $maxpsiposint and friends in globals

specfun.lisp indirectly defines `$maxpsiposint`, `$maxpsinegint`,
`$maxpsifracnum`, and `$maxpsifracdenom` by setting the symbol-value
of these symbols. Since they're user-visible variables with entries
in the user manual, let's use `defmvar` to define them in
globals.lisp, with the appropriate initial values.

This also means `reset()` will reset the value to the default. This
didn't happen before, but I think it should.

Then we can remove the declare-top special for these from specfn.lisp.

b19d5d5... by Raymond Toy <email address hidden>

Remove unspecial for var

Remove the unspecial decl for `var` because the following code doesn't
use `var` anywhere.

Full testsuite passes.

272b78f... by Raymond Toy <email address hidden>

Rename *last* to sf-last

`*last*` isn't a special var any more, so rename it to `sf-last` to
make it clear it's not special. Could have used just `last`, but
that's too simple and makes grepping for uses of this harder.
`sf-last` makes it unique. ("SF" for "specfun").

957a21a... by Raymond Toy <email address hidden>

Remove *last* from declare-top

Instead, pass *last* to each routine that needs access to *last*.

cd1165d... by Raymond Toy <email address hidden>

Remove subl from declare-top

Instead of declaring `subl` as special, pass it as an arg to all the
functions that use it.

a42b210... by Raymond Toy <email address hidden>

Remove last-exp from declare-top

`last-exp` isn't used anywhere between the declare-top statements, so
remove it.

No issues with the test suite, as expected.

cc719a8... by Raymond Toy <email address hidden>

Rename sign to sf-sign

To prevent confusion with the specvar `sign` in compar.lisp, rename it
to `sf-sign`. ("sf" for specfun).

bcf6fe5... by Raymond Toy <email address hidden>

Remove sign from declare-top

Instead of declaring sign as special (and making it unspecial later),
pass sign to rcplygam which is the only other place where sign is
used.