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

float(carg(i*3));

Calculate

carg

carg((3^(3/2)/2)+(3*%...

Calculate

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

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

eq2: Iint=k*Iin;

eq3: Iin=Vin/30000 + ...

Calculate

carg-imagpart-realpart-sqrt

a:realpart(((1-(%i)*s...

b:imagpart(((1-(%i)*s...

sqrt((a^2)+(b^2));

Calculate

carg-float

float(carg(i*3));

Calculate

carg-numer-polarform

polarform(3+%i);

carg(3+%i).numer;

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],[logx]);

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

Calculate

carg

carg((3^(3/2)/2)+(3*i...

Calculate

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

plot3d(carg(x+%i*y),[...

Calculate