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-ratsimp-true

globalsolve: true;

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

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

Calculate

globalsolve-linsolve-programmode

e1: -I1-I2+I3=0;

e2: 69.1*I2+33.0*I3=...

e3: -115.4*I1-33.0*I...

Calculate

globalsolve-linsolve-programmode

eq1:(3)^2/a^2+(4)^2/b...

eq2:(4)^2/a^2+(2)^2/b...

[globalsolve: true, p...

Calculate

globalsolve-linsolve-programmode

e1: x + z = y;

e2: 2*a*x - y = 2*a^2;

e3: y - 2*z = 2;

Calculate

globalsolve-true

globalsolve: true;

x: co;

y: 0;

Calculate

globalsolve-linsolve-true

globalsolve: true;

eq1 : (phi1-phi3)*L-R=0;

eq2 : (phi3-phi2)*L+R=0;

Calculate

globalsolve-linsolve-plot2d
plot2d(f(a, b, c, x),[x,10,90]);

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

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

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

Calculate

globalsolve-linsolve-true

globalsolve: true;

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

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

Calculate

globalsolve-linsolve

globalsolve: trueeq1:...

eq2:phi*(h2-h1)+phi1*...

linsolve([eq1,eq2],[p...

Calculate