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

h: 45;

e3: 2;

l1: 2*sqrt(150*150+(4...

Calculate

globalsolve-linsolve-true

globalsolve: true ;

eq1:phi1 + phi2 + phi...

eq2:J*((phi3*h/e3) - ...

Calculate

globalsolve-linsolve-true

globalsolve: true;

eq1:r2+(phi3-phi2)*l=0;

eq2:-r1+(phi1-phi3)*l=0;

Calculate

globalsolve-true

globalsolve: true;

x: x;

y: 0;

Calculate

globalsolve-true

globalsolve: true;

e1:1.6;

e2:0.8;

Calculate

globalsolve-linsolve-programmode

eq1:(2-x)^2 + (1 - y)...

eq2:(-5-x)^2 + (0 - y...

eq3:(8-x)^2 + (2 - y)...

Calculate

globalsolve-linsolve-true

globalsolve: true;

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

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

Calculate

globalsolve-linsolve-true

globalsolve: true;

eq1:phi*h1-h2*phi2+ph...

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

Calculate

globalsolve-linsolve-true

globalsolve: true;

eq1:R1+(phi1-phi3)*32...

eq2:R2+(phi2-phi3)*32...

Calculate

globalsolve-linsolve-true

globalsolve: true ;

eq1: phi1 + phi2 + ph...

eq2: J*((phi3*h/e3) -...

Calculate