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

globalsolve: true;

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

eq2:-r1+(phi1-phi3)*l=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-true

globalsolve: true;

(-phi1/e1)*l1+(phi3/e...

(phi2/e2)*l1-(phi3/e3...

Calculate

globalsolve-true

eq1:-R1+(Phi1-Phi3)*l=0;

eq2:R2+(Phi3-Phi2)*l=0;

eq3:(h1+h2)*Phi-Phi3*...

Calculate

globalsolve-linsolve-true

globalsolve: true ;

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

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

Calculate

globalsolve-linsolve-true

globalsolve:true;

c4=5;

eq1:b4*c4+b1*c1=b1+b2...

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

globalsolve: true;

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

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

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

e1: -Q/EI =wc;

e2: -Q/EI*x+Cb = wb;

e3: -Q/2/EI*x^2+ Cb*...

Calculate