Sponsored links: Algebra eBooks ### The Maxima on-line user's manual

Algebra Calculator

#### Search: #### 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. 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) ```

### Related Examples

##### globalsolve-linsolve-true

globalsolve: true;

e1: 1.6;

e2: 0.8;

Calculate

l: 325;

b: 650;

h1: 150;

Calculate

##### globalsolve-linsolve-sqrt-true

globalsolve: true ;

h: 45;

e3: 2;

Calculate

eq1:x=D+a*I;

eq2:y=E+a*H;

eq3:z=F+a*G;

Calculate

##### globalsolve-linsolve-true

globalsolve : true;

wc(x):=-Q/EI;

wb(x) := (-Q*x+C12)/EI;

Calculate

##### globalsolve-linsolve-true

globalsolve: true;

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

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

Calculate

##### globalsolve-linsolve-phi-true

globalsolve: true;

l:325;

h1:150;

Calculate

##### globalsolve-linsolve-true

globalsolve:true;

Mt:2*a^3*P1+2*a^2*P2e...

eq2:(P2/3*e)*3*a+((P2...

Calculate

##### globalsolve-linsolve-programmode

e1: x^2 + z = ya;

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

e3: y - 2*z = 2;

Calculate

##### globalsolve-linsolve

globalsolve:trueMt:2*...

eq2:(P2/3*e)*3*a+((P2...

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

Calculate 