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

globalsolve : true;

linsolve ( [(2)*x+(3)...

Calculate

globalsolve-true

globalsolve: true;

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

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

Calculate

globalsolve-true

globalsolve:true;

eq1:(3*a)*x/(3*e) + (...

Calculate

globalsolve-linsolve-true

globalsolve: true;

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

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

Calculate

globalsolve-true

globalsolve: true;

x: x;

y: 0;

Calculate

globalsolve-linsolve-true

globalsolve: true;

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

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

Calculate

globalsolve-linsolve-programmode

eq1:y=k*x+y1-k*x1;

eq2:y=(-1/k)*x+ym+(1/...

[globalsolve: true, p...

Calculate

globalsolve-integrate-linsolve-true

globalsolve: true ;

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

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

Calculate

globalsolve-linsolve-ratsimp-true

globalsolve: true;

eq1:phi1*h1-phi2*h2+p...

eq2:(phi-phi2)*h2+(ph...

Calculate

globalsolve-true

globalsolve: true;

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

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

Calculate