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;
eq5: linsolve([eq1,eq2,eq3,eq4],[Iin,Iout,Vint,Iint]);
eq6: rhs(eq5[2]);
eq7: 2*%pi*carg(eq6),C=220e-12,k=0.1,s=%i*2*%pi*f,Vin=1;
plot2d(eq7,[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-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-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-imagpart-radcan-realpart-sqrt

realpart(((1-(%i)*sqr...

a:%;

imagpart(((1-(%i)*sqr...

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

carg

carg (K/(%i*w*tau + 1));

Calculate

carg-pi

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

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

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

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-imagpart-realpart-sqrt

realpart(((1-(%i)*sqr...

a:%;

imagpart(((1-(%i)*sqr...

Calculate

carg-pi-plot2d
plot2d(carg(0.4*(%i*w+10)/(%i*w*(%i*w+1)*(%i*w+4)))*(180/%pi),[w,0.1,100]);

plot2d(carg(0.4*(%i*w...

Calculate

carg-polarform

polarform(3+%i);

carg(3+%i);

Calculate