bugGNU TeXmacs - Bugs: bug #43203, Maxima output is wrong when using...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #43203: Maxima output is wrong when using math input mode

Submitter:  Galileo Mario Sanchez Paredes <galileopy>
Submitted:  Fri 12 Sep 2014 01:50:03 AM UTC
   
 
Category:  Plugins Priority:  5 - Normal
Item Group:  Error Status:  Wont Fix
Privacy:  Public Assigned to:  vdhoeven
Originator Name:  Open/Closed:  Closed
Release:  None Release:  1.0.7.18
Fixed Release:  1.99.12 Fixed Release: 
Keywords: 

Sat 19 Oct 2019 02:32:59 AM UTC, comment #3: 

Yes, typing semantically correct input is compulsory.
So I do not consider this to be a bug, but a feature ;^)

Joris van der Hoeven <vdhoeven>
Group administrator
Sat 05 Oct 2019 12:09:36 PM UTC, comment #2: 

And this bug also exists in FriCAS.

Darcy Shen <sadhen>
Group Member
Sat 05 Oct 2019 12:00:37 PM UTC, comment #1: 

The root cause of this bug is:

int x^2 \mathd x

will be convert to

integrate(x^21,x)

for Maxima.

Currently, you should add a invisible * between x^2 and \mathd to make the integrate work.

Later, we may automatically correct the syntax of math formula before passing it to the CAS backend.

Darcy Shen <sadhen>
Group Member
Fri 12 Sep 2014 01:50:03 AM UTC, original submission:  

In ubuntu after reading issue #41606
https://savannah.gnu.org/bugs/?func=detailitem&item_id=41606

I did edit
TeXmacs/plugins/maxima/lisp/texmacs-maxima.lisp, line 25:
-(defconstant texport standard-output)
+(setq texport standard-output)

That got Maxima working with the following error.

Using text input everything work as expected
(%i5) integrate(x^2,x)
(%o5) (x^3)/3

But with mathematical input something goes wrong somewhere
(%i6) intx^2dx
(%o6) (x^22)/22

I inspected the source tree in case i wasn't writing the delimiter in the right place, but everything seems normal
(unfolded-io-math (document (with "color" "red" (concat "(" (with "math-font-family" "rm" "%i") "6) ")))(document (concat (big "int") "x" (rsup "2") "<mathd>x")) (document (math (with "math-display" "true" (concat (text (with "font-family" "tt" "color" "red" (concat "(" (with "math-font-family" "rm" "%o6") ") "))) (frac (concat "x" (rsup "22")) "22"))))))

I downloaded the latest stable, compiled and changed the plugin to get maxima working, but still the same behavior is observed in both versions.

I really don't want to downgrade maxima to a previous version.

Possibly related somehow #107866 http://savannah.gnu.org/support/?107866
I found this with TexMacs 1.0.7.18 and Maxima 5.32.1 with GNU Common Lisp (GCL) GCL 2.6.10

Galileo Mario Sanchez Paredes <galileopy>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #32078:  texmacs.png added by galileopy (29KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vdhoeven (Posted a comment)
  • -email is unavailable- added by sadhen (Posted a comment)
  • -email is unavailable- added by galileopy (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-10-19 vdhoeven StatusConfirmed Wont Fix
        Assigned toNone vdhoeven
        Open/ClosedOpen Closed
        Fixed ReleaseNone 1.99.12
    2019-10-05 sadhen StatusNone Confirmed
    2014-09-12 galileopy Attached File- Added texmacs.png, #32078

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code