PaulS
PaulS

Reputation: 25383

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$

?

Upvotes: 2

Views: 135

Answers (1)

user14215102
user14215102

Reputation:

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

Upvotes: 3

Related Questions