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.

e1 : (0^3)*k + (0^2)*l + 0*m + n = 0;
e2 : 3*(0^2)*k + 2*0*l + m = 0.8;
e3 : (10^3)*k + (10^2)*l + 10*m + n - (10^2)*a - 10*b -c = 0;
e4 : 3*(10^2)*k + 2*10*l + m - 2*10*a - b = 0;
e5 : (100^3)*p + (100^2)*q + 100*r + s = -40;
e6 : 3*(100^2)*p + 2*100*q + r = -1.6;
e7 : (90^3)*p + (90^2)*q + 90*r + s - (90^2)*a - 90*b - c = 0;
e8 : 3*(90^2)*p + 2*90*q + r - 2*90*a - b = 0;
e9 : 2*(100/33)*a + b = 0;
e10 : ((100/33)^2)*a + (100/33)*b + c = 30;
e11 :  (10^3)*k + (10^2)*l + 10*m + n = 10;
e12 : (90^3)*p + (90^2)*q + 90*r + s = 10;
e13 : 3*(10^2)*k + 2*10*l + m = 2.4;
e14 : 3*(90^2)*p + 2*90*q + r = -2.4;
[globalsolve: true];
linsolve([e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e13], [a, b, c, k, l, m, n, p, q, r, s]);
f(a1,b1,c1,x) := a1*(x^2) + b1*x + c1;
g(x):= p*(x^3) + q*(x^2) + r*x +s;
plot2d(f(a, b, c, x),[x,10,90]);
plot2d(g,[x,0,10]);
plot2d(f(a, b, c, x),[x,10,90]);

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

globalsolve: true;

G1: X=g11*x+g12*y+g13...

G2: Y=g21*x+g22*y+g23...

Calculate

globalsolve-linsolve-programmode

eq1:a*x1**2+b*x1+c=y1;

eq2:a*x2**2+b*x2+c=y2;

eq3:a*x3**2+b*x3+c=y3;

Calculate

globalsolve-linsolve-programmode

e1:x+y=10;

e2:2*x+4*y=34;

[globalsolve: false,...

Calculate

globalsolve-true

globalsolve: true;

G1: X=g11*x+g12*y+g13...

G2: Y=g21*x+g22*y+g23...

Calculate

globalsolve-linsolve-programmode

e1:x+y=10;

e2:2*x+4*y=34;

[globalsolve: false,...

Calculate

globalsolve-linsolve-true

globalsolve: true ;

eq1:phi1 + phi2 + phi...

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

Calculate

globalsolve-linsolve-sqrt-true

h: 45;

e3: 2;

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

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

e1: 2*x+y+z=a;

e2: x+2*y+z=b;

e3: x+y+2*z=c;

Calculate

globalsolve-integrate-linsolve-true

globalsolve: true ;

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

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

Calculate