Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Suspending simplification of integral

Suppose we have the following code:

integrate(a*x/a,x);

How can we run this code without any simplification, so that we can get the LaTeX equation without any simplification:

$\int\frac{ax}{a}dx$

?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You can disable the simplifier with:

simp:false;

before evaluating the integral. Don’t forget to enable it afterwards.

The manual mentions this as an "extreme option". Presumably a lot of other functionality will be broken while it is off.

Another way (maybe you neeed both?): single quote before the expression. This one prevents evaluation but not simplification. See also: https://maxima.sourceforge.io/docs/manual/maxima_43.html

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading