maxima:rtoy-refactor-globals-starify-infs

Last commit made on 2023-02-22
Get this branch:
git clone -b rtoy-refactor-globals-starify-infs https://git.launchpad.net/maxima

Branch merges

Branch information

Name:
rtoy-refactor-globals-starify-infs
Repository:
lp:maxima

Recent commits

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

Remove infinities, real-infinities, infinitesimals

These are defined in globals.lisp so we don't need them here.

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

Add * around infinities, real-infinities, and infinitesimals

Rename these defvars to use Lisp convention of have a name of "*foo*"
instead of just "foo".

Update all references appropriately.

We also change the `defvar` to `defmvar` since that's what is used in
limit.lisp. (Not sure why we didn't copy that originally.) Also add
a note in globals.lisp that these variables came from limit.lisp.

79b572e... by Raymond Toy <email address hidden>

Declare context special in laplac; remove unspecial in risch

Previously there were compiler warnings about `context` being
undefined in laplac.lisp. This happens because laplac.lisp is
compiled after risch.lisp and risch.lisp had an unspecial declaration
for `context` at the end of the file.

Since `context` is a `defvar` in db.lisp, let's fix this by removing
the unspecial declaration from risch.lisp and adding a special
declaration in laplac.

This fixes the warning in laplac.lisp.

Perhaps a better fix is to move the `defvar` for `context` in db.lisp
to globals.lisp?

49509cf... by Raymond Toy <email address hidden>

Configure sets the texi initfile for xmaxima

To create the correct html file names, we need to use the correct texi
init file, which is set by configure based on the version of makeinfo
being used. (See build_html.sh.in for how this is done.)

Thus, update interface/xmaxima/doc/Makefile.am to have configure fill
in the desired file name for the init file.

751988e... by Raymond Toy <email address hidden>

Rename checkfactors to *checkfactors*

Use the standard lisp style to have special vars named `*foo*` by
renaming `checkfactors` to `*checkfactors*`. Update all uses of
`checkfactors` appropriately.

Full testsuite passes.

08bcc4e... by Raymond Toy <email address hidden>

Add comment about al1 usage

We need tests for al1. I think al1 is called if $berlefact is false
in pfactorany. An example is `factor (1 + x^4, a^2 - 2);` which calls
`al1`.

4a971ca... by Raymond Toy <email address hidden>

Rename wtsofar to ratout-wtsofar

Rename `wtsofar` to `ratout-wtsofar` everywhere so as not to use the
special variable `wtsofar`.

Then we can also remove the special declaration for `wtsofar`.

Full testsuite passes.

This removes all uses in maxima of the special var `wtsofar` (and
`xweight` too).

7f06089... by Raymond Toy <email address hidden>

Add wtsofar parameter to all functions that used the specvar

Many functions accessed the special variable `wtsofar`. Add this as a
parameter to the functions and update all callers appropriately.

Full testsuite passes.

54a71ec... by Raymond Toy <email address hidden>

Rename xweight to ratout-xweight

Rename `xweight` to `ratout-xweight` everywhere so as not to use the
special variable `xweight`. This is fairly simple since we moved the
functions that would have been accessing `xweight` into `wtptimes1` so
they naturally capture `xweight` from `wtptimes1`.

Then we can also remove the special declaration for `xweight`.

Full testsuite passes.

6d10096... by Raymond Toy <email address hidden>

Reindent wtptimes1

Minor reindentation to make the lines a little shorter.

No functional changes.