Re: Some questions: built-in operators and exponent markers

Richard Fateman <[email protected]> Tue, 21 Jul 2026 18:01:37 -0700
Newsgroups gmane.comp.mathematics.maxima.general
Message-ID <CADB8Zm7T7YGQ4fNer5OWrhmicGYX-Dpxymx8qKnVj9Zk-qW5PQ@mail.gmail.com>
--===============6184496385297630917==
Content-Type: multipart/alternative; boundary="000000000000261dc2065728af10"

--000000000000261dc2065728af10
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

The printing (and scanning?)  of bigfloats is done by code in src/float.lis=
p
It is not likely that searching for #\b  will do the job, since the file
seems to
have |b|, also.   It may be possible to wrap up one program,  fpformat so
that
after it produces a list of characters you can substitute p for b in that
list.   I don't know
if all the front ends use the same formatting program.  I hope they do..
It is possible that some of this code was copied into displa.lisp.  I
haven't checked.
RJF



On Tue, Jul 21, 2026 at 3:35=E2=80=AFPM Robert Dodier <robert.dodier@gmail.=
com>
wrote:

> Glad to hear the bit about the "!" operator is working for you. About
> changing the bigfloat parser, I looked at src/nparse.lisp and I
> believe that is indeed the file which contains the bigfloat parser, so
> that is the one to modify.
>
> I guess you would also want to make the corresponding changes for the
> display code. Maxima has two display modes, one is called the 2-d
> pretty printer and the other is the 1-d non-pretty-printer. The pretty
> printer is in src/displa.lisp (note that's displa, not display) and
> the non-pretty printer is in src/grind.liap. Again, you would search
> for #\B and/or #\b and replace them with #\P or #\p.
>
> Hope this helps,
>
> Robert
>
>
> _______________________________________________
> Maxima-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/maxima-discuss
>

--000000000000261dc2065728af10
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:arial,sans-serif;font-size:small">The printing (and scanning?)=C2=
=A0 of bigfloats is done by code in src/float.lisp</div><div class=3D"gmail=
_default" style=3D"font-family:arial,sans-serif;font-size:small">It is not =
likely that searching for #\b=C2=A0 will do the job, since the file seems t=
o</div><div class=3D"gmail_default" style=3D"font-family:arial,sans-serif;f=
ont-size:small">have |b|, also.=C2=A0 =C2=A0It may be possible to wrap up o=
ne program,=C2=A0 fpformat so that</div><div class=3D"gmail_default" style=
=3D"font-family:arial,sans-serif;font-size:small">after it produces a list =
of characters you can substitute p for b in that list.=C2=A0 =C2=A0I don&#3=
9;t know</div><div class=3D"gmail_default" style=3D"font-family:arial,sans-=
serif;font-size:small">if all the front ends use the same formatting progra=
m.=C2=A0 I hope they do..</div><div class=3D"gmail_default" style=3D"font-f=
amily:arial,sans-serif;font-size:small">It is possible that some of this co=
de was copied into displa.lisp.=C2=A0 I haven&#39;t checked.</div><div clas=
s=3D"gmail_default" style=3D"font-family:arial,sans-serif;font-size:small">=
RJF</div><div class=3D"gmail_default" style=3D"font-family:arial,sans-serif=
;font-size:small"><br></div><div class=3D"gmail_default" style=3D"font-fami=
ly:arial,sans-serif;font-size:small"><br></div></div><br><div class=3D"gmai=
l_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Tue=
, Jul 21, 2026 at 3:35=E2=80=AFPM Robert Dodier &lt;<a href=3D"mailto:rober=
[email protected]">[email protected]</a>&gt; wrote:<br></div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p=
x solid rgb(204,204,204);padding-left:1ex">Glad to hear the bit about the &=
quot;!&quot; operator is working for you. About<br>
changing the bigfloat parser, I looked at src/nparse.lisp and I<br>
believe that is indeed the file which contains the bigfloat parser, so<br>
that is the one to modify.<br>
<br>
I guess you would also want to make the corresponding changes for the<br>
display code. Maxima has two display modes, one is called the 2-d<br>
pretty printer and the other is the 1-d non-pretty-printer. The pretty<br>
printer is in src/displa.lisp (note that&#39;s displa, not display) and<br>
the non-pretty printer is in src/grind.liap. Again, you would search<br>
for #\B and/or #\b and replace them with #\P or #\p.<br>
<br>
Hope this helps,<br>
<br>
Robert<br>
<br>
<br>
_______________________________________________<br>
Maxima-discuss mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">M=
[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/maxima-discuss" rel=
=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/listi=
nfo/maxima-discuss</a><br>
</blockquote></div></div>

--000000000000261dc2065728af10--


--===============6184496385297630917==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============6184496385297630917==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Maxima-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maxima-discuss

--===============6184496385297630917==--