Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Simp Calculator

Simp

-- Option variable: simp Default value: true

simp enables simplification. This is the standard. simp is also an evflag, which is recognized by the function ev. See ev.

When simp is used as an evflag with a value false, the simplification is suppressed only during the evaluation phase of an expression. The flag can not suppress the simplification which follows the evaluation phase.

Examples:

The simplification is switched off globally. The expression sin(1.0) is not simplified to its numerical value. The simp-flag switches the simplification on.

          (%i1) simp:false;
          (%o1)                                false
          (%i2) sin(1.0);
          (%o2)                              sin(1.0)
          (%i3) sin(1.0),simp;
          (%o3)                          .8414709848078965

The simplification is switched on again. The simp-flag cannot suppress the simplification completely. The output shows a simplified expression, but the variable x has an unsimplified expression as a value, because the assignment has occurred during the evaluation phase of the expression.

          (%i4) simp:true;
          (%o4)                                true
          (%i5) x:sin(1.0),simp:false;
          (%o5)                          .8414709848078965
          (%i6) :lisp $X
          ((%SIN) 1.0)

There are also some inexact matches for simp. Try ?? simp to see them.

(%o1)                                true
(%i2) 

Simp Example

Related Examples

simp

(a+b)*(a-b),simp;

Calculate

simp-true

1/7, simp : true ;

Calculate

simp-sin

y * (- 0.029671141437...

Calculate

simp

e1: x1 = a0 * x0 + b0;

e2: x2 = a1 * x1 + b1;

x2, simp;

Calculate

simp-true

1/7, simp : true ;

Calculate

simp

simp:trux/(x^2-x^y)-y...

Calculate

simp-sqrt-true

(6+sqrt(52))/8;

6/8+sqrt(52)/8;

simp:true;

Calculate

simp-sort-true

simp:true;

p:y^3-2*y^2-8*y;

unary_minus_sort(p);

Calculate

simp-solve

p1:a^2 + 3^2 = b^2+4^2;

p2:(s-a)^2+3^2=c^2+5^2;

p3:(s-b)^2+4^2=(s-c)^...

Calculate

simp

e(x,y) := x^2 + (x+1)...

e(x,y),expand,simp;

e(2*u,y),expand,simp;

Calculate