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:

Globalsolve Calculator

Globalsolve

-- Option variable: globalsolve Default value: false

When globalsolve is true, solved-for variables are assigned the solution values found by linsolve, and by solve when solving two or more linear equations.

globalsolve: true;
G1: X=g11*x+g12*y+g13*z+g14*t;
G2: Y=g21*x+g22*y+g23*z+g24*t;
G3: Z=g31*x+g32*y+g33*z+g34*t;
G4: T=g41*x+g42*y+g43*z+g44*t;
solve([G1,G2,G3,G4],[X,Y,Z,T]);
H1: x=h11*X+h12*Y+h13*Z+h14*T;
H2: y=h21*X+h22*Y+h23*Z+h24*T;
H3: z=h31*X+h32*Y+h33*Z+h34*T;
H4: t=h41*X+h42*Y+h43*Z+h44*T;
H1;

When globalsolve is false, solutions found by linsolve and by solve when solving two or more linear equations are expressed as equations, and the solved-for variables are not assigned.

When solving anything other than two or more linear equations, solve ignores globalsolve. Other functions which solve equations (e.g., algsys) always ignore globalsolve.

Examples:

          (%i1) globalsolve: true$
          (%i2) solve ([x + 3*y = 2, 2*x - y = 5], [x, y]);
          Solution

                                           17
          (%t2)                        x : --
                                           7

                                             1
          (%t3)                        y : - -
                                             7
          (%o3)                     [[%t2, %t3]]
          (%i3) x;
                                         17
          (%o3)                          --
                                         7
          (%i4) y;
                                           1
          (%o4)                          - -
                                           7
          (%i5) globalsolve: false$
          (%i6) kill (x, y)$
          (%i7) solve ([x + 3*y = 2, 2*x - y = 5], [x, y]);
          Solution

                                           17
          (%t7)                        x = --
                                           7

                                             1
          (%t8)                        y = - -
                                             7
          (%o8)                     [[%t7, %t8]]
          (%i8) x;
          (%o8)                           x
          (%i9) y;
          (%o9)                           y

(%o1)                                true
(%i2) 

Globalsolve Example

Related Examples

globalsolve-linsolve

e1 : (0^3)*k + (0^2)*...

e2 : 3*(0^2)*k + 2*0*...

e3 : (10^3)*k + (10^2...

Calculate

globalsolve-linsolve-plot2d-true
plot2d([w10(x),w20(x),w30(x)], [x,0,15], [y, -500, 100]);

globalsolve : true;

w10(x):=(-q1/24*x^4+c...

w11(x):=(-q1/6*x^3+c1...

Calculate

globalsolve-linsolve-phi-true

h1: 150;

h2: 225;

phi: 98.46;

Calculate

globalsolve-matrix-true

globalsolve: true;

eq1:0=I0-U1/R1-(U1-U2...

eq2:0=I0-U2/R2-(U2-U1...

Calculate

globalsolve-linsolve-phi-true

globalsolve: true;

l:325;

h1:150;

Calculate

globalsolve-linsolve

e1 : (0^3)*k + (0^2)*...

e2 : 3*(0^2)*k + 2*0*...

e3 : (10^3)*k + (10^2...

Calculate

globalsolve-linsolve-matrix-true

globalsolve: true;

eq1:0=I0-U1/R1-(U1-U2...

eq2:0=I0-U2/R2-(U2-U1...

Calculate

globalsolve-linsolve-true

globalsolve: true;

eq1:(phi-phi3)*h2+(ph...

eq2:(phi-phi3)*h2*b+(...

Calculate

globalsolve-linsolve-true

globalsolve: true;

eq1 : phi1*h1-phi2*h2...

eq2 : (phi-phi2)*h2+(...

Calculate

globalsolve-linsolve-true

globalsolve: true ;

eq1:-phi3*h/e3 + phi2...

eq2:-2*A1*phi1 + 2*A2...

Calculate