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

R1:4990;
R2:680;
R3:200;
R4:2000;
C3:3.3e-9;
C4:22e-9;
C5:220e-12;
ESR:0.0009;
Rout:5/3;
Cout:22e-6;
L:18e-6;
fz1: 1/(2*%pi*C3*(R1+R3));
fz2: 1/(2*%pi*R4*C4);
fp0: 0;
fp1: 1/(2*%pi*R3*C3);
fp2: 1/(2*%pi*R4*C4*C5/(C4+C5));
Q : sqrt(Rout*L*Cout*(Rout+ESR))/(L+Cout*Rout*ESR);
fLC : 1/(2*%pi*sqrt(L*Cout)*sqrt(1+ESR/Rout));
glc(s):= (1+s/(2*%pi/(2*%pi*ESR*Cout)))/(1+s/(2*%pi*Q*fLC)+(s/(2*%pi*fLC))^2);
float(Q);
float(sqrt(1));
float(glc(5));
gtypeIII(s) := 10^(150/20)*(s-fz1*2*%pi)*(s-fz2*2*%pi)/( (s-fp0*2*%pi) * (s-fp1*2*%pi) * (s-fp2*2*%pi) );
gloop(s):= 18 * glc(s) * gtypeIII(s);
float(rectform(gloop(%i*2*%pi*10^3.8)));
float(polarform(gloop(%i*2*%pi*10^3.8)));
float(carg(gloop(%i*2*%pi*10^3.8)));
atan(float(imagpart(gloop(%i*2*%pi*10^3.8)))/float(realpart(gloop(%i*2*%pi*10^3.8))))/%pi*180;
myCArg(z) := float(atan(float(imagpart(z))/float(realpart(z))));
myCArg(gloop(%i*2*%pi*10^3.8));
plot2d(20*log(cabs(gloop(%i*2*%pi*10^f)))/log(10), [f,-1,6]);
plot2d(myCArg(gloop(%i*2*%pi*10^f))/%pi*180, [f,-1,6]);

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-linsolve-plot2d-rhs
plot2d(eq7,[f,1,100000],[logx]);

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

eq2: Iint=k*Iin;

eq3: Iin=Vin/30000 + ...

Calculate

carg-polarform

polarform(3+%i);

carg(3+%i);

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

polarform(3+%i);

carg(3+%i);

Calculate

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

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

Calculate

carg-sqrt

carg(-1/2+%i*sqrt(3)/2);

Calculate

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

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

Calculate

carg-linsolve-plot2d-rhs-sin
plot2d([360/(2*%pi)*carg(eq7),sin(f)],[f,1,100000],[logx]);

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

eq2: Iint=k*Iin;

eq3: Iin=Vin/30000 + ...

Calculate

carg-float-solve

float(solve(carg(0.4*...

Calculate

carg-linsolve-plot3d-rhs
plot3d(   360/(2*%pi)*carg(eq7),   [f,1,100000],[k,0.01,0.1],   [logx],[nticks,100]);

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

eq2: Iint=k*Iin;

eq3: Iin=Vin/30000 + ...

Calculate