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:

Carg Calculator

Carg

Function: carg (<z>) Returns the complex argument of <z>. The complex argument is an angle theta in (-%pi, %pi] such that r exp (theta %i) = <z> where r is the magnitude of <z>.

eq1: Vint=-Iint/(s*C);
eq2: Iint=k*Iin;
eq3: Iin=Vin/30000 + Vint/30000;
eq4: Iout=Vint/15000+Vin/30000;
eq11: Vint2=-Iint2/(s*C);
eq22: Iint2=k*Iin2;
eq33: Iin2=Iout + Vint2/30000;
eq44: Iout2=Vint2/15000 + Vint/30000;
eq5: linsolve([eq1,eq2,eq3,eq4,eq11,eq22,eq33,eq44],[Iin,Iout,Vint,Iint,Iin2,Iout2,Vint2,Iint2]);
eq6: rhs(eq5[6]);
eq7: (eq6),C=220e-12,k=0.0001,s=%i*2*%pi*f,Vin=1;
plot2d([360/(2*%pi)*carg(eq7),20*log(abs(eq7*30000))/log(10)],[f,1,100000],[logx]);

carg is a computational function, not a simplifying function.

carg ignores the declaration declare (<x>, complex), and treats <x> as a real variable. This is a bug. See also abs (complex magnitude), polarform, rectform, realpart, and imagpart.

Examples:

          (%i1) carg (1);
          (%o1)                           0
          (%i2) carg (1 + %i);
                                         %pi
          (%o2)                          ---
                                          4
          (%i3) carg (exp (%i));
          (%o3)                           1
          (%i4) carg (exp (%pi * %i));
          (%o4)                          %pi
          (%i5) carg (exp (3/2 * %pi * %i));
                                          %pi
          (%o5)                         - ---
                                           2
          (%i6) carg (17 * exp (2 * %i));
          (%o6)                           2

(%o1)                                true
(%i2) 

Carg Example

Related Examples

carg-pi

rtd(r):= r*180/%pi;

h: 10000*s/(s^2+11000...

ft:h, s=2*%pi*f*%i;

Calculate

carg-plot3d
plot3d(carg((x+%i*y)^4), [x,-2,2],[y,-2,2]);

plot3d(carg((x+%i*y)^...

Calculate

carg-linsolve-plot2d-rhs
plot2d(eq7,[f,1,10000],[logx]);

eq1: Vint=-Iint/(s*C);

eq2: Iint=k*Iin;

eq3: Iin=Vin/30000 + ...

Calculate

carg-linsolve

eq1:U=x*R-z*%i/(w*C)-...

eq2:U=-z*%i/(w*C)+y*R;

eq3: z=x+y;

Calculate

carg-float-invert-matrix-polarform-ratsimp-rectform

a:matrix([9-%i*10,-5,...

b:matrix([0],[-10*%e^...

c:polarform(float(rec...

Calculate

carg-linsolve-plot2d-rhs
plot2d(eq7,[f,1,100000],[logx]);

eq1: Vint=-Iint/(s*C);

eq2: Iint=k*Iin;

eq3: Iin=Vin/30000 + ...

Calculate

carg-linsolve-plot2d-rhs

/* Op-amp integrator,...

/* SSM2164 gain cell ...

/* Input to the gain ...

Calculate

carg-plot3d
plot3d(carg((x+%i*y)^4), [x,-2,2],[y,-2,2]);

plot3d(carg((x+%i*y)^...

Calculate

carg-load

load(mnewton);

mnewton([carg(0.4*(%i...

Calculate