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:

Facsum

Function: facsum (<expr>, <arg_1>, ..., <arg_n>) Returns a form of <expr> which depends on the arguments <arg_1>, ..., <arg_n>. The arguments can be any form suitable for ratvars, or they can be lists of such forms. If the arguments are not lists, then the form returned is fully expanded with respect to the arguments, and the coefficients of the arguments are factored. These coefficients are free of the arguments, except perhaps in a non-rational sense.

display2d:false;
Nst:(He^2+Cs^2)*(a3*Cs+b3*He)+3*Cs*b2*(Cs^2+He^2-He*b2);
Ncs:diff(Nst,Cs);
Nhe:diff(Nst,He);
Cdc: -Ncs*He+Nhe*Cs;
ee1:facsum(subst(T*Cs,He,Nst),Cs);
ee2:facsum(subst(T*Cs,He,Cdc),Cs);
ee1:facsum(ratsimp(ee1/Cs^2),Cs);
ee2:facsum(ratsimp(ee2/Cs^2),Cs);

If any of the arguments are lists, then all such lists are combined into a single list, and instead of calling factor on the coefficients of the arguments, facsum calls itself on these coefficients, using this newly constructed single list as the new argument list for this recursive call. This process can be repeated to arbitrary depth by nesting the desired elements in lists.

It is possible that one may wish to facsum with respect to more complicated subexpressions, such as log (x + y). Such arguments are also permissible.

Occasionally the user may wish to obtain any of the above forms for expressions which are specified only by their leading operators. For example, one may wish to facsum with respect to all logs. In this situation, one may include among the arguments either the specific logs which are to be treated in this way, or alternatively, either the expression operator (log) or operator (log). If one wished to facsum the expression <expr> with respect to the operators <op_1>, ..., <op_n>, one would evaluate facsum (<expr>, operator (<op_1>, ..., <op_n>)). The operator form may also appear inside list arguments.

In addition, the setting of the switches facsum_combine and nextlayerfactor may affect the result of facsum.

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

(%o1)                                true
(%i2) 

Related Examples

facsum-first-kill-solve

kill(all);

nodev1: 0 = g*(v0 - k...

nodev2: 0 = g*(v1 - 0...

Calculate

facsum-matrix-true

simplified_output : t...

q1d : 0.5*(q2*wz -q3*...

q2d : 0.5*(-q1*wz +q3...

Calculate

facsum-matrix-true

simplified_output : t...

q1d : 0.5*(q2*wz -q3*...

q2d : 0.5*(-q1*wz +q3...

Calculate

facsum

? facsum ;

Calculate

facsum

facsum(a * (p1 * omeg...

Calculate

facsum

facsum((1-a) * (p1 * ...

Calculate

facsum-matrix-true

simplified_output : t...

q1d : 0.5*(q2*wz -q3*...

q2d : 0.5*(-q1*wz +q3...

Calculate

facsum-matrix

q1d : 0.5*(q2*wz -q3*...

q2d : 0.5*(-q1*wz +q3...

q3d : 0.5*(q1*wy -q2*...

Calculate

facsum

facsum((1-a) * (p1 * ...

Calculate