You are on page 1of 5

Maxima

(%i1)

kill(all) /*,*/$

Maxima

1.1

[] maxima-init.mac . . . . . . . . . . . . . . . . . maxima
Maxima , ( maxima_userdir )
maxima-init.mac , Maxima
,
setup_autoload ("specfun.mac", ultraspherical, assoc_legendre_p);

showtime:all;

Maxima : ultraspherical, assoc_legendre_p ,


, specfun.mac

1.2

[] maxima_userdir

. . . . . . . . . . . . . . . . . . .

[] file_search_maxima . . . . . . . . . . . . . . . . maxima
(%i1)

maxima_userdir /**/;

(%o1)

C : /DocumentsandSettings/0238lyc/maxima

(%i2)

file_search_maxima;

(%o2) [C : /DocumentsandSettings/0238lyc/maxima/.mac, mc, C : 5.21.1/share/maxima/5.21.1/


5.21.1/share/maxima/5.21.1/share/af f ine, algebra, algebra/charsets, algebra/solver, calculus, com
Maxima

wxMaxima

[] %iN . . . . . . . . . . . . . . . . . . . . . . . . . N
[] %oN

. . . . . . . . . . . . . . . . . . . . . . . . N

[] % . . . . . . . . . . . . . . . . . . . . . . . . .
[] %%

. . . . . . . . . . . . . . . . . .

[] %th(N ) . . . . . . . . . . . . . . . . . . . . . . N
(%i3)

(%o3)

F(N):=(integrate(X^N,X),
subst(3,X,%%)-subst(2,X,%%))/* %% subst */;
F(2);
)
(
N
X dX, subst (3, X, %%) subst (2, X, %%)
F (N ) :=

19
3
[] labels
(%o4)

. . . . . . . . . . . . . . . . . . . . . . .

(%i5)

labels /**/;

(%o5)

[%i5, %o4, %i4, %o3, %i3, %o2, %i2, %o1, %i1, %o0]

[] label(s) . . . . . . . . . . . . . . . . .

(%i6)

labels(o);labels(i)/**/;

(%o6)

[%o5, %o4, %o3, %o2, %o1, %o0]

(%o7)

[%i7, %i6, %i5, %i4, %i3, %i2, %i1]

[] playback([m,n])
(%i8)

. . . . . . . . . . . . . .

m n

playback([1,2]) /* 1,2 */;

(%i1)maxima_userdir;
(%o1)

C : /DocumentsandSettings/0238lyc/maxima(%i2)f ile_search_maxima;

(%o2) [C : /DocumentsandSettings/0238lyc/maxima/.mac, mc, C : 5.21.1/share/maxima/5.21.1/


5.21.1/share/maxima/5.21.1/share/af f ine, algebra, algebra/charsets, algebra/solver, calculus, com
Maxima

wxMaxima


(%o8)

done

(%i9)

kill(all);

(%o0)

done

2.1
. . . . . . . . . . . . . . . . . . . .

[] outchar . . . . . . . . . . . . . . . . . . . .

[] inchar

[] linechar

. . . . . . . . . . . . . . . . . .

(%i1)

[inchar,outchar,linechar];

(%o1)

[i, %o, %t]

, inchar,outchar,linechar , :
[inchar:"input",outchar:"output",linechar:"line"];

[]
[]
[]
[]
[]
[]

3.1
[]
[]

+,-,*,/
,** .
. . . .
= . . .
! . . .
!! . . .

. . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . (n! = n(n 1) 2 1)
. . . . . . (n!! = n(n 2) 2 n!! = n(n 2) 1)

. . . . . . . . . . . .

, ,

. . . . . . . . . . . . . . . . . . . . . ,

Maxima

wxMaxima

(%i2)

[a:1,b:2,c:3];
[f(x):=a*x^2+b*x+c , g(x):='(a*x^2+b*x+c)];

(%o2)

[1, 2, 3]

(%o3)

)
(
[ f (x) := a x2 + b x + c, g (x) := a x2 + b x + c ]

(%i4)

g(x);f(x);

(%o4)

a x2 + b x + c

(%o5)

x2 + 2 x + 3

(%i6)

[solve(f(x),x),solve(g(x),x)];

b2 4 a c + b
b2 4 a c b
[[x = 2 i 1, x = 2 i 1], [x =
,x =
]]
2a
2a

(%o6)
(%i7)

[solve(''(g(x)),x),solve(''g(x),x)];

b2 4 a c + b
b2 4 a c b
[[x = 2 i 1, x = 2 i 1], [x =
,x =
]]
2a
2a

(%o7)

3.2

[]
[]

:
::

. . . . . . . . . . .
. . . . . . . . .

(assignment), a:b b a

, a::b b b a

(%i8)

k:A /* k A*/;
k::f(Z)/*f(Z) , k */;

(%o8)

(%o9)

Z2 + 2 Z + 3

(%i10) A;
(%o10)

Z2 + 2 Z + 3

(%i11) fundef(g);
(
)
(%o11) g (x) := a x2 + b x + c
Maxima

wxMaxima

[]
[]

:=
::=

. . . . . . . . . . . . . .

, : f (x) := a x2 + b x2 + c

. . . . . . . . . . . . . . . . . . . . ,

[] fundef(g) . . . . . . . . . . . . . . . . . . . . .

(%i12) [a=1,b=2,c=3]$
g(x):=a*x^2+b*x+c;
fundef(g);
(%o13)

g (x) := a x2 + b x + c

(%o14)

g (x) := a x2 + b x + c

[] funmake(fun, [arg1, arg2,...]


(%i15)

F (x, y) := y^2 - x^2;

(%o15)

F (x, y) := y 2 x2

. . . . . .

(%i16) funmake (F, [a + 1, b + 1]);


(%o16)

F (2, 3)

funmake , ""
(%i17) ''%;
(%o17)

g(a, b)
(%i18) g(a,b):=''(funmake (F, [a + 1, b + 1]))$
g(1,2);
(%o19)

Maxima

wxMaxima

You might also like