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-programmode

e1: -I3-I2+I1=0;

e2: 691/10*I2+33/1*I...

e3: -577/5*I3-33/1*I...

Calculate

globalsolve-true

globalsolve: true;

e1:1.6;

e2:0.8;

Calculate

globalsolve-matrix-true

globalsolve: true;

c:matrix([[1/R1+1/R12...

Calculate

globalsolve-linsolve-true

globalsolve: true ;

equ1: -R1+(phi1-phi3)...

equ2: -R2+(phi3-phi2)...

Calculate

globalsolve-sqrt-true

globalsolve: true;

x: co;

y: 0;

Calculate

globalsolve-linsolve-programmode

e1: 113*x + y = 207;

e2: 3*x + y = 2;

[globalsolve: false,...

Calculate

globalsolve-true

globalsolve: true ;

x=1;

x:-1-(x/(3-x));

Calculate

globalsolve-linsolve

globalsolve: trueeq1:...

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

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

Calculate

globalsolve-linsolve-true

Wtot: (l^3/3*S1)*((((...

globalsolve: true;

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

Calculate