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.

eq1:(3)^2/a^2+(4)^2/b^2=1;
eq2:(4)^2/a^2+(2)^2/b^2=1;
[globalsolve: true, programmode: true];
linsolve([eq1,eq2],[a,b]);

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

s1 : [1,0,0,0];

s2 : [0,1,-1,0];

s3 : [0,0,1,-1];

Calculate

globalsolve

? globalsolve;

Calculate

globalsolve-linsolve

s1 : [1,0,0,0];

s2 : [0,1,-1,0];

s3 : [0,0,1,-1];

Calculate

globalsolve-linsolve-programmode

eq1:(3)^2/a^2+(4)^2/b...

eq2:(4)^2/a^2+(2)^2/b...

[globalsolve: false, ...

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

? globalsolve;

Calculate

globalsolve

? globalsolve;

Calculate

globalsolve-linsolve-programmode

eq1:(3)^2/a^2+(4)^2/b...

eq2:(4)^2/a^2+(2)^2/b...

[globalsolve: false, ...

Calculate

globalsolve-linsolve

s1 : [1,0,0,0];

s2 : [0,1,-1,0];

s3 : [0,0,1,-1];

Calculate

globalsolve-linsolve

s1 : [1,0,0,0];

s2 : [0,1,-1,0];

s3 : [0,0,1,-1];

Calculate