Next: Linear algebra.
Up: Some xcas commands, with
Previous: Some xcas commands, with
  Contents
Scalar commands
In these examples, f is an expression
(e.g. f:=x2-1;), not a function (f:=x->x2-1).
- binomial(n,k) (
n
= Cnk =
),
- diff(f,x) (derive f with respect to x),
- diff(f,x$ k)
(derive f k times (0 < k an integer) with respect to x),
- DIGITS:=k: float(f)/ Maple: Digits:=k; evalf(f);/ both
(numeric evaluation of f with k digits)
- eval(f): evaluate f
- expand(f) (expand f),
- factor(f) (factorize f),
- 300! (factorial of n),
- float(hold(solve)(f=0,x))/ fsolve(f=0,x)/fsolve(f=0,x)
(find a numerical solution of f = 0 with respect to the x variable)
- float(f) /evalf(f)/both
(numeric evaluation of f using double precision)
- ifactor(n) (factorize an integer n),
- int(f,x) (antiderivative of f with respect to x)
- int(f,x=a..b) (integral of f from a to b),
- limit(f,x=a) (limit of f as
x
a),
- mod (a mod n remainder of the euclidean integer division
of a by n,
- normal(f) (write f as an irreducible rational fraction)
- plotfunc2d(f,x=a..b) /plot(f,x=a..b)/ bothe
(graph (x, f ) for
x
[a, b], f is an expression depending on x)
- 'f'/hold(f)/both:
do not evaluate f.
- reset/restart/restart
restart the session (clear all variables)
- series(f,x=a,k) (series expansion of f at x = a order k)
- simplify(f) (try to simplify f),
- solve(f=0,x) (find x solutions of f (x) = 0),
- Mupad: solve(ode(diff(y(x),x$ 2)+y(x)=0,y(x))))/
Maple: dsolve(diff(y(x),x$ 2)+y(x)=0,y(x))/
xcas: desolve(y''+y=0,y)
(find the general solution of the differential equation y'' + y = 0),
- subs(f,x=a)/subs(x=a,f) / both (depending on xcas mode) or
subst(f,x=a) :
(replace x by a in f),
- sum(f,n=a..b):
compute
f (n) for a, b integers or
±
Next: Linear algebra.
Up: Some xcas commands, with
Previous: Some xcas commands, with
  Contents
giac documentation written by Bernard Parisse