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:

Letrat Calculator

Letrat

-- Option variable: letrat Default value: false

When letrat is false, letsimp simplifies the numerator and denominator of a ratio separately, and does not simplify the quotient.

matchdeclare ([a, a1, a2], true);
 oneless (x, y) := is (x = y-1);
 let (a1*a2!, a1!, oneless, a2, a1);
 letrat: true;
 let (a1!/a1, (a1-1)!);
 letsimp (n*m!*(n-1)!/m);
 let (sin(a)^2, 1 - cos(a)^2);
 letsimp (sin(x)^4);

When letrat is true, the numerator, denominator, and their quotient are simplified in that order.

          (%i1) matchdeclare (n, true)$
          (%i2) let (n!/n, (n-1)!);
                                   n!
          (%o2)                    -- --> (n - 1)!
                                   n
          (%i3) letrat: false$
          (%i4) letsimp (a!/a);
                                         a!
          (%o4)                          --
                                         a
          (%i5) letrat: true$
          (%i6) letsimp (a!/a);
          (%o6)                       (a - 1)!

(%o1)                                true
(%i2) 

Letrat Example

Related Examples