algebra
ratsimp() 化簡
expand() 展開
factor() 因式分解kill(x) kill the x variable
kill(all) kill all variables
x:123 assign x=123
f(x):=x^2+2*x+1 define function of x =x^2+2x+1
sum(i,i,1,10) sum i , i from 1 to 10
%i image number
%pi
%e
%phi the golden mean (1+sqrt(5))/2
%gamma the Euler-Mascheroni constant
inf real positive inifinity
minf real negative inifinity
abs() absolute
sqrt() square root
float() float number
compare() compare numbers
is()
load("filename")
solve([equation],[variable])
round()
floor()
print()
%i1) powerdisp;
(%o1) false
(%i2) x^2+2*x+1;
2
(%o2) x + 2 x + 1
(%i3) powerdisp: true;
(%o3) true
(%i4) x^2+2*x+1;
2
(%o4) 1 + 2 x + x
(%o1) false
(%i2) x^2+2*x+1;
2
(%o2) x + 2 x + 1
(%i3) powerdisp: true;
(%o3) true
(%i4) x^2+2*x+1;
2
(%o4) 1 + 2 x + x
radexpand
evaluate
Default value: true
radexpand
controls some simplifications of radicals.
When radexpand
is all
, causes nth roots of factors of a product
which are powers of n to be pulled outside of the radical. E.g. if
radexpand
is all
, sqrt (16*x^2)
simplifies to 4*x
.
More particularly, consider sqrt (x^2)
.
- If
radexpand
isall
orassume (x > 0)
has been executed,sqrt(x^2)
simplifies tox
. - If
radexpand
istrue
anddomain
isreal
(its default),sqrt(x^2)
simplifies toabs(x)
. - If
radexpand
isfalse
, orradexpand
istrue
anddomain
iscomplex
,sqrt(x^2)
is not simplified.
Note that domain
only matters when radexpand
is true
reference
https://maxima.sourceforge.io/docs/manual/maxima_46.html.
evaluate
8.1 Functions and Variables for Evaluation
4.2 Functions and Variables for Command Line
3. Entering commands
ctl-j
ctl-u
alt-p to search backwards
alt-n to search forward
cabs absolute of complex number
conjugate
carg angle of complex number
realpart
imagpart
polarform
rectform
For further ways to compute with complex numbers, see the functions
rectform
, realpart
, imagpart
,
carg
, conjugate
and polarform
.
Matrix
matrix()
determinant()
invert()
transpose()
length()
Plot
plot2d([equation],[x,lower, upper])
plot3d([equation],[x,lower,upper],[y,lower,upper])
vector
https://maxima.sourceforge.io/docs/manual/maxima_116.html#Vectors
a.b a dot b
axb a cross b
load("vect" );
express(a~b);
https://maxima.sourceforge.io/docs/manual/maxima_131.html#Sums-Products-and-Series
permutation/ combination
load(functs)
permutation (n, r)
combination (n, r)
sequence/ series
arithmetic (a, d, n)
geometric (a, r, n)
harmonic (a, b, c, n)
geosum (a, r, n)
Set
https://maxima.surceforge.io/docs/manualo/maxima_156.html#Sets
Differential/Integrate
diff()
integrate()
limit()