You are on page 1of 3

> restart;

> taylor(ln(1-x),x,10);
1
1
1
1
1
1
1
1
x x2 x3 x4 x5 x6 x7 x8 x9O( x10 )
2
3
4
5
6
7
8
9
> (tau/(4*Pi))*ln((r^2-2*r*cos(theta)*b^2/R+(b^2/R)^2)/(r^22*r*R*cos(theta)+R^2));
2 2 r cos( ) b 2 b 4
r
2
R
R

ln 2

1
r 2 r R cos( )R
4

> Pot:=(tau,r,theta,b,R)->(tau/(4*Pi))*ln((r^22*r*cos(theta)*b^2/R+(b^2/R)^2)/(r^2-2*r*R*cos(theta)+R^2));
2 2 r cos( ) b 2 b 4
r
2
R
R

ln 2
r 2 r R cos( )R 2
1

Pot := ( , r, , b, R )
4

> diff(Pot(tau,r,theta,b,R),r);
2

2 2 r cos( ) b 2 b 4

2 r 2 cos( ) b
r
2 ( 2 r2 R cos( ) )
R
1
R
R

2

2
2

4 r 2 r R cos( )R
2
2
( r 2 r R cos( )R )

( r 22 r R cos( )R 2 )

2 r cos( ) b 2 b 4

r 2
2

R
R

> simplify(%);
1
( r 2 R 3 cos( )r R 4R cos( ) b 2 r 2cos( ) b 2 R 3b 4 rb 4 R cos( ) )
2

( (

r 4 R 22 r 3 cos( ) b 2 Rr 2 b 42 r 3 R 3 cos( )4 r 2 R 2 cos( ) 2 b 2


2 r R cos( ) b 4R 4 r 22 R 3 r cos( ) b 2R 2 b 4 ) )
> diff(ln(r^2-2*r*b^2*cos(theta)/R+(b^2/R)^2),r);
2 cos( ) b 2
2 r
R
2 r cos( ) b 2 b 4
r 2
2
R
R
> diff(ln(r^2-2*r*Rcos(theta)+R^2),r);
2 r2 Rcos( )
2
r 2 r Rcos( )R 2
> Dens:=(b,R,theta)->(((R^2-b^2)/(b^2-2*b*R*cos(theta)+R^2)));
R 2b 2
Dens := ( b, R, ) 2
b 2 b R cos( )R 2
> with(plots);

[ animate , animate3d , animatecurve , arrow , changecoords , complexplot , complexplot3d ,


conformal , conformal3d , contourplot , contourplot3d , coordplot , coordplot3d ,
densityplot , display , dualaxisplot , fieldplot , fieldplot3d , gradplot , gradplot3d ,
implicitplot , implicitplot3d , inequal , interactive, interactiveparams , intersectplot ,
listcontplot , listcontplot3d , listdensityplot , listplot , listplot3d , loglogplot , logplot ,
matrixplot , multiple , odeplot , pareto , plotcompare , pointplot , pointplot3d , polarplot ,
polygonplot , polygonplot3d , polyhedra_supported , polyhedraplot , rootlocus ,
semilogplot , setcolors, setoptions , setoptions3d , spacecurve, sparsematrixplot ,
surfdata , textplot , textplot3d , tubeplot ]
> plot(Dens(1,2,theta),theta=0..2*Pi);

> plot(Dens(1,4,theta),theta=0..2*Pi);

>

You might also like