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:

Reveal Calculator

Reveal

Function: reveal (<expr>, <depth>) Replaces parts of <expr> at the specified integer <depth> with descriptive summaries.

* Sums and differences are replaced by Sum(<n>) where <n> is the number of operands of the sum.

* Products are replaced by Product(<n>) where <n> is the number of operands of the product.

* Exponentials are replaced by Expt.

* Quotients are replaced by Quotient.

* Unary negation is replaced by Negterm.

When <depth> is greater than or equal to the maximum depth of <expr>, reveal (<expr>, <depth>) returns <expr> unmodified.

reveal evaluates its arguments. reveal returns the summarized expression.

Example:

          (%i1) e: expand ((a - b)^2)/expand ((exp(a) + exp(b))^2);
                                    2            2
                                   b  - 2 a b + a
          (%o1)               -------------------------
                                  b + a     2 b     2 a
                              2 %e      + %e    + %e
          (%i2) reveal (e, 1);
          (%o2)                       Quotient
          (%i3) reveal (e, 2);
                                       Sum(3)
          (%o3)                        ------
                                       Sum(3)
          (%i4) reveal (e, 3);
                               Expt + Negterm + Expt
          (%o4)               ------------------------
                              Product(2) + Expt + Expt
          (%i5) reveal (e, 4);
                                 2                 2
                                b  - Product(3) + a
          (%o5)         ------------------------------------
                                   Product(2)     Product(2)
                        2 Expt + %e           + %e
          (%i6) reveal (e, 5);
                                   2            2
                                  b  - 2 a b + a
          (%o6)              --------------------------
                                 Sum(2)     2 b     2 a
                             2 %e       + %e    + %e
          (%i7) reveal (e, 6);
                                    2            2
                                   b  - 2 a b + a
          (%o7)               -------------------------
                                  b + a     2 b     2 a
                              2 %e      + %e    + %e

(%o1)                                true
(%i2) 

Reveal Example

Related Examples

reveal

reveal(-7/(x-2)^2,2);

Calculate

reveal-solve

eq:x^2=1;

sol:solve(eq,x);

reveal(sol,1);

Calculate

reveal

reveal(3*x=8,1);

Calculate

reveal

reveal(1/x^2,1);

Calculate

reveal

reveal(1/x^2,1);

Calculate

reveal

reveal(x^2+2*x-3*x*h/...

Calculate

reveal

reveal(-5/x^2,1);

Calculate

reveal

reveal(x=1,1);

Calculate

reveal

reveal(x^2+2*x-3*x*h/...

Calculate

reveal

fun: y=x or y=-x;

atop: reveal(fun,1);

if is(atop#"or") then...

Calculate