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:

Substpart Calculator

Substpart

Function: substpart (<x>, <expr>, <n_1>, ..., <n_k>) Substitutes <x> for the subexpression picked out by the rest of the arguments as in part. It returns the new value of <expr>. <x> may be some operator to be substituted for an operator of <expr>. In some cases <x> needs to be enclosed in double-quotes " (e.g. substpart ("+", a*b, 0) yields b + a).

cdet([m]) := block([mat:substpart(matrix,m,0)],’determinant(mat)=factor(determinant(mat)));
cdet([1,1,1],[a,b,c],[a^2,b^2,c^2]);

          (%i1) 1/(x^2 + 2);
                                         1
          (%o1)                        ------
                                        2
                                       x  + 2
          (%i2) substpart (3/2, %, 2, 1, 2);
                                         1
          (%o2)                       --------
                                       3/2
                                      x    + 2
          (%i3) a*x + f(b, y);
          (%o3)                     a x + f(b, y)
          (%i4) substpart ("+", %, 1, 0);
          (%o4)                    x + f(b, y) + a

Also, setting the option inflag to true and calling part or substpart is the same as calling inpart or substinpart.

(%o1)                                true
(%i2) 

Substpart Example

Related Examples

substpart

a: 1/(x^2 + 2);

substpart (x, a, 2);

Calculate

substpart

a: 1/(x^2 + 2);

substpart (x, a, 2, 1...

Calculate

substpart

a: 1/(x^2 + 2);

substpart (x, a, 2, 1...

Calculate

substpart

a: 1/(x^2 + 2);

substpart (x, a, 2, 1...

Calculate

substpart

? substpart;

Calculate

substpart

a: 1/(x^2 + 2);

substpart (x, a, 2, 1);

Calculate

substpart

a: x*(x^2-x_0^2);

substpart (x, a, 2, 1...

Calculate

substpart

a: x*(x^2-x_0^2);

substpart (x_0, a, 2,...

Calculate

substpart

a: x*(x^2-x_0^2);

substpart (x_0, a, 2,...

Calculate

substpart

a: 1/(x^2 + 2);

substpart (3/2, a, 2,...

Calculate