Sponsored links: Algebra eBooks

### The Maxima on-line user's manual

Algebra 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.

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

e1: -19 - 3*s - 13*r ...

e2: 23 + 10*s + 3*r = 0;

[globalsolve: false,...

Calculate

##### globalsolve-true

globalsolve: true;

e1:1.6;

e2:0.8;

Calculate

##### globalsolve-linsolve-true

globalsolve: true;

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

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

Calculate

l1: 303.4;

l2: 601.684;

l3: 45;

Calculate

##### globalsolve-linsolve-true

globalsolve: true;

eq1: R1 + (p3 - p1)*l...

eq2: R2 + (p3 - p1)*l...

Calculate

##### globalsolve-linsolve-plot2d-true

/*Biegelinie für eine...

w10(x):=(-q1/24*x^4+c...

w11(x):=(-q1/6*x^3+c1...

Calculate

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

h: 45;

e3: 2;

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

Calculate

##### globalsolve-true

globalsolve: true;

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

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

Calculate

##### globalsolve-linsolve-true

/*Biegelinie für eine...

a1:Fl/EI;

w10(x):=(c10*exp^((a1...

Calculate

##### globalsolve-linsolve-programmode

e1: t - 4 - s -8 + 4*...

e2: t - 4 - s - 4 + ...

[globalsolve: false,...

Calculate