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;
Vs:120;
R:4;
L:4;
C:1;
de1: -Vs+R*C*diff(vc(t),t,1)+L*C*diff(vc(t),t,2)+vc(t)=0;
atvalue(vc(t),t=0,0);
atvalue(diff(vc(t),t),t=0,0);
sol:desolve(de1,vc(t));
plot2d(rhs(sol),[t,0,20]);
plot2d(C*diff(-60.0*t*%e^(-0.5*t)-120.0*%e^(-0.5*t)+120,t),[t,0,20]);
plot2d(C*diff(-60.0*t*%e^(-0.5*t)-120.0*%e^(-0.5*t)+120,t),[t,1,3]);
ilt(log((s^2+4*s+13)/(s^2)),s,t);

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

e1: -Q/EI =wc;

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

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

Calculate

globalsolve-linsolve-phi-true

globalsolve: true;

l:325;

h1:150;

Calculate

globalsolve-linsolve-true

globalsolve: true;

eq1:phi*h1-h2*phi2+ph...

eq2:phi*h2-phi2*h2+(p...

Calculate

globalsolve-linsolve-true

globalsolve:true;

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

eq2:b5*c5+b1*c1=b1+b2...

Calculate

globalsolve-true

globalsolve:true;

c1=2;

c2=2;

Calculate

globalsolve-true

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

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

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

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

e1: 180*x + y = 58;

e2: 14*x + y = 0.77;

[globalsolve: false,...

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

e1 : (0^3)*k + (0^2)*...

e2 : 3*(0^2)*k + 2*0*...

e3 : (10^3)*k + (10^2...

Calculate