# Symbolic algebra and Mathematics with Xcas

### Renée De Graeve, Bernard Parisse1,
Jay Belanger2
Sections written by Luka Marohnić3

© 2002, 2007 Renée De Graeve, Bernard Parisse
`renee.degraeve@wanadoo.fr`
`bernard.parisse@ujf-grenoble.fr`

# Contents

# Index

- , 5.1.4
- ’, 5.12.4
- ’*’, 5.16.1
- ’+’, 5.16.1
- ’-’, 5.16.1
- ’/’, 5.16.1
- (), 4.3.1, 5.12.19, 5.39.1
- *, 5.8.2, 5.10.1, 5.16.1, 5.34.4, 5.38.3, 5.41.5, 5.42.7, 5.45.3
- *=, 4.4.5
- +, 5.3.12, 5.3.13, 5.8.2, 5.10.1, 5.16.1, 5.34.2, 5.38.3, 5.39.9, 5.42.3, 5.45.2, 13.6.3
- +=, 4.4.5, 4.4.5
- +infinity, 4.2
- ,, 5.39.8
- -, 5.8.2, 5.10.1, 5.16.1, 5.34.3, 5.38.3, 5.42.4, 5.45.2, 13.6.3
- -=, 4.4.5
- ->, 4.5.1, 5.15.1
- -inf, 4.2
- -infinity, 4.2
- .*, 5.42.5, 5.45.8
- .+, 5.42.3, 5.45.2
- .-, 5.42.4, 5.45.2
- .., 5.37.1
- ./, 5.42.6, 5.45.9
- .^, 5.45.10
- .xcasrc, 2.5.10
- /, 5.8.2, 5.10.1, 5.16.1, 5.34.8, 5.34.11, 5.38.3, 5.47.2
- //, 3.2, 12.2.1
- /=, 4.4.5
- ::=, 5.44.6
- :;, 3.1, 3.1
- :=, 4.4.2, 4.5.1, 5.15.1, 5.44.6, 12.2.8
- <, 5.1.2
- =, 4.4.2
- =<, 4.4.3, 5.1.2, 5.44.6, 12.2.8
- ==, 5.1.2
- =>, 4.4.2, 4.5.1, 5.23.26, 11.1.4, 12.2.8
- >, 5.1.2
- >=, 5.1.2
- ?:, 5.1.3
- [ ], 5.41.1
- [[]], 5.39.6
- [], 5.39.6, 5.39.10, 5.40
- 5.14.1, 5.16.4
- 5.14.1, 5.16.5
- $, 5.14.1, 5.39.2
- %, 5.5.9, 5.14.1, 5.34, 5.35
- %%%{ %%%}, 5.27.2
- %{ %}, 4.3.2, 5.41.1
- %e, 4.2
- %i, 4.2
- %pi, 4.2
- &*, 5.45.3
- &&, 5.1.4
- &^, 5.45.7
- ^, 5.8.2, 5.10.1, 5.34.9, 5.45.7
- _, 11.1.1, 11.2.1
- {}, 12.1.2
- !, 5.6.1
- !=, 5.1.4
- ", 5.3.1
- \n, 5.3.2
- Airy_Ai, 5.8.19
- Airy_Bi, 5.8.19
- a2q, 5.54.2
- abcuv, 5.28.10
- about, 4.4.8, 5.26.1
- abs, 5.10.4, 5.16.2, 13.14.10
- abscissa, 13.13.2, 14.12.1
- accumulate_head_tail, 8.1.11
- acos, 5.16.2
- acos2asin, 5.23.7
- acos2atan, 5.23.8
- acosh, 5.16.2
- acot, 5.16.2
- acsc, 5.16.2
- add, 5.40.25
- additionally, 4.4.8
- additionally, 4.4.8
- addtable, 5.26.2, 5.26.2
- adjoint_matrix, 5.48.10
- affix, 13.13.1
- algsubs, 5.12.21
- algvar, 5.59.4
- altitude, 13.7.9
- and, 4.4.8, 5.1.4
- angle, 13.14.4, 14.12.9
- angle_radian, 2.5.3
- angleat, 13.14.1
- angleatraw, 13.14.1
- animate, 7.21.1
- animate3d, 7.21.2
- animation, 7.21.3
- ans, 3.4
- append, 5.40.11
- apply, 5.40.29
- approx, 10.2
- approx_mode, 2.5.4
- arc, 13.11.2
- arccos, 5.16.2
- arccosh, 5.16.2
- archive, 4.4.6
- arcLen, 5.19.2
- arcsin, 5.16.2
- arcsinh, 5.16.2
- arctan, 5.16.2
- arctanh, 5.16.2
- area, 7.9, 13.14.6
- areaat, 13.14.1
- areaatraw, 13.14.1
- areaplot, 7.10, 13.14.5
- arg, 5.10.4, 13.14.11
- args, 12.4.1
- array, 5.23.26
- as_function_of, 5.16.6
- asc, 5.3.8
- asec, 5.16.2
- asin, 5.16.2
- asin2acos, 5.23.9
- asin2atan, 5.23.10
- asinh, 5.16.2
- assert, 12.2.4
- assign, 4.4.2
- assume, 4.4.8, 5.26.1, 12.1.3, 13.5
- at, 5.39.6, 5.39.7, 5.44.5
- atan, 5.16.2
- atan2acos, 5.23.12
- atan2asin, 5.23.11
- atanh, 5.16.2
- atrig2ln, 5.23.22
- augment, 5.40.13, 5.44.3
- auto_correlation, 15.2.7
- autosimplify, 5.12.15
- axes, 7.3.2
- Beta, 5.8.16
- Binary, 5.14.2
- BlockDiagonal, 5.44.2
- bar_plot, 8.1.14
- bareiss, 5.47.4
- bartlett_hann_window, 15.2.13
- barycenter, 5.10.8, 13.6.10, 14.4.6
- base, 5.4.2
- basis, 5.47.9
- batons, 8.2.2
- begin, 12.1.7
- bernoulli, 5.7.9
- betad, 8.4.12
- betad_cdf, 8.4.12
- betad_icdf, 8.4.12
- bezier, 7.15
- binary, 5.4.1
- binomial, 5.6.2, 8.4.3
- binomial_cdf, 8.4.3
- binomial_icdf, 8.4.3
- bisection_solver, 10.4.1
- bisector, 13.7.11
- bit_depth, 15.1.6
- bitand, 5.2.1
- bitor, 5.2.1
- bitxor, 5.2.1
- black, 7.3.1
- blackman_harris_window, 15.2.14
- blackman_window, 15.2.15
- blockmatrix, 5.44.3
- blue, 7.3.1
- bohman_window, 15.2.16
- boolean, 5.1.1
- border, 5.44.3
- box_constraints, 5.38.9
- boxcar, 15.2.1
- boxwhisker, 5.42.9, 5.45.16, 8.1.8
- break, 12.3.6, 12.5.1
- breakpoint, 12.5.1
- brent_solverbrent_solver, 10.4.2
- bvpsolve, 10.3.7
- Celsius2Fahrenheit, 11.1.5
- Ci, 5.8.7
- Circle, 13.11.3
- ClrDraw, 12.4.10
- ClrGraph, 12.4.10
- ClrIO, 12.2.6
- CopyVar, 4.4.7
- CST, 4.4.10
- c1oc2, 5.9.9
- c1op2, 5.9.9
- camembert, 8.1.15
- canonical_form, 5.12.7
- cap_flat_line, 7.3.1
- cap_round_line, 7.3.1
- cap_square_line, 7.3.1
- cas_setup, 2.5.10
- case, 12.3.2
- cat, 5.3.11, 5.3.13
- catch, 12.4.12
- cauchy, 8.4.14
- cauchy_cdf, 8.4.14
- cauchy_icdf, 8.4.14
- cauchyd, 8.4.14
- cauchyd_cdf, 8.4.14
- cauchyd_icdf, 8.4.14
- cd, 4.6.1
- cdf, 8.4.20
- ceil, 5.16.2
- center, 13.6.12
- center2interval, 5.37.3
- centered_cube, 14.17.2
- centered_tetrahedron, 14.17.1
- cfactor, 2.5.5, 5.12.10
- cfsolve, 10.4, 10.5
- changebase, 5.47.8
- channel_data, 15.1.7
- channels, 15.1.6
- char, 5.3.9
- charpoly, 5.48.7
- chinrem, 5.28.11
- chisquare, 8.4.9
- chisquare_cdf, 8.4.9
- chisquare_icdf, 8.4.9
- chisquaret, 8.5.4
- cholesky, 5.49.1
- chrem, 5.5.21
- circle, 13.11.1, 14.10
- circumcircle, 13.11.5
- classes, 8.1.9
- cluster, 9.1.1
- coeff, 5.27.7
- coeffs, 5.27.7
- col, 5.44.5
- colDim, 5.45.19
- coldim, 5.45.19
- collect, 5.27.16
- colNorm, 5.50.5
- colnorm, 5.50.5
- color, 13.3.3
- color, 7.3.1
- , 10.4.2
- colSwap, 5.45.11
- colspace, 5.47.14
- colswap, 5.45.11
- comb, 5.6.2, 5.6.2
- combine, 5.25.2
- comDenom, 5.32.7
- comment, 3.2
- comments, 3.2, 12.2.1
- common_perpendicular, 14.5.8
- companion, 5.48.11
- compare, 12.2.5
- complex, 12.2.5
- complex_mode, 2.5.5
- complex_variables, 2.5.6
- complexroot, 5.29.2
- concat, 5.40.13, 5.44.3
- cone, 14.15.1
- confrac, 5.7.7
- conic, 5.54.6
- conj, 5.10.6
- conjugate_equation, 5.22.5
- conjugate_gradient, 5.54.4
- cont, 12.5.1
- contains, 5.38.7, 5.41.2
- content, 5.27.14
- contourplot, 7.11
- convert, 5.4.2, 5.23.26, 5.27.6, 5.27.25, 5.38.8, 11.1.4
- convertir, 5.23.26, 5.27.25
- convex, 5.21.8
- convexhull, 13.10.5
- convolution, 15.2.8
- coordinates, 13.13.4, 14.12.4
- copy, 4.4.4, 12.2.9
- correlation, 8.2.1
- cos, 5.16.2
- cos, 5.23.26, 5.25.2
- cos2sintan, 5.23.16
- cosh, 5.16.2
- cosine_window, 15.2.17
- cot, 5.16.2
- cote, 14.12.3
- count, 5.40.26, 5.45.12
- count_eq, 5.40.22, 5.45.13
- count_inf, 5.40.23, 5.45.14
- count_sup, 5.40.24, 5.45.15
- courbe_polaire, 7.16
- covariance, 8.2.1
- covariance_correlation, 8.2.1
- cpartfrac, 5.32.9
- crationalroot, 5.29.8
- createwav, 15.1.1
- cross, 5.42.8
- cross_correlation, 15.2.6
- cross_point, 7.3.1
- cross_ratio, 13.17.2
- crossP, 5.42.8
- crossproduct, 5.42.8
- cSolve, 5.55.6
- csc, 5.16.2
- cube, 14.16.1
- cumSum, 5.3.6, 5.40.27, 5.45.5
- cumulated_frequencies, 8.1.13
- curl, 5.21.5
- curvature, 6.2
- curve, 10.3.5
- cyan, 7.3.1
- cycle2perm, 5.9.5
- cycleinv, 5.9.12
- cycles2permu, 5.9.4
- cyclotomic, 5.28.12
- cylinder, 14.15.3
- Delete, 5.14.2
- DelFold, 4.6.3
- DelVar, 4.4.9
- Det, 5.35.5
- DIGITS, 2.5.1, 5.8.1, 10.2
- Digits, 2.5.1, 5.8.1, 10.2
- Dirac, 5.8.10
- Disp, 12.2.6
- DispG, 2.7.3, 12.4.10
- DispHome, 12.4.10
- DOM_COMPLEX, 12.2.5
- DOM_FLOAT, 12.2.5
- DOM_FUNC, 12.2.5
- DOM_IDENT, 12.2.5
- DOM_INT, 12.2.5
- DOM_LIST, 12.2.5
- DOM_RAT, 12.2.5
- DOM_STRING, 12.2.5
- DOM_SYMBOLIC, 12.2.5
- DrawFunc, 7.4
- DrawParm, 7.14, 7.14.2
- DrawPol, 7.16
- DrawSlp, 7.7.6
- DrwCtour, 7.11
- dash_line, 7.3.1
- dashdot_line, 7.3.1
- dashdotdot_line, 7.3.1
- dayofweek, 5.60
- debug, 12.5.1
- debugger, 12.1.7
- default, 12.3.2
- degree, 5.27.8
- del, 4.4.9
- delcols, 5.44.6
- delrows, 5.44.6
- deltalist, 5.40.32
- denom, 5.7.4, 5.32.4
- densityplot, 7.12
- derive, 5.19.4, 5.21.1
- deriver, 5.19.4, 5.21.1
- deSolve, 5.57.1
- desolve, 5.57.1
- det, 5.34.15, 5.47.4
- det_minor, 5.47.5
- dfc, 5.7.7
- dfc2f, 5.7.8
- diag, 5.44.2
- diff, 5.19.4, 5.21.1
- dim, 5.45.17
- directories, 4.6
- display, 13.3.3
- display, 7.3.1
- distance, 13.14.2, 14.12.7
- distance2, 13.14.3, 14.12.8
- distanceat, 13.14.1
- distanceatraw, 13.14.1
- div, 5.5.8
- divergence, 5.21.4
- divide, 5.28.4
- divis, 5.28.1
- division_point, 13.17.1
- divisors, 5.5.7
- divpc, 5.36.1
- dnewton_solverdnewton_solver, 10.5.1
- do, 12.3.3
- dodecahedron, 14.17.4
- domain, 5.17.1
- dot, 5.42.7
- dot_paper, 13.2.4
- dotP, 5.42.7
- dotprod, 5.42.7
- double, 12.2.5
- droit, 5.55.5
- dsolve, 5.57.1
- duration, 15.1.6
- Ei, 5.8.5
- ERROR, 12.4.12
- EXPR, 12.2.5
- e, 4.2
- e2r, 5.27.5
- egcd, 5.28.9
- egv, 5.48.3
- egvl, 5.48.2
- eigenvals, 5.48.1
- eigenvalues, 5.48.2
- eigenvectors, 5.48.3
- eigenvects, 5.48.3
- eigVc, 5.48.3
- eigVl, 5.48.2
- element, 13.6.15
- elif, 12.3.1
- eliminate, 5.12.22
- ellipse, 13.12.1, 14.11.1
- else, 12.3.1
- end, 12.1.7, 12.3.1
- end_for, 12.3.3
- endfunction, 12.1.2
- envelope, 13.18.2
- epsilon, 5.59.1
- epsilon2zero, 5.59.1
- equal, 5.55.1
- equal2diff, 5.55.2
- equal2list, 5.55.3
- equation, 13.13.7, 14.12.5
- equilateral_triangle, 13.8.4, 14.7.4
- erase, 13.2.1
- erf, 5.8.11
- erfc, 5.8.12
- error, 12.4.12
- euler, 5.5.24
- euler_gamma, 4.2
- euler_lagrange, 5.22.2
- eval, 5.12.1
- eval_level, 5.12.2
- evala, 5.12.3
- evalb, 5.1.7
- evalc, 5.10.3
- evalf, 4.4.8, 5.7.1, 5.8.1, 5.59.6, 10.2
- evalm, 5.45.1
- even, 5.5.11
- evolute, 6.2
- exact, 5.7.1, 5.59.7
- exbisector, 13.7.12
- excircle, 13.11.6
- exp, 5.16.2
- exp, 5.23.26, 5.25.2
- exp2list, 5.1.5
- exp2pow, 5.24.8
- exp2trig, 5.23.13
- expand, 5.12.6
- expexpand, 5.24.2
- expln, 5.23.26
- exponential, 8.4.15
- exponential_cdf, 8.4.15
- exponential_icdf, 8.4.15
- exponential_regression, 8.2.5
- exponential_regression_plot, 8.2.5
- exponentiald, 8.4.15
- exponentiald_cdf, 8.4.15
- exponentiald_icdf, 8.4.15
- export_mathml, 2.7.7
- expr, 5.3.14, 12.4.7
- expression, 12.2.5
- expression editor, 3.3
- expression tree, 3.3.2
- extract_measure, 13.14.1
- extrema, 5.53.3
- ezgcd, 5.28.7
- FALSE, 5.1.1
- Factor, 5.35.4
- Fahrenheit2Celsius, 11.1.5
- FUNC, 12.2.5
- f2nd, 5.7.5, 5.32.5
- faces, 14.16.7
- factor, 5.12.10, 5.34.14, 5.34.19
- factor_xn, 5.27.13
- factorial, 5.6.1
- factoriser, 5.34.14
- factors, 5.27.18
- false, 5.1.1
- falsepos_solver, 10.4.3
- fclose, 12.4.4
- fcoeff, 5.33.2
- fdistrib, 5.12.6
- feuille, 5.15.3
- fieldplot, 7.18
- filled, 7.3.1
- find_minimum, 5.53.1
- findhelp, 2.3
- fisher, 8.4.10
- fisher_cdf, 8.4.10
- fisher_icdf, 8.4.10
- fisherd, 8.4.10
- fitdistr, 8.4.23
- fitpoly, 5.27.35
- flatten, 5.40.14
- float2rational, 5.7.1, 5.59.7
- floor, 5.16.2
- fMax, 5.19.3
- fMin, 5.19.3
- foldl, 5.40.31
- foldr, 5.40.31
- fopen, 12.4.4
- for, 12.3.3
- format, 12.4.9
- fourier, 5.26.2
- fourier_an, 5.26.1
- fourier_bn, 5.26.1
- fourier_cn, 5.26.1
- fPart, 5.16.2
- fprint, 12.4.4
- frac, 5.16.2
- fracmod, 5.34.12
- frame_2d, 13.2.3
- frame_3d, 14.3.1
- frames, 13.3.2
- frames, 7.21.1
- frequences, 8.1.12
- frequences_cumulees, 8.1.13
- frequencies, 8.1.12
- frobenius_norm, 5.50.1
- from, 12.3.3
- froot, 5.33.1
- fsolve, 10.4, 10.5
- fullparfrac, 5.23.26
- func, 12.2.5
- funcplot, 7.4, 14.15.5
- function, 12.1.2
- function_diff, 5.19.1
- fxnd, 5.7.5, 5.32.5
- Gamma, 5.8.13
- Gcd, 5.5.1, 5.28.5, 5.28.6, 5.35.3
- GetFold, 4.6.3
- GF, 5.34.18
- Graph, 7.4
- gammad, 8.4.11
- gammad_cdf, 8.4.11
- gammad_icdf, 8.4.11
- gauche, 5.55.4
- gauss, 5.54.3
- gauss_seidel_linsolve, 5.56.8
- gaussian_window, 15.2.18
- gaussjord, 5.56.3
- gaussquad, 10.3.4
- gbasis, 5.31.1
- gcd, 5.5.1, 5.28.5, 5.34.13
- gcdex, 5.28.9
- genpoly, 5.31.4
- geometric, 8.4.13
- geometric_cdf, 8.4.13
- geometric_icdf, 8.4.13
- getDenom, 5.7.4, 5.32.3
- getKey, 12.2.3
- getNum, 5.7.3, 5.32.1
- getType, 12.2.5
- giac, 1.2.2, 1.2.5
- gl_material, 7.3.1
- gl_quaternion, 7.3.2
- gl_rotation, 7.3.2
- gl_shownames, 7.3.2
- gl_texture, 7.3.2, 13.3.2
- gl_texture, 7.3.1
- gl_x, 7.3.2
- gl_x_axis_name, 7.3.2
- gl_x_axis_unit, 7.3.2
- gl_x_tick, 7.3.2
- gl_y, 7.3.2
- gl_y_axis_name, 7.3.2
- gl_y_axis_unit, 7.3.2
- gl_y_tick, 7.3.2
- gl_z, 7.3.2
- gl_z_axis_name, 7.3.2
- gl_z_axis_unit, 7.3.2
- gl_z_tick, 7.3.2
- goto, 12.3.8
- grad, 5.21.1
- gramschmidt, 5.54.5
- graph2tex, 2.7.3
- graph3d2tex, 2.7.3
- graphe_suite, 7.17
- greduce, 5.31.2
- green, 7.3.1
- grid_paper, 13.2.6
- groupermu, 5.9.14
- Heaviside, 5.8.9
- hadamard, 5.45.8
- half_cone, 14.15.2
- half_line, 13.7.2, 14.5.2
- halftan, 5.23.19
- halftan_hyp2exp, 5.23.20
- halt, 12.5.1
- hamdist, 5.2.2, 5.3.16
- hamming_window, 15.2.19
- hann_poisson_window, 15.2.20
- hann_window, 15.2.21
- harmonic_conjugate, 13.17.4
- harmonic_division, 13.17.3
- has, 5.59.5
- hasard, 8.3.1
- head, 5.3.5, 5.39.4
- hermite, 5.30.2
- hessenberg, 5.48.12
- hessian, 5.21.3
- heugcd, 5.28.7
- hexadecimal, 5.4.1
- hexagon, 13.10.1, 14.9.1
- hidden_name, 7.3.1
- highpass, 15.2.10
- hilbert, 5.44.2
- histogram, 8.1.10
- histogramme, 8.1.10
- hold, 5.12.4
- homothety, 13.15.5, 14.14.5
- horner, 5.27.19
- hybrid_solverhybrid_solver, 10.5.2
- hybridj_solverhybridj_solver, 10.5.5
- hybrids_solverhybrids_solver, 10.5.3
- hybridsj_solverhybridsj_solver, 10.5.6
- hyp2exp, 5.24.1
- hyperbola, 13.12.2, 14.11.2
- IFTE, 5.1.3
- Input, 12.2.2
- InputStr, 12.2.2
- Int, 5.20.1
- Inverse, 5.35.6
- i, 4.2
- i[], 5.38.1
- iabcuv, 5.5.20
- ibasis, 5.47.10
- ibpdv, 5.20.5
- ibpu, 5.20.5
- icas, 1.2.2
- icdf, 8.4.21
- ichinrem, 5.5.21
- ichrem, 5.5.21
- icomp, 5.5.27
- icosahedron, 14.17.5
- id, 5.16.2
- identifier, 12.2.5
- identity, 5.44.2
- idivis, 5.5.7
- idn, 5.44.2
- iegcd, 5.5.19
- if, 12.3.1
- ifactor, 5.5.4
- ifactors, 5.5.5
- ifourier, 5.26.2
- ifte, 5.1.3
- igamma, 5.8.15
- igcd, 5.5.1
- igcdex, 5.5.19
- ihermite, 5.48.13
- ilaplace, 5.57.2
- im, 5.10.2
- imag, 5.10.2
- image, 5.47.11
- implicitdiff, 5.19.5
- implicitplot, 7.13
- in, 12.5.1
- in_ideal, 5.31.3
- incircle, 13.11.4
- indets, 5.59.2
- inequationplot, 7.8
- inertia, 5.49.10
- inf, 4.2
- infinity, 4.2
- input, 12.2.2
- inString, 5.3.10
- insert, 5.40.10
- int, 5.20.1
- intDiv, 5.5.8
- integer, 5.26.1, 12.2.5
- integer, 4.4.8
- integrate, 5.20.1
- inter, 13.6.7, 14.4.4
- interactive_odeplot, 7.20
- interactive_plotode, 7.20
- internal directories, 4.6.3
- interp, 5.27.29
- intersect, 5.38.6, 5.41.4
- interval, 5.23.26
- interval2center, 5.37.2
- inv, 5.34.11, 5.34.16, 5.47.2
- inverse, 5.34.16
- inversion, 13.15.7, 14.14.7
- invisible_point, 7.3.1
- invlaplace, 5.57.2
- invztrans, 5.58.2
- iPart, 5.16.2
- iquo, 5.5.8
- iquorem, 5.5.10
- iratrecon, 5.34.12
- irem, 5.5.9
- is_collinear, 13.16.2, 14.13.6
- is_concyclic, 13.16.3, 14.13.7
- is_conjugate, 13.16.14
- is_coplanar, 14.13.2
- is_cospherical, 14.13.8
- is_cycle, 5.9.8
- is_element, 13.16.1, 14.13.1
- is_equilateral, 13.16.5, 14.13.9
- is_harmonic, 13.16.15
- is_harmonic_circle_bundle, 13.16.17
- is_harmonic_line_bundle, 13.16.16
- is_inside, 13.16.4
- is_isosceles, 13.16.6, 14.13.10
- is_orthogonal, 13.16.13, 14.13.5
- is_parallel, 13.16.11, 14.13.3
- is_parallelogram, 13.16.10, 14.13.14
- is_permu, 5.9.7
- is_perpendicular, 13.16.12, 14.13.4
- is_prime, 5.5.14
- is_pseudoprime, 5.5.13
- is_rectangle, 13.16.7, 14.13.11
- is_rhombus, 13.16.9, 14.13.13
- is_square, 13.16.8, 14.13.12
- ismith, 5.48.14
- isobarycenter, 13.6.11, 14.4.7
- isolve, 5.5.23
- isom, 5.51.1
- isopolygon, 13.10.2, 14.9.2
- isosceles_triangle, 13.8.2, 14.7.2

- isPrime, 5.5.14
- isposdef, 5.47.16
- isprime, 5.5.14
- JordanBlock, 5.44.2
- jacobi_equation, 5.22.4
- jacobi_linsolve, 5.56.7
- jacobi_symbol, 5.5.26
- jordan, 5.48.5
- jusqua, 12.3.4
- kde, 8.4.22
- ker, 5.47.12
- kernel, 5.47.12
- kernel_density, 8.4.22
- kill, 12.5.1
- kmeans, 9.1.2
- kolmogorovd, 8.4.17
- kolmogorovt, 8.5.5
- kovacicsols, 5.57.3
- LaTeX, 2.7.1
- LIST, 12.2.5
- Li, 5.8.6
- Line, 13.7.3
- LineHorz, 7.7.2
- LineTan, 7.7.4
- LineVert, 7.7.3
- LQ, 5.49.4
- LSQ, 5.56.9
- LU, 5.49.6
- l1norm, 5.42.1, 5.50.5, 5.50.6
- l2norm, 5.42.1, 5.50.2, 5.50.6
- label, 12.3.8
- labels, 7.3.2
- lagrange, 5.27.29
- lagrange, 5.47.4
- laguerre, 5.30.3
- laplace, 5.26.2, 5.57.2
- laplacian, 5.21.2
- latex, 2.7.1
- lcm, 5.5.3, 5.28.8
- lcoeff, 5.27.10
- ldegree, 5.27.9
- ldl, 5.49.9
- left, 5.3.4, 5.15.3, 5.38.2, 5.40.6, 5.55.4
- legend, 13.3.3
- legend, 7.3.2
- legendre, 5.30.1
- legendre_symbol, 5.5.25
- length, 5.3.3, 5.39.3
- levenshtein, 5.3.15
- lgcd, 5.5.2
- lhs, 5.55.4
- ligne_polygonale, 8.2.3
- limit, 5.18
- lin, 5.24.4
- line, 7.7.1, 13.7.1, 14.5.1
- line_inter, 13.6.6, 14.4.3
- line_paper, 13.2.5
- line_segments, 14.16.8
- line_width_1, 7.3.1
- line_width_2, 7.3.1
- line_width_3, 7.3.1
- line_width_4, 7.3.1
- line_width_5, 7.3.1
- line_width_6, 7.3.1
- line_width_7, 7.3.1
- linear_interpolate, 8.2.3
- linear_regression, 8.2.4
- linear_regression_plot, 8.2.4
- linfnorm, 5.50.4
- linsolve, 5.56.6
- linsolve, 5.47.4
- list, 5.23.26
- list2exp, 5.1.6
- list2mat, 5.40.33
- listplot, 8.2.3
- lists, 5.40
- lll, 5.49.11
- ln, 5.16.2
- ln, 5.23.26, 5.25.2
- lname, 5.59.2
- lncollect, 5.24.5
- lnexpand, 5.24.3
- load, 4.6.2
- local, 12.1.2
- locus, 13.18.1
- log, 5.16.2
- log, 5.25.2
- log10, 5.16.2
- logarithmic_regression, 8.2.6
- logarithmic_regression_plot, 8.2.6
- logb, 5.16.2
- logistic_regression, 8.2.9
- logistic_regression_plot, 8.2.9
- loi_normal, 8.4.7
- lowpass, 15.2.9
- lpsolve, 5.52.2
- lsq, 5.56.9
- lu, 5.49.5
- lvar, 5.59.3
- MAT, 12.2.5
- Maple, 2.7.8
- MathML, 2.7.4
- magenta, 7.3.1
- make_symbol, 12.4.5
- makelist, 5.40.2, 12.4.2
- makemat, 5.44.4
- makesuite, 5.39.10
- map, 5.40.29
- maple2xcas, 2.7.8
- maple_ifactors, 5.5.6
- markov, 8.4.24
- mat2list, 5.40.34
- mathml, 2.7.4
- matpow, 5.48.6
- matrix, 5.44.4
- matrix, 5.23.26
- matrix_norm, 5.50.6
- max, 5.16.2
- maximize, 5.53.2
- maxnorm, 5.42.1, 5.50.3
- mean, 5.42.9, 5.45.16, 8.1.1
- median, 5.42.9, 5.45.16, 8.1.5
- median_line, 13.7.8
- member, 5.41.2
- mgf, 8.4.19
- mid, 5.3.5, 5.39.7
- midpoint, 5.38.4, 13.6.9, 14.4.5
- min, 5.16.2
- minimax, 5.27.36
- minimize, 5.53.2
- minor_det, 5.47.4
- minus, 5.41.5
- mkisom, 5.51.2
- mksa, 11.1.3
- mod, 5.5.9, 5.35
- modgcd, 5.28.7
- mods, 5.5.9
- moving_average, 15.2.11
- mRow, 5.45.11
- mRowAdd, 5.45.11
- mul, 5.40.28
- mult_c_conjugate, 5.10.7
- mult_conjugate, 5.12.8
- multinomial, 8.4.5
- mustache, 8.1.8
- NewFold, 4.6.3
- NONE, 12.2.5
- NUM, 12.2.5
- Nullspace, 5.47.13
- nCr, 5.6.2
- ncols, 5.45.19
- nDeriv, 10.3.2
- negbinomial, 8.4.4
- negbinomial_cdf, 8.4.4
- negbinomial_icdf, 8.4.4
- newList, 5.40.3
- newMat, 5.44.2
- newton, 10.3.1
- newton_solvernewton_solver, 10.4.4
- newtonj_solvernewtonj_solver, 10.5.4
- nextperm, 5.9.2
- nextprime, 5.5.15
- nInt, 10.3.3
- nlpsolve, 5.53.4
- nodisp, 3.1, 13.4
- noise removal, 15.2.28
- nop, 5.39.10
- nops, 5.39.3
- norm, 5.42.1, 5.42.1, 5.50.2, 5.50.6
- normal, 5.12.13, 5.34.1, 5.34.2, 5.34.3, 5.34.4, 5.34.9
- normal_cdf, 8.4.7
- normal_icdf, 8.4.7
- normald, 8.4.7
- normald_cdf, 8.4.7
- normald_icdf, 8.4.7
- normalize, 5.10.5, 5.42.2, 13.14.12
- normalt, 8.5.2
- not, 5.1.4
- nPr, 5.6.3
- nprimes, 5.5.18
- nrows, 5.45.18
- nSolve, 10.4
- nstep, 13.3.2
- nstep, 7.4
- nuage_points, 8.2.2
- nullspace, 5.47.12
- numdiff, 5.19.6
- numer, 5.7.3, 5.32.2
- Output, 12.2.2
- Ox_2d_unit_vector, 13.2.3
- Ox_3d_unit_vector, 14.3.1
- Oy_2d_unit_vector, 13.2.3
- Oy_3d_unit_vector, 14.3.1
- Oz_3d_unit_vector, 14.3.1
- octahedron, 14.17.3
- octal, 5.4.1
- odd, 5.5.12
- odeplot, 7.19
- odesolve, 10.3.5, 10.3.6
- op, 5.15.3, 5.39.10
- open_polygon, 13.10.4, 14.9.4
- or, 4.4.8, 5.1.4
- ord, 5.3.7
- order_size, 5.36.2
- ordinate, 13.13.3, 14.12.2
- orthocenter, 13.6.8
- orthogonal, 14.5.7
- osculating_circle, 6.2
- output, 12.2.2
- Pause, 12.4.11
- PIC, 12.2.5
- Postfix, 5.14.2
- Prefix, 5.14.2
- Psi, 5.8.17
- p1oc2, 5.9.9
- p1op2, 5.9.9
- pa2b2, 5.5.22
- pade, 5.36.5
- parabola, 13.12.3, 14.11.3
- parallel, 13.7.5, 14.5.5
- parallelepiped, 14.16.3
- parallelogram, 13.9.4, 14.8.4
- parameq, 13.13.8, 14.12.6
- paramplot, 7.14, 7.14.2, 14.15.6
- parfrac, 5.23.26
- pari, 5.7.10
- part, 5.12.24
- partfrac, 5.32.9
- partfrac, 5.23.26
- parzen_window, 15.2.22
- pcar, 5.48.7
- pcar_hessenberg, 5.48.8
- pcoef, 5.27.23
- pcoeff, 5.27.23
- perimeter, 13.14.7
- perimeterat, 13.14.1
- perimeteratraw, 13.14.1
- perm, 5.6.3
- perminv, 5.9.11
- permu2cycles, 5.9.3
- permu2mat, 5.9.6
- permuorder, 5.9.13
- perpen_bisector, 13.7.10, 14.6.2
- perpendicular, 13.7.6, 14.5.6
- peval, 5.27.12
- phi, 5.5.24
- pi, 4.2
- piecewise, 5.1.3
- piecewise defined functions, 5.1.3
- pivot, 5.56.5
- plane, 14.6.1
- playsnd, 15.1.4, 15.1.13
- plot, 7.5
- plot3d, 7.6
- plotarea, 7.10, 13.14.5
- plotcontour, 7.11
- plotdensity, 7.12
- plotfield, 7.18
- plotfunc, 7.4
- plotimplicit, 7.13
- plotinequation, 7.8
- plotlist, 8.2.3
- plotode, 7.19
- plotparam, 7.14, 7.14.2
- plotpolar, 7.16
- plotseq, 7.17
- plotspectrum, 15.1.10
- plotwav, 15.1.9
- plus_point, 7.3.1
- pmin, 5.11.2, 5.48.9
- point, 13.6.2, 14.4.1
- point2d, 13.6.4
- point3d, 14.4.2
- point_milieu, 7.10
- point_point, 7.3.1
- point_polar, 13.6.5
- point_width_1, 7.3.1
- point_width_2, 7.3.1
- point_width_3, 7.3.1
- point_width_4, 7.3.1
- point_width_5, 7.3.1
- point_width_6, 7.3.1
- point_width_7, 7.3.1
- poisson, 8.4.6
- poisson_cdf, 8.4.6
- poisson_icdf, 8.4.6
- poisson_window, 15.2.23
- polar, 13.17.5
- polar_coordinates, 13.13.6
- polar_point, 13.6.5
- polarplot, 7.16
- pole, 13.17.5
- poly1, 5.27.1
- poly2symb, 5.27.4
- polyEval, 5.27.12
- polygon, 13.10.3, 14.9.3
- polygonplot, 8.2.3
- polyhedron, 14.16.5
- polynom, 5.23.26, 5.27.25
- polynomial_regression, 8.2.8
- polynomial_regression_plot, 8.2.8
- poslbdLMQ, 5.29.6
- posubLMQ, 5.29.5
- potential, 5.21.6
- pow2exp, 5.24.7
- power_regression, 8.2.7
- power_regression_plot, 8.2.7
- powermod, 5.34.10
- powerpc, 13.11.7
- powexpand, 5.24.6
- powmod, 5.34.10
- prepend, 5.40.12
- preval, 5.12.23
- prevperm, 5.9.2
- prevprime, 5.5.16
- primpart, 5.27.15
- print, 12.2.6
- printpow, 12.2.7
- prism, 14.16.4
- product, 5.40.28, 5.45.6, 5.45.8
- program, 12.1.5
- projection, 13.15.8, 14.14.8
- proot, 10.6
- propFrac, 5.7.2
- propfrac, 5.7.2, 5.32.8
- psrgcd, 5.28.7
- ptayl, 5.27.20
- purge, 4.4.8, 4.4.9, 5.26.1, 12.1.3
- pwd, 4.6.1
- pyramid, 14.16.2
- QR, 5.49.3
- Quo, 5.28.2, 5.35.1
- q2a, 5.54.1
- qr, 5.49.2
- quadric, 5.54.8
- quadrilateral, 13.9.5, 14.8.5
- quandrant1, 7.3.1
- quandrant2, 7.3.1
- quandrant3, 7.3.1
- quandrant4, 7.3.1
- quantile, 5.42.9, 5.45.16, 8.1.7
- quartile1, 8.1.6
- quartile3, 8.1.6
- quartiles, 5.42.9, 5.45.16, 8.1.6
- quest, 3.4
- quo, 5.28.2, 5.34.5
- quorem, 5.28.4, 5.34.7
- quote, 5.3.1, 5.12.4
- RandSeed, 8.3.2
- REDIM, 5.44.6
- REPLACE, 5.44.6
- Rem, 5.28.3, 5.35.2
- Rref, 5.35.7
- r2e, 5.27.4
- radical_axis, 13.11.8
- radius, 13.14.9
- rand, 8.3.1
- randbetad, 8.3.11
- randbinomial, 8.3.3
- randchisquare, 8.3.8
- randexp, 8.3.13
- randfisher, 8.3.9
- randgammad, 8.3.10
- randgeometric, 8.3.12
- randint, 8.3.1
- randMat, 8.3.16
- randmarkov, 8.4.25
- randmatrix, 8.3.16
- randmultinomial, 8.3.4
- randNorm, 8.3.6
- randnorm, 8.3.6
- random, 8.3.1
- random_variable, 8.3.14
- randPoly, 5.27.26
- randperm, 5.9.1
- randpoisson, 8.3.5
- randpoly, 5.27.26
- randseed, 8.3.2
- randstudent, 8.3.7
- randvar, 8.3.14
- randvector, 8.3.15
- range, 5.40.4
- rank, 5.47.6
- ranm, 5.27.28, 8.3.16
- rat_jordan, 5.48.4
- ratinterp, 5.27.33
- rational, 12.2.5
- rational_det, 5.47.4
- rationalroot, 5.29.7
- ratnormal, 5.12.16
- rdiv, 5.8.3
- re, 5.10.2
- read, 4.6.2
- readrgb, 15.3.2
- readwav, 15.1.2, 15.1.11
- real, 5.10.2, 12.2.5
- realroot, 5.29.1
- reciprocation, 13.17.6
- rect, 15.2.2
- rectangle, 13.9.3, 14.8.3
- rectangle_droit, 7.10
- rectangle_gauche, 7.10
- rectangular_coordinates, 13.13.5
- red, 7.3.1
- redim, 5.44.6
- reduced_conic, 5.54.7
- reduced_quadric, 5.54.9
- ref, 5.56.2
- reflection, 13.15.3, 14.14.3
- regroup, 5.12.12
- rem, 5.28.3, 5.34.6
- remain, 5.5.9
- remove, 5.40.9
- reorder, 5.27.27
- repeat, 12.3.4
- repeter, 12.3.4
- replace, 5.44.6
- resample, 15.1.8
- residue, 5.36.4
- resoudre, 5.12.10, 5.21.1, 7.7.7
- restart, 4.4.9
- resultant, 5.28.14
- return, 12.1.2
- reverse_rsolve, 5.56.10
- revert, 5.36.3
- revlist, 5.40.15
- rhombus, 13.9.2, 14.8.2
- rhombus_point, 7.3.1
- rhs, 5.55.5
- riemann_window, 15.2.24
- right, 5.3.4, 5.15.3, 5.38.2, 5.40.6, 5.55.5
- right_triangle, 13.8.3, 14.7.3
- risch, 5.20.2
- rm_a_z, 4.4.9
- rm_all_vars, 4.4.9
- rmbreakpoint, 12.5.1
- rmbrk, 12.5.1
- rms, 15.2.5
- rmwatch, 12.5.1
- rmwtch, 12.5.1
- romberg, 10.3.3
- root, 5.8.4
- rootof, 5.27.21
- roots, 5.27.22
- rotate, 5.40.16
- rotation, 13.15.4, 14.14.4
- round, 5.16.2
- row, 5.44.5
- rowAdd, 5.45.11
- rowDim, 5.45.18
- rowdim, 5.45.18
- rowNorm, 5.50.4
- rownorm, 5.50.4
- rowSwap, 5.45.11
- rowspace, 5.47.15
- rowswap, 5.45.11
- rref, 5.34.17, 5.56.3
- rsolve, 5.13.3
- SCALE, 5.45.11
- SCALEADD, 5.45.11
- SCHUR, 5.48.12
- SetFold, 4.6.3
- Si, 5.8.8
- SortA, 5.40.19
- SortD, 5.40.20
- STR, 12.2.5
- Store, 4.4.2
- SVL, 5.49.7
- sample, 8.3.1
- samplerate, 15.1.6
- scalar_product, 5.42.7
- scalarProduct, 5.42.7
- scale, 5.45.11
- scaleadd, 5.45.11
- scatterplot, 8.2.2
- sec, 5.16.2
- secant_solversecant_solver, 10.4.5
- segment, 13.7.3, 13.7.4, 14.5.3
- select, 5.40.5
- semi_augment, 5.44.3
- seq, 5.39.2
- seq[], 4.3.1, 5.39.1
- seqplot, 7.17
- seqsolve, 5.13.2
- series, 5.36.2
- set[], 4.3.2, 5.41.1
- shift, 5.40.17
- shift_phase, 5.23.3
- shuffle, 5.9.1
- sign, 5.16.2
- signature, 5.9.10
- similarity, 13.15.6, 14.14.6
- simp2, 5.7.6, 5.32.6
- simplex_reduce, 5.52.1
- simplify, 5.12.14, 5.23.5
- simult, 5.56.4
- sin, 5.16.2
- sin, 5.23.26, 5.25.2
- sin2costan, 5.23.15
- sinc, 15.2.4
- sincos, 5.23.13
- sincos, 5.23.26
- single_inter, 13.6.6, 14.4.3
- sinh, 5.16.2
- size, 5.3.3, 5.39.3
- sizes, 5.40.1
- slope, 13.14.8
- slopeat, 13.14.1
- slopeatraw, 13.14.1
- smith, 5.48.15
- smod, 5.5.9
- snedecor, 8.4.10
- snedecor_cdf, 8.4.10
- snedecor_icdf, 8.4.10
- snedecord, 8.4.10
- solid_line, 7.3.1
- solve, 5.12.10, 5.21.1, 5.55.6, 7.7.7
- sommet, 5.15.3
- sort, 5.40.18
- sortperm, 5.40.21
- soundsec, 15.1.14
- specnorm, 5.50.6
- sphere, 14.15.4
- spline, 5.27.30
- split, 5.12.9
- spreadsheet, 3.5
- sq, 5.16.2
- sqrfree, 5.27.17
- sqrt, 5.16.2
- square, 13.9.1, 14.8.1
- square_point, 7.3.1
- srand, 8.3.2
- sst, 12.5.1
- sst_in, 12.5.1
- star_point, 7.3.1
- stdDev, 8.1.4
- stddev, 5.42.9, 5.45.16
- stddevp, 5.42.9, 8.1.4
- stdev, 8.1.3
- steffenson_solver, 10.4.6
- step, 12.3.3
- stereo2mono, 15.1.5
- sto, 4.4.2
- string, 12.2.5, 12.4.8
- string, 5.23.26
- student, 8.4.8
- student_cdf, 8.4.8
- student_icdf, 8.4.8
- studentd, 8.4.8
- studentt, 8.5.3
- sturm, 5.28.13
- sturmab, 5.28.13
- sturmseq, 5.28.13
- subexpression, 3.3.2
- subexpressions, 3.3.2, 3.3.3
- subMat, 5.44.5
- subs, 5.12.20
- subsop, 5.40.7, 5.44.6
- subst, 5.12.18
- subtype, 12.2.5
- sum, 5.20.3, 5.40.25, 5.45.4
- sum_riemann, 5.20.4
- supposons, 4.4.8
- suppress, 5.40.8
- surd, 5.16.2
- svd, 5.49.8
- svl, 5.49.7
- swapcol, 5.45.11
- swaprow, 5.45.11
- switch, 12.3.2
- switch_axes, 13.2.2
- sylvester, 5.28.14
- symb2poly, 5.27.5
- symbol, 12.1.3
- symbol_array, 12.4.6
- symmetry, 14.14.3
- syst2mat, 5.56.1
- TeXmacs, 1.2.4
- TRUE, 5.1.1
- table, 5.43
- tablefunc, 5.13.1
- tableseq, 5.13.4
- tabvar, 5.17.2
- tail, 5.3.5, 5.39.5
- tan, 5.16.2
- tan, 5.23.26
- tan2cossin2, 5.23.18
- tan2sincos, 5.23.14
- tan2sincos2, 5.23.17
- tangent, 7.7.5, 13.7.7, 14.6.3
- tanh, 5.16.2
- taylor, 5.36.2
- tCollect, 5.23.4
- tchebyshev1, 5.30.4
- tchebyshev2, 5.30.5
- tcoeff, 5.27.11
- tcollect, 5.23.4
- tExpand, 5.25.1
- tetrahedron, 14.16.2
- texpand, 5.25.1
- textinput, 12.2.2
- then, 12.3.1
- thickness, 13.3.2
- thiele, 5.27.32
- threshold, 15.2.12
- throw, 12.4.12
- title, 7.3.2
- tlin, 5.23.2
- to, 12.3.3
- tpsolve, 5.52.3
- trace, 5.47.3, 13.18.3
- tran, 5.47.1
- translation, 13.15.2, 14.14.2
- transpose, 5.47.1
- trapeze, 7.10
- tri, 15.2.3
- triangle, 13.8.1, 14.7.1
- triangle_paper, 13.2.7
- triangle_point, 7.3.1
- triangle_window, 15.2.25
- trig, 5.25.2
- trig2exp, 5.23.21
- trigcos, 5.23.24
- trigexpand, 5.23.1
- triginterp, 5.27.34
- trigsimplify, 5.23.6
- trigsin, 5.23.23
- trigtan, 5.23.25
- trn, 5.47.7
- true, 5.1.1
- trunc, 5.16.2
- truncate, 5.27.24
- try, 12.4.12
- tsimplify, 5.24.9
- tstep, 13.3.2
- tukey_window, 15.2.26
- tuple, 5.41.5
- type, 12.2.5
- Unary, 5.14.2
- Unquoted, 12.4.4
- UTPC, 8.4.9
- UTPF, 8.4.10
- UTPN, 8.4.7
- UTPT, 8.4.8
- ufactor, 11.1.6
- ugamma, 5.8.14
- unapply, 5.15.2
- unarchive, 4.4.6
- unfactored, 7.13
- uniform, 8.4.2
- uniform_cdf, 8.4.2
- uniform_icdf, 8.4.2
- uniformd, 8.4.2
- uniformd_cdf, 8.4.2
- uniformd_icdf, 8.4.2
- union, 5.38.5, 5.41.3
- unitV, 5.10.5, 5.42.2
- unquote, 5.12.5
- until, 12.3.4
- user_operator, 5.14.2
- usimplify, 11.1.7
- ustep, 13.3.2
- VAR, 12.2.5
- VARS, 4.4.9, 4.6.3
- VAS, 5.29.3
- VAS_positive, 5.29.4
- valuation, 5.27.9
- vandermonde, 5.44.2
- variable, 4.4.1
- variance, 5.42.9, 5.45.16, 8.1.2
- vector, 12.2.5, 13.7.4, 14.5.4
- vectors, 5.40
- version, 1.2.5
- vertices, 13.6.13, 14.16.6
- vertices_abc, 13.6.13
- vertices_abca, 13.6.14
- vpotential, 5.21.7
- vstep, 13.3.2
- WAIT, 12.4.11
- watch, 12.5.1
- weibull, 8.4.16
- weibull_cdf, 8.4.16
- weibull_icdf, 8.4.16
- weibulld, 8.4.16
- weibulld_cdf, 8.4.16
- weibulld_icdf, 8.4.16
- welch_window, 15.2.27
- when, 5.1.3, 5.1.3
- while, 12.3.5
- white, 7.3.1
- widget_size, 2.5.10
- wilcoxonp, 8.4.18
- wilcoxons, 8.4.18
- wilcoxont, 8.4.18
- write, 12.4.3
- writergb, 15.3.4
- writewav, 15.1.3, 15.1.12
- wz_certificate, 5.6.4
- Xcas, 1.2.1, 2
- xcas.rc, 2.5.10
- xcas_mode, 2.5.2, 2.5.10
- xml_print, 2.7.6
- xor, 5.1.4
- xstep, 13.3.2
- xstep, 7.4
- xyztrange, 2.5.10
- yellow, 7.3.1
- ystep, 13.3.2
- ystep, 7.4
- Zeta, 5.8.18
- zeros, 5.12.11
- zip, 5.40.30
- zstep, 13.3.2
- zstep, 7.4
- ztrans, 5.58.1

# Chapter 1 Introduction

## 1.1 Notations used in this manual

In this manual, the information that you enter is typeset in typewriter font. User input typically takes one of three forms:

- Commands that you enter on the command line.
  For example, to compute the sin of π/4, you can type
  sin(pi/4)
- Commands requiring a prefix key.
  These are indicated by separating the prefix key and the standard key with a plus +. For example, to exit an Xcas session, you can type the control key along with the q key, which will be denoted
  Ctrl+Q
- Menu commands.
  When denoting menu items, submenus are connected using ▸. For example, from within Xcas you can choose the File menu, then choose the Open submenu, and then choose the File item. This will be indicated by
  File ▸ Open ▸ File

When describing entering a command, specific values that you enter for arguments are in typewriter font, while argument placeholders that should be replaced by actual values are in italics. Optional arguments will be enclosed by angle brackets. For example, you can find the derivative of an expression with the diff command (see Section 5.19.4), which takes the form diff(expr ⟨,x⟩]) where expr is an expression and x is a variable or list of variables. If the optional variable is omitted, then it will default to x. A specific example is diff(x*sin(x),x).

The index uses different typefaces for different parts of the language. The commands themselves are written with normal characters, command options are written in italics and values of commands or options are written in typewriter font. For example (as you will see later), you can draw a blue parabola with the command

plotfunc(x^2,color = blue)

In the index, you will see

- plotfunc, the command, written in normal text.
- color, the command option, written in italics.
- blue, the value given to the option, written in typewriter font.

## 1.2 Interfaces for the giac library

The giac library is a C++ mathematics library. It comes with two interfaces you can use directly; a graphical interface and a command-line interface. All interfaces can do symbolic and numeric calculations, use giac’s programming language, and have a built in help function.

The graphical interface is called Xcas, and is the most full-featured interface. Xcas has additional help features to make it easy to use, plus it has a built-in spreadsheet, it can do dynamic geometry and it can do turtle graphics. The output given by this interface is typeset; for example:
Input:

sqrt(1/2)

Output:

√

2

2

The command-line interface can be run inside a terminal, and in a graphical environment can also draw graphs. The output given by this interface is in text form; for example:
Input:

sqrt(1/2)

Output:

sqrt(2)/2

There is also a web version, which can be run through a javascript-enabled browser (it works best with Firefox), either over the internet or from local files. Other programs (for example, TeXmacs) have interfaces for the command-line version. Some of these interfaces, such as the two mentioned here, typeset their output.

- The Xcas interface
- The command-line interface: icas giac
- The Firefox interface
- The TeXmacs interface
- Checking the version of giac that you are using: version giac

# Chapter 2 The Xcas interface

## 2.1 The entry levels

The Xcas interface can run several independent calculation sessions, each session will be contained in a separate tab. Before you understand the Xcas interface, it would help to be familiar with the components of a session.

Each session can have any number of input levels. Each input level will have a number to the left of it; the number is used to identify the level. Each level can have one of the following:

- A command line.
  This is the default; you can open a new command line with Alt+N.
  You can enter a giac command (or a series of commands separated by semicolons) on a command line and send it to be evaluated by hitting enter. The result will then be displayed, and another command line will appear. You can also scroll through the command history with Ctrl+Up and Ctrl+Down.

  If the output is a number or an expression, then it will appear in blue text in a small area below the input region; this area will be an expression editor (see Section 3.3). There will be a scrollbar and a small M to the right of this area; the M is a menu which gives you various options.

  If the output is a graphic, then it will appear in a graphing area below the input region. To the right of the graphic will be a control panel which you can use to manipulate the graphic (see Section 7.2).

- An expression editor.
  See Section 3.3. You can open an expression editor with Alt+E.
- A two-dimensional geometry screen.
  See Section 7.2. You can open a two-dimensional geometry screen with Alt+G. This level will have a screen, as well as a control panel, menus and a command line to control the screen.
- A three-dimensional geometry screen.
  See Section 7.2. You can open a three-dimensional geometry screen with Alt+H. This level will have a screen, as well as a control panel, menus and a command line to control the screen.
- A turtle graphics screen.
  You can open a turtle graphics screen with Alt+D. This level will have a screen, as well as a program editor and command line.
- A spreadsheet.
  See Section 3.5. You can open a spreadsheet with Alt+T. A spreadsheet can open a graphic screen.
- A program editor.
  See Section 12.1.1. You can open a program editor with Alt+P.
- A comment line.
  See Section 3.2. You can open a comment line with Alt+C.

Levels can be moved up and down in a session, or even moved to a different session.

The level containing the cursor is the current level. The current level can be evaluated or re-evaluated by typing enter.

You can select a level (for later operations) by clicking on the number in the white box to the left of the level. Once selected, the box containing the number turns black. You can select a range of levels by clicking on the number for the beginning level, and then holding the shift key while you click on the number for the ending level.

You can copy the instructions in a range of levels by selecting the range, and then clicking the middle mouse button on the number of the target level.

## 2.2 The starting window

When you first start Xcas, you get a largely blank window.

The first row will consist of the main menus; you can save and load Xcas sessions, configure Xcas and its interface and run various commands with entries from these menus.

The second row will contains tabs; one tab for each session that you are running in Xcas. Each tab will have the name of its session, or Unnamed if the session has no name. The first time you start Xcas, there will be only one session, which will be unnamed.

The third row will contain various buttons.

- The first button, ?, opens the help index (The same as the Help▸Index menu entry; see Section 2.3). If there is a command on the command line, the help index will open at this command.
- The second button, Save, saves the session in a file. The first time you click on it you will be prompted for a file name ending in .xws in which to save the session. The button will be pink if the session is not saved or if it has changed since the last change, it will be green once the session is saved. The name in the title will be the name of the file used to save the session.
- The third button, which in the picture above is
  Config: exact real RAD 12 xcas 6.2148M,
  is a status line indicating the current Xcas configuration (see Section 2.5). If the session is unsaved, it will begin with Config:; if the session is saved in a file filename.xws, this button will begin with Config filename.xws:. Other information on this status line:
  1. exact or approx
     This tells you whether Xcas will give you exact values, such as √2, when possible or gives you decimal approximations, such as 1.4142135. (See Section 2.5.4.)
  2. real, cplx or CPLX.
     When this shows real (for example), then Xcas will by default only find real solutions of equations. When this shows cplx, then Xcas will find complex solutions of equations. When this shows CPLX, then Xcas will regard variables as complex; for example, it won’t simplify re(z) (the real part of the variable z) to z. (See sections 2.5.5 and 2.5.6.)
  3. RAD or DEG.
     This tells you whether angles, as in trigonometric arguments, are measured in radians or degrees. (See Section 2.5.3.)
  4. An integer.
     This tells you how many significant digits will be used in floating point calculations. (See Section 2.5.1.)
  5. xcas, python ^=**, python ^=xor, maple, mupad, or ti89.
     This tells you what syntax Xcas will use. Xcas can be set to emulate the languages of Python, Maple, MuPAD, or the TI89 series of calculators. (See Section 2.5.2.)
  6. The last item tells you how much memory Xcas is using.
  Clicking on this status line button opens a window where you can configure the settings shown on this line as well as some other settings; you can also open the window with the menu item Cfg▸CAS Configuration (see Section 2.5.7).
- The fourth button, STOP (in red), is used to halt a computation which is running on too long.
- The fifth button, Kbd, toggles an on-screen scientific keyboard at the bottom of the window.
  Along the right hand side of the keyboard are some keys that can be used to change the keyboard.
  - The X key hides the keyboard, just like pressing the Kbd button again.
  - The cmds key toggles a menu bar at the bottom of the screen which can be used as an alternate menu or persistent submenu. This bar will contain buttons home, <<, some menu titles, >>, var, cust and X.

    The << and >> buttons scroll through menu items. Clicking on one of the menu buttons will perform the appropriate action or replace the menu items by its submenu items. When submenu items appear, there will also be a BACK button to return to the previous menu. Clicking on the home button returns the menu buttons to the main menu.

    After the menu buttons is a var button. This replaces the menu buttons by buttons representing the variables that you have defined. After that is a cust button, which displays commands that you store in a list variable CST (see section 4.4.10).

    The last button, X, closes the menu bar.

  - The msg key brings up a message window at the bottom of the window which will give you helpful messages; for example, if you save a graphic, it will tell you the name of the file it is saved in and how to include it in a LATEX file.
  - The abc key toggles the keyboard between the scientific keyboard and an alphabetic keyboard.
- The fifth button, X, closes the current session.

## 2.3 Getting help

Xcas is an extensive program, but using it is simplified with several different ways of getting help. The help menu (see section 2.4.4) has several submenus for various forms of help, some of which are mentioned below.

- - Tooltips
  - HTML help
  - The help index
  - findhelp

## 2.4 The menus

The menus provide different ways to work with Xcas and its sessions, as well as ways of inserting functions and constants into the current session. Selecting a menu item corresponding to a function or constant brings up the help index (see section 2.3) with the chosen function or constant selected.

- The File menu
- The Edit menu
- The Cfg menu
- The Help menu
- The Toolbox menu
- The Expression menu
- The Cmds menu
- The Prg menu
- The Graphic menu
- The Geo menu
- The Spreadsheet menu
- The Phys menu
- The Highschool menu
- The Turtle menu

## 2.5 Configuring Xcas

- The number of significant digits: Digits DIGITS
- The language mode: xcas_mode
- The units for angles: angle_radian
- Exact or approximate values: approx_mode
- Complex numbers: cfactor complex_mode
- Complex variables: complex_variables
- Configuring the computations
- Configuring the graphics
- More configuration
- The configuration file: widget_size cas_setup xcas_mode xyztrange

## 2.6 Printing and saving

- Saving a session
- Saving a spreadsheet
- Saving a program
- Printing a session

## 2.7 Translating to other computer languages

Xcas can translate a session, or parts of a session, to other computer languages; notably LATEX and MathML.

- Translating an expression to LATEX: latex
  - Example.
- Translating the entire session to LATEX
- Translating graphical output to LATEX: graph2tex graph3d2tex
  - Example.
- Translating an expression to MathML: mathml
  - Example.
- Translating a spreadsheet to MathML
- Indent an XML string: xml_print
  - Example.
- Export to presentation or content MathML: export_mathml
  - Examples.
- Translating a Maple file to Xcas: maple2xcas

# Chapter 3 Entry in Xcas

## 3.1 Suppressing output: nodisp :;

If you enter a command into Xcas, the result will appear in the output box below the input. If you enter

a:= 2+2

then

4

will appear in the output box.

The nodisp command is used to evaluate an expression and suppress the output.

- nodisp takes one argument:
  expr, an expression.
- nodisp(expr) evaluates expr but displays Done in place of the result.

- - Example.
  - Example.

## 3.2 Entering comments: comment

You can annotate an Xcas session by adding comments. You can enter a comment on the current line at any time by typing Alt+C. The line will appear in green text and conclude when you type Enter. Comments are not evaluated and so have no output. If you have started entering a command when you begin a comment, the command line with the start of the command will be pushed down so that you can finish it when you complete the comment.

You can open the browser using a comment line by entering the web address beginning with the @ sign. If you enter the comment line

The Xcas homepage is at
@www-fourier.ujf-grenoble.fr/~parisse/giac.html

then the browser will open to the Xcas home page.

To add a comment to a program, rather than a session, you can use the comment command.

- comment takes one argument:
  str, a string.
- comment(str) makes str a comment.

Alternatively, any part of a program between // and the end of the line is a comment. So both

bs():= {comment("Hello"); return "Hi there!";}

and

bs():= { // Hello
return "Hi there!";}

are programs with the comment "Hello".

## 3.3 Editing expressions

You can enter expressions on the command line, but Xcas also has a built-in expression editor that you can use to enter expressions in two dimensions, the way they normally look when typeset. When you have an expression in the editor, you can also manipulate subexpressions apart from the entire expression.

- Entering expressions in the editor: an example
- Subexpressions
- Manipulating subexpressions

## 3.4 Previous results: ans

The ans command returns the results of previous commands.

- ans takes one optionaly argument:
  Optionally, n, an integer (the number of the command beginning with 0).
- ans(⟨ n⟩ ) returns the corresponding result; in particular, ans(-1) returns the previous result.

- - Example.

## 3.5 Spreadsheet

- Opening a spreadsheet
- The spreadsheet window

# Chapter 4 CAS building blocks

## 4.1 Numbers

Xcas works with both real and complex numbers. The real numbers can be integers, rational numbers, floating point numbers or symbolic constants.

You can enter an integer by simply typing the digits.
Input:

1234321

Output:

1234321

Alternatively, you can enter an integer in binary (base 2) by prefixing the digits (0 through 1) with 0b, in octal (base 8) by prefixing the digits (0 through 7) with 0 or 0o, and in hexadecimal (base 16) by prefixing the digits (0 through 9 and a through f) with 0x. (See Section 5.4.1.)
Input:

0xab12

Output:

43794

You can enter a rational number as the ratio of two integers.
Input:

123/45

Output:

41
15

The result will be put in lowest terms. If the top is a multiple of the bottom, the result will be an integer.
Input:

123/3

Output:

41

A floating point number is regarded as an approximation to a real number. You can enter a floating point number by writing it out with a decimal point.
Input:

123.45

Output:

123.45

You can also enter a floating point number by entering a sequence of digits, with an optional decimal point, followed by e and then an integer, where the e represents “times 10 to the following power.”
Input:

1234e3

Output:

1234000.0

Floating point numbers with a large number of digits will be printed with e notation; you can control how other floats are displayed (see Section 2.5.7, item 7). An integer or rational number can be converted to a floating point number with evalf (see Section 5.8.1).

A complex number is a number of the form a+bi, where a and b are real numbers. The numbers a and b will be the same type of real number; one type will be converted to the other type if necessary (an integer can be converted to a rational number or a floating point number, and a rational number can be converted to a floating point number).
Input:

3 + 1.1i

Output:

3+1.1i

## 4.2 Symbolic constants: e pi infinity inf i euler_gamma

Xcas has the standard constants given by built-in symbols, given in the following table.

Symbol | Value
e (or %e) | the number exp(1)
pi (or %pi) | the number π
infinity | unsigned ∞
+infinity (or inf) | +∞
-infinity (or -inf) | −∞
i (or %i) | the complex number i
euler_gamma | Euler’s constant γ; namely, limn→∞(∑k=1n − ln(n))

Since these numbers cannot be written exactly as standard decimal numbers, they are necessarily left unevaluated in exact results (see Section 2.5.4).
Input:

2*pi

Output:

2π

Input:

2.0*pi

Output:

6.28318530718

You can also use evalf (see Section 5.8.1), for example, to approximate one of the real-valued constants to as many decimal places as you want.
Input:

evalf(pi,50)

Output:

3.1415926535897932384626433832795028841971693993751

## 4.3 Sequences, sets and lists

- Sequences: seq[] ()
- Sets: set[]
- Lists: [ ]
- Accessing elements
  - Examples.
  - Example.

## 4.4 Variables

- Variable names
- Assigning values: := => = assign sto Store
- Assignment by reference: =<
- Copying lists: copy
- Incrementing variables: += -= *= /=
- Storing and recalling variables and their values: archive unarchive
  - Example.
- Copying variables: CopyVar
  - Example.
- Assumptions on variables: about additionally assume purge supposons and or
- Unassigning variables: VARS purge DelVar del restart rm_a_z rm_all_vars
  - Example.
  - Example.
  - Example.
- The CST variable

## 4.5 Functions

- Defining functions

## 4.6 Directories

- Working directories: pwd cd
  - Example.
  - Example.
- Reading files: read load
  - Example.
  - Example.
- Internal directories: NewFold SetFold GetFold DelFold VARS
  - Example.

# Chapter 5 The CAS functions

## 5.1 Booleans

- Boolean values: true false
- Tests: == != > >= < =<
- Defining functions with boolean tests: ifte ?: when
  - Example.
  - Example.
  - Example.
- Boolean operators: or xor and not
  - Examples.
- Transforming a boolean expression to a list: exp2list
  - Examples.
- Transforming a list into a boolean expression: list2exp
  - Examples.
  - Example.
- Evaluating booleans: evalb
  - Examples.

## 5.2 Bitwise operators

- Basic operators: bitor bitxor bitand
- Bitwise Hamming distance: hamdist
  - Example.

## 5.3 Strings

- Characters and strings: "
  - Examples.
  - Example.
- The newline character: \n
  - Example.
- The length of a string: size length
  - Example.
- The left and right parts of a string: left right
  - Example.
  - Example.
- First character, middle and end of a string: head mid tail
  - Example.
  - Example.
- Concatenation of a sequence of words: cumSum
  - Example.
- ASCII code of a character: ord
  - Example.
- ASCII code of a string: asc
  - Examples.
- String defined by the ASCII codes of its characters: char
  - Example.
- Finding a character in a string: inString
  - Examples.
- Concatenating objects into a string: cat
  - Examples.
- Adding an object to a string: +
  - Examples.
- Transforming a real number into a string: cat +
  - Example.
  - Example.
- Transforming a string into a number: expr
  - Examples.
- Levensthein distance: levenshtein
  - Example.
- Hamming distance between sequences: hamdist
  - Example.

## 5.4 Writing an integer in a different base

- Writing an integer in base 2, 8 or 16
  - Example.
  - Example.
  - Example.
- Writing an integer in an arbitrary base b: convert
  - Example.
  - Example.
  - Examples.

## 5.5 Integers (and Gaussian Integers)

Xcas can manage integers with unlimited precision, such as the following (see Section 5.6.1):
Input:

factorial(100)

Output:

9332621544394415268169923885626670049071596826438162
1468592963895217599993229915608941463976156518286253
697920827223758251185210916864000000000000000000000000

Gaussian integers are numbers of the form a+ib, where a and b are in ℤ. For most functions in this section, you can use Gaussian integers in place of integers.

- GCD: gcd igcd Gcd
  - Examples.
  - Examples.
  - Examples.
- GCD of a list of integers: lgcd
  - Example.
- The least common multiple: lcm
  - Examples.
  - Example.
- Decomposition into prime factors: ifactor
  - Examples.
- List of prime factors: ifactors
  - Examples.
- Matrix of factors: maple_ifactors
  - Examples.
- The divisors of a number: idivis divisors
  - Examples.
- The integer Euclidean quotient: iquo intDiv div
  - Examples.
  - Example.
- The integer Euclidean remainder: irem remain smod mods mod %
  - Examples.
  - Example.
  - Example.
- Euclidean quotient and Euclidean remainder of two integers: iquorem
  - Examples.
- Test of evenness: even
  - Examples.
- Test of oddness: odd
  - Examples.
- Test of pseudo-primality: is_pseudoprime
  - Examples.
- Test of primality: is_prime isprime isPrime
  - Examples.
  - Examples.
- The smallest pseudo-prime greater than n: nextprime
  - Example.
- The greatest pseudo-prime less than n: prevprime
  - Example.
- The nth pseudo-prime number: ithprime
  - Examples.
- The number of pseudo-primes less than or equal to n: nprimes
  - Examples.
- Bézout’s Identity: iegcd igcdex
  - Example.
- Solving au+bv=c in ℤ: iabcuv
  - Example.
- Chinese remainders: ichinrem ichrem chrem
  - Examples.
  - Example.
- Solving a2+b2=p in ℤ: pa2b2
  - Example.
- Solving Diophantine equations: isolve
  - Examples.
- The Euler indicatrix: euler phi
  - Example.
  - Example.
- Legendre symbol: legendre_symbol
  - Examples.
- Jacobi symbol: jacobi_symbol
  - Examples.
- Listing all compositions of an integer into k parts: icomp
  - Examples.

## 5.6 Combinatorial analysis

- Factorial: factorial !
  - Example.
  - Examples.
- Binomial coefficients: binomial comb nCr
  - Example.
  - Example.
- Permutations: perm nPr
  - Example.
- Wilf-Zeilberger pairs: wz_certificate
  - Example.

## 5.7 Rational numbers

- Transform a floating point number into a rational: exact float2rational
  - Examples.
- Integer and fractional part: propfrac propFrac
  - Examples.
- Numerator of a fraction after simplification: numer getNum
  - Examples.
- Denominator of a fraction after simplification: denom getDenom
  - Example.
- Numerator and denominator of a fraction: f2nd fxnd
  - Example.
- Simplifying a pair of integers: simp2
  - Examples.
- Continued fraction representation of a real: dfc
  - Examples.
- Transforming a continued fraction representation into a real: dfc2f
  - Examples.
- The n-th Bernoulli number: bernoulli
  - Example.
- Accessing to PARI/GP commands: pari

## 5.8 Real numbers

- Evaluating a real at a given precision: evalf Digits DIGITS
  - Examples.
- The standard infixed operators on real numbers: + - * / ^
  - Examples.
  - Example.
- Prefixed division on reals: rdiv
  - Examples.
- n-th root: root
  - Examples.
- The exponential integral function: Ei
  - Examples.
  - Examples.
- The logarithmic integral function: Li
  - Example.
- The cosine integral function: Ci
  - Examples.
- The sine integral function: Si
  - Example.
- The Heaviside function: Heaviside
  - Examples.
- The Dirac distribution: Dirac
  - Examples.
- Error function: erf
  - Examples.
- Complementary error function: erfc
  - Examples.
- The Γ function: Gamma
  - Examples.
- The upper incomplete γ function: ugamma
  - Examples.
- The lower incomplete γ function: igamma
  - Examples.
- The β function: Beta
  - Examples.
- Derivatives of the DiGamma function: Psi
  - Examples.
- The ζ function: Zeta
  - Examples.
- Airy functions: Airy_Ai and Airy_Bi
  - Examples.

## 5.9 Permutations

A permutation p of size n is a bijection from [0..n−1] to [0..n−1] and is represented by the list: [p(0),p(1),p(2)… p(n−1)].
For example, the permutation p represented by [1,3,2,0] is the function from [0,1,2,3] to [0,1,2,3] defined by:

p(0)=1, p(1)=3, p(2)=2, p(3)=0

A cycle c of size p, represented by the list [a0,…,ap−1] (0≤ ak≤ n−1), is the permutation such that

c(ai)=ai+1 for (i=0..p−2), c(ap−1)=a0, c(k)=k otherwise

For example, the cycle c represented by the list [3,2,1] is the permutation c defined by c(3)=2, c(2)=1, c(1)=3, c(0)=0 (i.e. the permutation represented by the list [0,3,1,2]).

- Random permutation: randperm shuffle
  - Example.
- Previous and next permutation: prevperm nextperm
  - Example.
  - Example.
- Decomposing a permuation into a product of disjoint cycles: permu2cycles
  - Examples.
- Product of cycles to permutation: cycles2permu
  - Examples.
- Transforming a cycle into a permutation: cycle2perm
  - Example.
- Transforming a permutation into a matrix: permu2mat
  - Example.
- Checking for a permutation: is_permu
  - Examples.
- Checking for a cycle: is_cycle
  - Examples.
- Product of two permutations: p1op2 c1op2 p1oc2 c1oc2
  - Example.
  - Example.
  - Example.
  - Example.
- Signature of a permutation: signature
  - Example.
- Inverse of a permutation: perminv
  - Example.
- Inverse of a cycle: cycleinv
  - Example.
- Order of a permutation: permuorder
  - Examples.
- The group generated by two permutations: groupermu
  - Example.

## 5.10 Complex numbers

Note that complex numbers, as well as being numbers, are used to represent points in the plane (see Section 13.6.2). Some functions and operators which work on complex numbers also work on points.

- The usual complex operators: + - * / ^
- The real and imaginary parts of a complex number: re real im imag
  - Example.
  - Example.
- Writing a complex number z in rectangular form: evalc
  - Example.
- The modulus and argument of a complex number: abs arg
  - Example.
  - Examples.
- The normalized complex number: normalize unitV
  - Example.
- Conjugate of a complex number: conj
  - Example.
- Multiplication by the complex conjugate: mult_c_conjugate
  - Examples.
- Barycenter of complex numbers: barycenter
  - Example.

## 5.11 Algebraic numbers

- Definition
- Minimum polynomial of an algebraic number: pmin
  - Examples.

## 5.12 Algebraic expressions

- Evaluating an expression: eval
  - Examples.
- Changing the evaluation level: eval_level
  - Example.
- Evaluating algebraic expressions: evala
- Preventing evaluation: quote hold ’
  - Example.
- Forcing evaluation: unquote
- Distribution: expand fdistrib
  - Example.
- Canonical form: canonical_form
  - Examples.
- Multiplication by the conjugate quantity: mult_conjugate
  - Examples.
- Separation of variables: split
  - Examples.
- Factoring: factor cfactor
  - Examples.
- Zeros of an expression: zeros
  - Examples.
- Regrouping expressions: regroup
  - Example.
- Normal form: normal
  - Examples.
- Simplifying: simplify
  - Examples.
- Automatic simplification: autosimplify
  - Examples.
- Normal form for rational functions: ratnormal
  - Examples.
- Substituting a variable by a value: |
  - Examples.
- Substituting a variable by a value: subst
  - Examples.
  - Examples.
  - Examples.
- Substituting a variable by a value: ()
  - Examples.
- Substituting a variable by a value (Maple and Mupad compatibility): subs
  - Examples.
  - Examples.
- Substituting a subexpression by another expression: algsubs
  - Examples.
- Eliminating one or more variables from a list of equations: eliminate
  - Examples.
- Evaluating a primitive at boundaries: preval
  - Example.
- Sub-expression of an expression: part

## 5.13 Values of a sequence un

- Array of values of a sequence : tablefunc
  - Example.
- Values of a recurrence relation or a system: seqsolve
  - Examples.
- Values of a recurrence relation or a system: rsolve
  - Examples.
- Table of values and graph of a recurrent sequence: tableseq
  - Example.
  - Example.

## 5.14 Operators or infixed functions

An operator is an infixed function. For example, the arithmetic functions +, -, *, /, and ^ are operators. (See Section 5.8.2 and Section 5.10.1.)

- Xcas operators: $ %
- Defining an operator: user_operator
  - Examples.

## 5.15 Functions and expressions with symbolic variables

- The difference between a function and an expression
- Transforming an expression into a function: unapply
  - Examples.
  - Example.
- Top and leaves of an expression: sommet feuille op left right
  - Examples.
  - Examples.
  - Examples.

## 5.16 Functions

- Context-dependent functions.
  - The + operator
  - Examples.
  - The -,* and / operators
  - Examples of - and ’-’.
  - Examples of * and ’*’.
  - Examples of / and ’/’.
- Standard functions
  - Example.
  - Example.
  - Examples.
  - Examples.
  - Examples.
  - Examples.
  - Examples.
  - Examples.
  - Examples.
  - Example.
  - Examples.
  - Examples.
  - Example.
  - Example.
  - Example.
  - Example.
  - Example.
  - Examples.
  - Examples.
  - Examples.
  - Examples.
  - Example.
  - Examples.
  - Examples.
  - Examples.
  - Examples.
  - Examples.
  - Examples.
  - Example.
  - Example.
  - Example.
  - Example.
  - Example.
  - Example.
- Defining algebraic functions
  - Defining a function from ℝp to ℝq
  - Example.
  - Example.
  - Examples.
  - Defining families of function from ℝp−1 to ℝq using a function from ℝp to ℝq
- Composing functions: @
  - Examples.
- Repeated function composition: @@
  - Examples.
- Defining a function with history: as_function_of
  - Example.
  - Example.

## 5.17 Getting information about functions from ℝ to ℝ

- The domain of a function: domain
  - Examples.
- Table of variations of a function: tabvar
  - Examples.

## 5.18 Limits: limit

The limit command computes limits, both at numbers and infinities, and in the real case it can compute one-sided limits.

- limit takes three mandatory and one optional argument.
  - expr, an expression.
  - x, the name of a variable.
  - a, the limit point.
  - Optionally, side (either 0, -1 or 1), to specify which side to take a one-sided limit (by default side=0).
- limit(expr,x,a ⟨,side⟩) returns the limit of expr as x approaches a.
  - If side is 0 (the default), then the ordinary limit is returned.
  - If side is -1, then the limit from the left (x<a) is returned.
  - If side is 1, then the limit from the right (x>a) is returned.

Remark:
It is also possible to put x=a as argument instead of x,a; limit(expr,var=pt[,side]) is equivalent to limit(expr,var,pt[,side]).

- - Examples.

## 5.19 Derivation and applications

- Functional derivative: function_diff
  - Examples.
- Length of an arc: arcLen
  - Examples.
  - Examples.
- Maximum and minimum of an expression: fMax fMin
  - Examples.
  - Examples.
- Derivatives and partial derivatives
  - Examples.
  - Examples.
- Implicit differentiation: implicitdiff
  - Examples.
  - Example.
  - Examples.
- Numerical differentiation: numdiff
  - Examples.
  - Example.
  - Example.

## 5.20 Integration

- Antiderivative and definite integral: integrate int Int
  - Examples.
  - Examples.
  - Example.
- Primitive and definite integral: risch
  - Examples.
  - Example.
- Discrete summation: sum
  - Examples.
  - Example.
- Riemann sum: sum_riemann
- Integration by parts
  - ibpdv
  - Example.
  - Example.
  - ibpu
  - Example.
  - Example.
- Change of variables: subst
- Integrals and limits

## 5.21 Multivariate calculus

- Gradient: derive deriver diff grad
  - Example.
- Laplacian: laplacian
  - Example.
  - Examples.
- Hessian matrix: hessian
  - Examples.
- Divergence: divergence
  - Example.
- Rotational: curl
  - Example.
- Potential: potential
  - Example.
- Conservative flux field: vpotential
  - Example.
- Determining where a function is convex: convex
  - Examples.
  - Examples.

## 5.22 Calculus of variations

- The Brachistochrone Problem
- Euler-Lagrange equation(s): euler_lagrange
  - Example.
  - Example.
  - Example.
  - Example.
- Solution of the Brachistochrone Problem
- Jacobi equation: jacobi_equation
  - Example.
- Finding conjugate points: conjugate_equation
  - Example.
- An example: Finding the surface of revolution with minimal area

## 5.23 Trigonometry

Xcas can evaluate the trigonometric functions in either radians or degrees (see Section 5.16.2). It can also manipulate them algebraically.

- Expanding a trigonometric expression: trigexpand
- Linearizing a trigonometric expression: tlin
  - Examples.
- Increasing the phase by π/2 in a trigonometric expression: shift_phase
  - Examples.
  - Example.
- Putting together sine and cosine of the same angle: tcollect tCollect
  - Examples.
- Simplifying: simplify
  - Example.
- Simplifying trigonometric expressions: trigsimplify
  - Examples.
- Transforming arccos into arcsin: acos2asin
  - Example.
- Transforming arccos into arctan: acos2atan
  - Example.
- Transforming arcsin into arccos: asin2acos
  - Example.
- Transforming arcsin into arctan: asin2atan
  - Example.
- Transforming arctan into arcsin: atan2asin
  - Example.
- Transforming arctan into arccos: atan2acos
  - Example.
- Transforming complex exponentials into sin and cos: sincos exp2trig
  - Examples.
- Transforming tan(x) into sin(x)/cos(x): tan2sincos
  - Example.
- Transforming sin(x) into cos(x)*tan(x): sin2costan
  - Example.
- Transforming cos(x) into sin(x)/tan(x): cos2sintan
  - Example.
- Rewriting tan(x) in terms of sin(2x) and cos(2x): tan2sincos2
  - Example.
- Rewriting tan(x) in terms of cos(2x) and sin(2x): tan2cossin2
  - Example.
- Rewriting sin, cos, tan in terms of tan(x/2): halftan
  - Examples.
- Rewriting trigonometric functions in terms of tan(x/2) and hyperbolic functions in terms of exp(x): halftan_hyp2exp
  - Examples.
- Transforming trigonometric functions into complex exponentials : trig2exp
  - Examples.
- Transforming inverse trigonometric functions into logarithms: atrig2ln
  - Example.
- Simplifying and expressing preferentially with sines: trigsin
  - Example.
- Simplifying and expressing preferentially with cosines: trigcos
  - Example.
- Simplifying and expressing preferentially with tangents: trigtan
  - Example.
- Rewriting an expression with different options: convert convertir =>
  - Examples.

## 5.24 Exponentials and Logarithms

- Rewriting hyperbolic functions as exponentials: hyp2exp
  - Example.
- Expanding exponentials: expexpand
  - Example.
- Expanding logarithms: lnexpand
  - Example.
- Linearizing exponentials: lin
  - Examples.
- Collecting logarithms: lncollect
  - Examples.
- Expanding powers: powexpand
  - Example.
- Rewriting a power as an exponential: pow2exp
  - Example.
- Rewriting exp(n*ln(x)) as a power: exp2pow
- Simplifying complex exponentials: tsimplify
  - Example.

## 5.25 Rewriting transcendental and trigonometric expressions

- Expanding transcendental and trigonometric expressions: texpand tExpand
  - Examples.
- Combining terms of the same type: combine
  - Examples.

## 5.26 Fourier transformation

- Fourier coefficients: fourier_an and fourier_bn or fourier_cn
  - fourier_an
  - Example.
  - fourier_bn
  - Examples.
  - fourier_cn
  - Examples.
- Continuous Fourier Transform: fourier ifourier addtable
  - Examples.
  - Examples.
  - Example.
  - Example.
  - Examples.
- Discrete Fourier Transform and the Fast Fourier Transform
  - Examples.
  - The properties of the Discrete Fourier Transform
  - Applications
  - Example.
  - Example.
  - Example.
- An exercise with fft

## 5.27 Polynomials

- Polynomials of a single variable: poly1
- Polynomials of several variables: %%%{ %%%}
- Apply a function to the internal sparse format of a polynomial: map
  - Example.
- Converting to a symbolic polynomial: r2e poly2symb
  - Example.
  - Examples:
- Converting from a symbolic polynomial: e2r symb2poly
  - Examples:
- Transforming a polynomial in internal format into a list, and conversely: convert
  - Example.
  - Example.
- Coefficients of a polynomial: coeff coeffs
  - Examples.
- Polynomial degree: degree
  - Examples.
- Polynomial valuation: valuation ldegree
  - Examples.
- Leading coefficient of a polynomial: lcoeff
  - Examples.
- Trailing coefficient degree of a polynomial: tcoeff
  - Examples.
- Evaluating polynomials: peval polyEval
  - Examples.
- Factoring xn in a polynomial: factor_xn
  - Example.
- GCD of the coefficients of a polynomial: content
  - Example.
- Primitive part of a polynomial: primpart
  - Example.
- Factoring: collect
  - Examples.
- Square-free factorization: sqrfree
  - Examples.
- List of factors: factors
  - Examples.
- Evaluating a polynomial: horner
  - Example.
- Rewriting in terms of the powers of (x-a): ptayl
  - Examples.
- Computing with the exact root of a polynomial: rootof
  - Example.
- Exact roots of a polynomial: roots
  - Examples.
- Coefficients of a polynomial defined by its roots: pcoeff pcoef
  - Example.
- Truncating to order n: truncate
  - Examples.
- Converting a series expansion into a polynomial: convert convertir
  - Examples.
- Random polynomial: randpoly randPoly
  - Examples.
- Changing the order of variables: reorder
  - Example.
- Random lists: ranm
  - Example.
- Lagrange polynomial: lagrange interp
  - Examples.
- Natural splines: spline
  - Definition
  - Theorem
  - Types of spline functions
- Natural interpolation: spline
  - Examples.
- Rational interpolation: thiele
  - Examples.
- Rational interpolation without poles: ratinterp
  - Examples.
- Trigonometric interpolation: triginterp
  - Example.
- Least-squares polynomial approximation: fitpoly
  - Smoothing data: polynomial regression
  - Approximating functions by polynomials
  - Examples.
- Minimax polynomial approximation: minimax
  - Example.

## 5.28 Arithmetic and polynomials

Polynomials are represented by expressions or by lists of coefficients in decreasing power order. In the first case, for instructions requiring a main variable (like extended gcd computations), the variable used by default is x if not specified. For coefficients in ℤ/nℤ, use % n for each coefficient of the list or apply it to the entire expression defining the polynomial.

- The divisors of a polynomial: divis
  - Examples.
- Euclidean quotient: quo Quo
  - Examples.
  - Examples.
- Euclidean remainder: rem Rem
  - Examples.
  - Examples.
- Quotient and remainder: quorem divide
  - Examples.
- GCD of two polynomials with the Euclidean algorithm: gcd Gcd
  - Examples.
- GCD of two polynomials with the Euclidean algorithm: Gcd
  - Examples.
- Choosing the GCD algorithm of two polynomials: ezgcd heugcd modgcd psrgcd
  - Examples.
- LCM of two polynomials: lcm
  - Examples.
- Bézout’s Identity: egcd gcdex
  - Examples.
- Solving au+bv=c over polynomials: abcuv
  - Examples.
- Chinese remainders: chinrem
  - Examples.
- Cyclotomic polynomial: cyclotomic
  - Examples.
- Sturm sequences and number of sign changes of P on (a, b]: sturm sturmseq sturmab
  - Examples.
  - Examples.
- Sylvester matrix of two polynomials and resultant: sylvester resultant
  - Examples using the resultant.

## 5.29 Exact bounds for roots of a polynomial

- Exact bounds for real roots of a polynomial: realroot
  - Examples.
- Exact bounds for complex roots of a polynomial: complexroot
  - Examples.
- Exact bounds for real roots of a polynomial: VAS
  - Examples.
- Exact bounds for positive real roots of a polynomial: VAS_positive
  - Examples.
- An upper bound for the positive real roots of a polynomial: posubLMQ
  - Examples.
- A lower bound for the positive real roots of a polynomial: poslbdLMQ
  - Examples.
- Exact values of rational roots of a polynomial: rationalroot
  - Examples.
- Exact values of the complex rational roots of a polynomial: crationalroot
  - Example.

## 5.30 Orthogonal polynomials

- Legendre polynomials: legendre
  - Examples.
- Hermite polynomial: hermite
  - Examples.
- Laguerre polynomials: laguerre
  - Examples.
- Tchebychev polynomials of the first kind: tchebyshev1
  - Examples.
- Tchebychev polynomial of the second kind: tchebyshev2
  - Examples.

## 5.31 Gröbner basis and Gröbner reduction

- Gröbner basis: gbasis
  - Example.
  - Examples.
- Gröbner reduction: greduce
  - Examples.
- Testing if a polynomial or list of polynomials belongs to an ideal given by a Gröbner basis: in_ideal
  - Examples.
- Building a polynomial from its evaluation: genpoly
  - Examples.

## 5.32 Rational functions

- Numerator: getNum
  - Examples.
- Numerator after simplification: numer
  - Examples.
- Denominator: getDenom
  - Examples.
- Denominator after simplification: denom
  - Examples.
- Numerator and denominator: f2nd fxnd
  - Examples.
- Simplifying: simp2
  - Example.
- Common denominator: comDenom
  - Example.
- Polynomial and fractional part: propfrac
  - Example.
- Partial fraction expansion: partfrac cpartfrac
  - Example.

## 5.33 Exact roots and poles

- Roots and poles of a rational function: froot
  - Examples.
  - Example.
- Rational function given by roots and poles: fcoeff
  - Example.

## 5.34 Computing in ℤ/pℤ or in ℤ/pℤ[x]

The way to compute over ℤ/pℤ or over ℤ/pℤ[x] depends on the syntax mode:

- In Xcas mode, an object n over ℤ/pℤ is written n % p.
  The representation is the symmetric representation:
  11%13 returns -2%13.
  - - Examples.
  - Expanding and reducing: normal
    - Example.
  - Addition in ℤ/pℤ or in ℤ/pℤ[x]: +
    - Examples.
  - Subtraction in ℤ/pℤ or in ℤ/pℤ[x]: -
    - Examples.
  - Multiplication in ℤ/pℤ or in ℤ/pℤ[x]: *
    - Examples.
  - Euclidean quotient : quo
    - Example.
  - Euclidean remainder: rem
    - Example.
  - Euclidean quotient and euclidean remainder: quorem
    - Example.
  - Division in ℤ/pℤ or in ℤ/pℤ[x]: /
    - Example.
    - Example.
  - Power in ℤ/pℤ and in ℤ/pℤ[x]: ^
    - Examples.
  - Computing an mod p: powmod powermod
    - Examples.
  - Inverse in ℤ/pℤ: inv inverse /
    - Example.
  - Rebuilding a fraction from its value modulo p: fracmod iratrecon
    - Examples.
  - GCD in ℤ/pℤ[x]: gcd
    - Example.
  - Factoring over ℤ/pℤ[x]: factor factoriser
    - Example.
  - Determinant of a matrix in ℤ/pℤ: det
    - Example.
  - Inverse of a matrix with coefficients in ℤ/pℤ: inv inverse
    - Example.
  - Row reduction to echelon form in ℤ/pℤ: rref
    - Example.
    - Example.
  - Construction of a Galois field: GF
    - Example.
    - Examples.
  - Factoring a polynomial with coefficients in a Galois field: factor
    - Examples.

  ## 5.35 Computing in ℤ/pℤ[x] using Maple syntax

  You can set Xcas to work in Maple mode rather than native Xcas mode (see Section 2.5.2).

  - Euclidean quotient: Quo
    - Examples.
  - Euclidean remainder: Rem
    - Examples:
  - GCD in ℤ/pℤ[x]: Gcd
    - Examples.
  - Factoring in ℤ/pℤ[x]: Factor
    - Example.
  - Determinant of a matrix with coefficients in ℤ/pℤ: Det
    - Example.
  - Inverse of a matrix in ℤ/pℤ: Inverse
    - Example.
  - Row reduction to echelon form in ℤ/pℤ: Rref
    - Example.

  ## 5.36 Taylor and asymptotic expansions

  - Dividing by increasing power order: divpc
    - Example.
  - Series expansion: taylor series
    - Example.
    - Examples.
  - The inverse of a series: revert
    - Examples.
  - The residue of an expression at a point: residue
    - Example.
  - Padé expansion: pade
    - Examples.

  ## 5.37 Ranges of values

  - Definition of a range of values: ..
    - Examples.
  - Center of a range of values: interval2center
    - Examples.
  - Ranges of values defined by their center: center2interval
    - Examples.

  ## 5.38 Intervals

  - Defining intervals: i[]
    - Examples.
    - Examples.
  - The endpoints of an interval: left right
    - Examples.
  - Interval arithmetic: + - * /
    - Example.
    - Example.
    - Examples.
    - Examples.
    - Examples.
  - The midpoint of an interval: midpoint
    - Example.
  - The union of intervals: union
    - Examples.
  - The intersection of intervals: intersect
    - Example.
  - Testing if an object is in an interval: contains
    - Examples.
  - Converting a number into an interval: convert
    - Examples.
  - Converting box constraints from matrix to interval form: box_constraints
    - Examples.

  ## 5.39 Sequences and lists

  - Defining a sequence or a list: seq[ ] ()
    - Examples.
    - Examples.
  - Making a sequence or a list: seq $
    - Examples.
    - Examples of sequences being used.
  - Length of a sequence or list: size nops length
    - Examples.
  - Getting the first element of a sequence or list: head
    - Examples.
  - Getting a sequence or list without the first element: tail
    - Example.
  - Getting an element of a sequence or a list: [] [[]] at
    - Examples.
    - Example.
  - Finding a subsequence or a sublist
    - Examples.
    - Example.
    - Examples.
  - Concatenating two sequences: ,
    - Example.
  - The + operator applied on sequences and lists
    - Examples.
  - Transforming sequences into lists and lists into sequences: [] nop op makesuite
    - Example.
    - Example.

  ## 5.40 Operations on lists

  - Sizes of a list of lists: sizes
    - Example.
  - Making a list with a function: makelist
    - Examples.
  - Making a list with zeros: newList
    - Example.
  - Making a list of integers: range
    - Example.
    - Examples.
  - Selecting elements of a list: select
    - Example.
  - The left and right portions of a list: left right
    - Example.
    - Example.
  - Modifying the elements of a list: subsop
    - Examples.
  - Removing an element in a list: suppress
    - Example.
  - Removing elements of a list: remove
    - Example.
  - Inserting an element into a list or a string: insert
    - Examples.
  - Appending an element at the end of a list: append
    - Examples.
  - Prepending an element at the beginning of a list: prepend
    - Examples.
  - Concatenating two lists or a list and an element: concat augment
    - Examples.
  - Flattening a list: flatten
    - Example.
  - Reversing order in a list: revlist
    - Examples.
  - Rotating a list: rotate
    - Examples.
  - Shifting the elements of a list: shift
    - Examples.
  - Sorting: sort
    - Examples.
  - Sorting a list by increasing order: SortA
    - Examples.
  - Sorting a list by decreasing order: SortD
    - Examples.
  - Sorting by permutation: sortperm
    - Examples.
  - Number of elements equal to a given value: count_eq
    - Example.
  - Number of elements smaller than a given value: count_inf
    - Example.
  - Number of elements greater than a given value: count_sup
    - Example.
  - Sum of elements of a list: sum add
    - Example.
  - Sum of list (or matrix) elements transformed by a function: count
    - Examples.
  - Cumulated sum of the elements of a list: cumSum
    - Examples.
  - Product: product mul
    - Product of values of an expression: product
    - Examples.
    - Product of elements of a list: product
    - Examples.
  - Applying a function of one variable to the elements of a list: map apply
    - Example.
    - Examples.
  - Applying a bivariate function to the elements of two lists: zip
    - Examples.
  - Folding operators: foldl foldr
    - Example.
    - Example.
  - List of differences of consecutive terms: deltalist
    - Example.
  - Making a matrix with a list: list2mat
    - Examples.
  - Making a list with a matrix: mat2list
    - Example.

  ## 5.41 Operations on sets and lists

  - Defining a set or list: set[ ] %{ %}
    - Example.
    - Example.
  - Testing if a value is in a list or a set: member contains
    - Examples.
    - Examples.
  - Union of two sets or of two lists: union
    - Examples.
  - Intersection of two sets or of two lists: intersect
    - Examples.
  - Difference of two sets or of two lists: minus
    - Examples.
    - Cartesian products
    - Defining an n-tuple: tuple
    - Example.
    - The Cartesian product of two sets: *
    - Examples.

  ## 5.42 Functions for vectors

  - Norms of a vector: maxnorm l1norm l2norm norm
    - Example.
    - Example.
    - Example.
  - Normalizing a vector: normalize unitV
    - Example.
  - Term by term sum of two lists: + .+
    - Examples.
  - Term by term difference of two lists: - .-
    - Example.
  - Term by term product of two lists: .*
    - Example.
  - Term by term quotient of two lists: ./
    - Example.
  - Scalar product : scalar_product * dotprod dot dotP scalar_Product
    - Example.
  - Cross product: cross crossP crossproduct
    - Example.
  - Statistics on lists: mean variance stddev stddevp median quantile quartiles boxwhisker
    - Examples.
    - Example.
    - Example.
    - Example.
    - Example.
    - Examples.
    - Example.
    - Example.
    - Example.

  ## 5.43 Tables with strings as indices: table

  A table is a map (associative container) used to store information associated to indices which are much more general than integers, such as strings or sequences. For example, you can use one to store a table of phone numbers indexed by names.

  In Xcas, the indices in a table may be any kind of Xcas objects. Access is done by a binary search algorithm, where the sorting function first sorts by type then uses an order for each type (e.g. < for numeric types, lexicographic order for strings, etc.)

  The table command creates a table.

  - table takes an unspecified number of arguments:
    seq, a list or sequence of equalities of the form index_name=element_value.
  - table(seq) returns a table. The elements of the table can be retrieved using index bracket notation; If T is the name of the table, then T(index_name) returns element_value.
  - - Example.

  ## 5.44 Matrices

  - Matrices
    - Example.
  - Special matrices
    - Identity matrix: idn identity
    - Examples.
    - Zero matrix: newMat
    - Example.
    - Diagonals of matrices and diagonal matrices: BlockDiagonal diag
    - Examples.
    - Jordan block: JordanBlock
    - Example.
    - Hilbert matrix: hilbert
    - Example.
    - Vandermonde matrix: vandermonde
    - Example.
  - Combining matrices
    - Making a matrix with a list of matrices: blockmatrix
    - Examples.
    - Making a matrix from two matrices: semi_augment
    - Examples.
    - Making a matrix from two matrices: augment concat
    - Examples.
    - Appending a column to a matrix: border
    - Examples.
  - Creating a matrix with a formula or function: makemat matrix
    - Example.
    - Examples.
  - Getting the parts of a matrix
    - Accessing parts of a matrix: [] at
    - Example.
    - Example.
    - Example.
    - Examples.
    - Examples.
    - Extracting rows or columns of a matrix (Maple compatibility): row col
    - Examples.
    - Examples.
    - Extracting a sub-matrix of a matrix (TI compatibility): subMat
    - Example.
  - Modifying matrices
    - Modifying matrix elements by assignment: :=
    - Example.
    - Example.
    - Modifying matrix elements by reference: ::= =<
    - Example.
    - Example.
    - Modifying an element or a row of a matrix: subsop
    - Examples.
    - Examples.
    - Example.
    - Example.
    - Removing rows or columns of a matrix: delrows delcols
    - Examples.
    - Examples.
    - Resizing a matrix or vector: REDIM redim
    - Examples.
    - Examples.
    - Replacing part of a matrix or vector: REPLACE replace
    - Examples.
    - Examples.
    - Applying a function to the elements of a matrix: apply
    - Example.

  ## 5.45 Arithmetic and matrices

  - Evaluating a matrix: evalm
  - Addition and subtraction of two matrices: + - .+ .-
    - Examples.
    - Examples.
  - Multiplication of two matrices: * &*
    - Example.
  - Addition of elements of a column of a matrix: sum
    - Example.
  - Cumulated sum of elements of each column of a matrix: cumSum
    - Example.
  - Multiplication of elements of each column of a matrix: product
    - Example.
  - Power of a matrix: ^ &^
    - Example.
  - Hadamard product: hadamard product .*
    - Examples.
  - Hadamard division: ./
    - Example.
  - Hadamard power: .^
    - Example.
  - The elementary row operations
    - Adding a row to another row: rowAdd
    - Example.
    - Multiplying a row by an expression: mRow scale SCALE
    - Example.
    - Example.
    - Adding k times a row to an another row: mRowAdd scaleadd SCALEADD
    - Example.
    - Example.
    - Exchanging two rows: rowSwap rowswap swaprow
    - Example.
    - Exchanging two columns: colSwap colswap swapcol
    - Example.
  - Counting the elements of a matrix satisfying a property: count
    - Examples.
  - Counting the elements equal to a given value: count_eq
    - Example.
  - Counting the elements smaller than a given value: count_inf
    - Example.
  - Counting the elements greater than a given value: count_sup
    - Example.
  - Statistics functions acting on column matrices: mean stddev variance median quantile quartiles boxwhisker
    - Examples.
    - Example.
    - Example.
    - Example.
    - Example.
    - Examples.
    - Example.
    - Example.
  - Dimension of a matrix: dim
    - Example.
  - Number of rows: rowdim rowDim nrows
    - Example.
  - Number of columns: coldim colDim ncols
    - Example.

  ## 5.46 Sparse matrices

  - Defining sparse matrices
    - Example.
  - Operations on sparse matrices
    - Example.

  ## 5.47 Linear algebra

  - Transpose of a matrix: tran transpose
    - Example.
  - Inverse of a matrix: inv /
    - Example.
  - Trace of a matrix: trace
    - Example.
  - Determinant of a matrix: det
    - Examples.
  - Determinant of a sparse matrix: det_minor
    - Examples.
  - Rank of a matrix: rank
    - Examples.
  - Transconjugate of a matrix: trn
    - Example.
  - Equivalent matrix: changebase
    - Examples.
  - Basis of a linear subspace : basis
    - Example.
  - Basis of the intersection of two subspaces: ibasis
    - Example.
  - Image of a linear function: image
    - Example.
  - Kernel of a linear function: kernel nullspace ker
    - Example.
  - Kernel of a linear function: Nullspace
    - Examples.
  - Subspace generated by the columns of a matrix: colspace
    - Examples.
  - Subspace generated by the rows of a matrix: rowspace
    - Examples.
  - Testing positive definiteness of a symmetric matrix: isposdef
    - Example.

  ## 5.48 Matrix reduction

  - Eigenvalues: eigenvals
    - Examples.
  - Eigenvalues: egvl eigenvalues eigVl
    - Examples.
  - Eigenvectors: egv eigenvectors eigenvects eigVc
    - Examples.
  - Rational Jordan matrix: rat_jordan
    - Examples.
    - Example.
  - Jordan normal form: jordan
    - Examples.
    - Example.
  - Powers of a square matrix: matpow
    - Example.
  - Characteristic polynomial: charpoly
    - Examples.
  - Characteristic polynomial using Hessenberg algorithm: pcar_hessenberg
    - Examples.
  - Minimal polynomial: pmin
    - Examples.
  - Adjoint matrix: adjoint_matrix
    - Examples.
  - Companion matrix of a polynomial: companion
    - Examples.
  - Hessenberg matrix reduction: hessenberg SCHUR
    - Examples.
  - Hermite normal form: ihermite
    - Example.
  - Smith normal form in ℤ: ismith
    - Example.
  - Smith normal form: smith
    - Examples.

  ## 5.49 Matrix factorizations

  Note that most matrix factorization algorithms are implemented numerically, only a few of them will work symbolically.

  - Cholesky decomposition: cholesky
    - Examples.
    - Example.
  - QR decomposition: qr
    - Examples.
  - QR decomposition (for TI compatibility): QR
    - Example.
  - LQ decomposition (HP compatible): LQ
    - Examples.
  - LU decomposition: lu
    - Example.
  - LU decomposition (for TI compatibility): LU
    - Example.
  - Singular values (HP compatible): SVL svl
    - Examples.
  - Singular value decomposition: svd
    - Examples.
  - LDL decomposition: ldl
    - Example.
  - Computing inertia of a symmetric matrix: inertia
    - Examples.
  - Short basis of a lattice: lll
    - Examples.

  ## 5.50 Different matrix norms

  See Section 5.42.1 for different norms on vectors.

  - The Frobenius norm: frobenius_norm
    - Example.
  - ℓ2 matrix norm: norm l2norm
    - Example.
  - ℓ∞ matrix norm: maxnorm
    - Example.
  - Matrix row norm: rownorm rowNorm
    - Example.
  - Matrix column norm: colnorm colNorm l1norm
    - Example.
  - The operator norm of a matrix: matrix_norm l1norm l2norm norm specnorm linfnorm
    - Operator norms
    - Computing operator norms
    - Examples.

  ## 5.51 Isometries

  An isometry of ℝn is a distance-preserving map. In ℝ2, the isometries are made up of:

  - reflection across a line.
  - rotation about a point.
  - translation.

  In ℝ3, the isometries are made up of:

  - reflection across a plane.
  - rotation about a line.
  - translation.

  An isometry is direct if it preserves orientation (it doesn’t involve a reflection), otherwise it is indirect.

  An n× n matrix A determines an isometry of the function f:ℝn→ℝn by f(x) = Ax) is an isometry. Such isometries fix the origin, so they can’t involve translation, can only rotate about the origin, and the line or plane of reflection will pass through the origin.

  An isometry in ℝ2 can be characterized by:

  - The angle of rotation (for a direct isometry) or a normal to the line of reflection (for an indirect isometry).
  - +1 or -1 to indicate whether it is direct or indirect; +1 for direct and -1 for indirect.

  An isometry in ℝ3 can be characterized by:

  - The direction of an axis of rotation.
  - The angle of rotation (for a direct isometry) or a normal to the plane of reflection (for an indirect isometry).
  - +1 or -1 to indicate whether it is direct or indirect; +1 for direct and -1 for indirect.
  - Recognizing an isometry: isom
    - Examples.
  - Finding the matrix of an isometry: mkisom
    - Examples.

  ## 5.52 Linear Programming

  Linear programming problems involve maximizing a linear functionals under linear equality or inequality constraints. The simplest case can be solved directly by the so-called simplex algorithm. Most cases require you to solve an auxiliary linear programming problem to find an initial vertex for the simplex algorithm.

  - Simplex algorithm: simplex_reduce
    - The simple case
    - The simplex method
    - simplex_reduce
    - Example.
    - Reducing a more complicated case to the simple case
    - The general case
  - Solving general linear programming problems: lpsolve
    - Solving an LP problem in symbolic form
    - Examples.
    - Solving an LP problem in matrix form
    - Examples.
    - Solving MIP (Mixed Integer Programming) problems
    - Example.
    - Example.
    - Example.
    - Example.
    - Example.
    - Example.
    - Solving problems in floating-point arithmetic
    - Loading a problem from a file
  - Solving the transportation problems: tpsolve
    - Example.
    - Example.
    - Example.

  ## 5.53 Nonlinear optimization

  - Univariate global minimization on a segment: find_minimum
    - Examples.
  - Exact global optimization: minimize maximize
    - Examples.
  - Exact local extrema: extrema
    - Examples.
  - Solving general nonlinear programming problems: nlpsolve
    - Examples.

  ## 5.54 Quadratic forms

  - Matrix of a quadratic form: q2a
    - Example.
  - Transforming a matrix into a quadratic form: a2q
    - Examples.
  - Reducing a quadratic form: gauss
    - Example.
  - The conjugate gradient algorithm: conjugate_gradient
    - Examples.
  - Gram-Schmidt orthonormalization: gramschmidt
    - Examples.
  - Graph of a conic: conic
    - Example.
  - Conic reduction: reduced_conic
    - Example.
    - Example.
  - Graph of a quadric: quadric
    - Example.
  - Quadric reduction: reduced_quadric
    - Example.
    - Example.

  ## 5.55 Equations

  - Defining an equation: equal
    - Example.
  - Transforming an equation into a difference: equal2diff
    - Example.
  - Transforming an equation into a list: equal2list
    - Example.
  - The left member of an equation: left gauche lhs
    - Example.
  - The right member of an equation: right droit rhs
    - Example.
  - Solving equation(s): solve cSolve
    - Examples.

  ## 5.56 Linear systems

  The augmented matrix of the system A · X=b is either the matrix obtained by gluing the column vector b to the right of the matrix A (as with border(A,tran(b))), representing A · X=b, or the matrix obtained by gluing the column vector −b to the right of the matrix A, representing A· x − b = 0.

  - Matrix of a system: syst2mat
    - Examples.
  - Gauss reduction of a matrix: ref
    - Example.
  - Gauss-Jordan reduction: rref gaussjord
    - Examples.
  - Solving AX=b: simult
    - Examples.
  - Step by step Gauss-Jordan reduction of a matrix: pivot
    - Examples.
  - Linear system solving: linsolve
    - Examples.
    - Example.
    - Example.
    - Example.
  - Solving a linear system using the Jacobi iteration method: jacobi_linsolve
    - Examples.
  - Solving a linear system using the Gauss-Seidel method: gauss_seidel_linsolve
    - Examples.
  - The least squares solution of a linear system: LSQ lsq
    - Examples.
  - Finding linear recurrences: reverse_rsolve
    - Examples:

  ## 5.57 Differential equations

  This section is limited to symbolic (or exact) solutions of differential equations. For numeric solutions of differential equations, see odesolve (Section 10.3.5). For graphic representation of solutions of differential equations, see plotfield (Section 7.18), plotode (Section 7.19) and interactive_plotode (Section 7.20).

  - Solving differential equations: desolve deSolve dsolve
    - Examples.
  - Laplace transform and inverse Laplace transform: laplace ilaplace invlaplace
    - Examples.
    - Example.
  - Solving linear homogeneous second-order ODE with rational coefficients: kovacicsols
    - Examples.

  ## 5.58 The Z-transform

  - The Z-transform of a sequence: ztrans
    - Examples.
  - The inverse Z-transform of a rational function: invztrans
    - Examples.

  ## 5.59 Other functions

  - Replacing small values by 0: epsilon2zero
    - Examples.
  - List of variables: lname indets
    - Examples.
  - List of variables and of expressions: lvar
    - Examples.
  - List of variables of an algebraic expressions: algvar
    - Examples.
  - Testing if a variable is in an expression: has
    - Examples.
  - Numeric evaluation: evalf
    - Examples.
  - Rational approximation: float2rational exact
    - Examples.

  ## 5.60 The day of the week: dayofweek

  The dayofweek command finds the day of the week for any date after 15 October, 1582.

  - dayofweek takes as arguments three arguments:
    - d, an integer representing the day of the month.
    - m, an integer representing the month.
    - y, an integer representing the year.
    The date represented should be after 15 October 1582.
  - dayofweek(d,m,y) returns an integer from 0 to 6; 0 representing Sunday, 1 representing Monday, etc.
  - - Examples.

  # Chapter 6 Metric properties of curves

  ## 6.1 The center of curvature

  Let Γ be a curve in space parameterized by a continuously differentiable function, and M0 be a point on the curve. The curve will have an arclength parameterization; namely, it can be parameterized by a function M(s), where M(0) = M0 and |s| is the length of the curve from M0 to M(s), in the direction of the curve if s>0 and the opposite direction if s<0.

  For such a Γ, the vector T(s) = M′(s) will be the unit tangent to the curve at M(s), and N(s) = T′(s) will be perpendicular to the tangent. The circle through M(s) with center at M(s) + N(s) is called the osculating circle to Γ at M(s). Informally, the osculating circle is the circle through M(s) which most closely approximates Γ. The set of all centers of curvature is another curve, called the evolute of Γ.

  The radius of the osculating circle is |N(s)| and is called the radius of curvature of Γ at M(s). The reciprocal of this is called the curvature of Γ at M(s).

  ## 6.2 Computing the curvature and related values: curvature osculating_circle evolute

  A curve can be described in Xcas with a parametrization or with a curve object. Various curve objects are described in chapters 13 and 14. The commands in this section can work with curves described either way. You can get the equation of a curve object with the equation command (see Section 13.13.7).

  The curvature command finds the curvature of a curve. The curve can be given as an object or by a parameterization.

  To find the curvature from a parameterization:

  - curvature takes two mandatory arguments and one optional argument:
    - C, a curve.
    - t, the parameter of the curve.
    - Optionally, t0, a value of the parameter.
  - curvature(C,t ⟨, t0⟩) returns the curvature of the curve; if t0 is given, the curvature is given at the point it specifies, otherwise the curvature is given as a function of the parameter.

  To find the curvature from a curve object:

  - curvature takes two arguments:
    - C, a curve.
    - p, a point on the curve.
  - curvature(C,p) returns the curvature of C at the point p.
  - - Examples.
    - Examples.
    - Examples.

  # Chapter 7 Graphs

  ## 7.1 Generalities

  Most graph instructions take expressions as arguments. A few exceptions (mostly Maple-compatibility instructions) also accept functions. Some optional arguments, like color, thickness, can be used as optional attributes in all graphic instructions. They are described below.

  If a graph depends on a user-defined function, you may want to define the function when the parameter is a formal variable. For this, it can be useful to test the type of the parameter while the function is being defined. (See Chapter Section 12 for information about programming in Xcas.)

  For example, suppose f and g are defined by:

  `f(x):= {`
  `if (type(x)!=DOM_FLOAT) return 'f'(x);`
  `while(x>0){ x--;}`
  `return x;`
  `}`

  and

  `g(x):= {`
  `while(x>0){ x--;}`
  `return x;`
  `}:;`

  Graphing these (see Section 7.4.1):
  Input:

  F:= plotfunc(f(x))
  G:= plotfunc(g(x))

  they will both produce the same graph. However, the graphic G won’t be reusable. Entering:
  Input:

  F

  reproduces the graph, but entering:
  Input:

  G

  produces the error:
  Output:

  "Unable to eval test in loop: x>0.0
  Error: Bad Argument Value Error:
  Bad Argument Value"

  Internally, F and G contain the formal expressions f(x) and g(x), respectively. When Xcas tries to evaluate F and G, x has no value and so the test x > 0 produces an error in g(x), but the line `if (type(x)!=DOM_FLOAT) return 'f'(x);` avoids this problem in f(x).

  ## 7.2 The graphic screen

  A graphic screen, either two- or three-dimensional as appropriate, automatically opens in response to a graphic command. Alternatively, you can open a graphic screen with its own command line with keystrokes; Alt-g for a two-dimensional screen and Alt-h for a three-dimensional screen. The graphic screen will have an array of buttons at the top right.

  - There will be red arrows for moving the image in the x direction.
  - There will be green arrows for moving the image in the y direction.
  - There will be blue arrows for zooming in and out in a two-dimensional screen, and moving the image in the z direction in a three-dimensional screen.
  - There will be in and out buttons for zooming in and out.
  - There will be a _|_ button to orthonormalize the graphic.
  - There will be a ▸| button to start and stop animations.
  - There will be an auto button to do automatic scaling.
  - There will be a cfg button which will bring up a configuration screen (see Section 2.5.7).
  - There will be an M button which brings up a menu. The menu has submenus:
    - View which has entries which do the same as the buttons.
    - Trace for working with traces.
    - Animation for working with animations.
    - 3-d for working with three-dimensional graphics.
    - Export/Print to export and print the graphic.

  The image can also be moved in the screen by clicking and dragging with the mouse. Scrolling with the mouse will also zoom the images.

  ## 7.3 Graph and geometric objects attributes

  There are two kinds of attributes for graphs and geometric objects: global attributes of a graphic scene and individual attributes.

  - Individual attributes
    - Examples.
  - Global attributes
    - Examples.

  ## 7.4 Graph of a function: plotfunc funcplot DrawFunc Graph

  - 2-d graph
    - Examples.
  - 3-d graph
    - Two variable functions
    - Examples.
    - 3-d graph with rainbow colors
    - Example.
    - 4-d graph
    - Examples.

  ## 7.5 2d graph for Maple compatibility: plot

  The plot command is a Maple-compatible way to draw the graph of a one-variable function.

  - plot takes one mandatory argument and two optional arguments:
    - func, a function or an expression involving one variable.
    - Optionally, var the name of the variable in the expression (if func is an expression), which can also specify a range of values var=a..b (by default it is x). If func is a function, the optional second argument can simply be a range a..b for the variable.
    - Optionally, opt, which can be xstep=n to specify the discretization step or nstep=n to specify the number of points used to graph.
  - plot(expr ⟨ ,var, opt⟩) draws the graph.
  - - Examples.

  ## 7.6 3d surfaces for Maple compatibility plot3d

  The plot3d command is a Maple-compatible way to draw a surface. It can plot the graph of a function of two variables or a surface given by a parameterization.

  To draw the graph of a function:

  - plot3d takes three arguments:
    - func, a function or an expression involving two variables.
    - x and y, the names of the variable in the expression (if func is an expression) which can also specify a range of values for each variable.

      If func is a function, this argument is optional, and are the ranges a..b for the variables.

      If the ranges are not given, the default values are taken from the graph configuration (see Section 2.5.8).

  - plot3d(func,x,y) draws the graph.
  - - Example.
    - Examples.

  ## 7.7 Graph of a line and tangent to a graph

  - Drawing a line: line
    - Examples.
    - Examples.
  - Drawing a 2D horizontal line: LineHorz
    - Example.
  - Drawing a 2D vertical line: LineVert
    - Example.
  - Tangent to a 2D graph: LineTan
    - Example.
  - Tangent to a 2D graph: tangent
    - Example.
  - Plotting a line with a point and the slope: DrawSlp
    - Example.
  - Intersection of a 2D graph with the axis

  ## 7.8 Graphing inequalities with two variables: plotinequation inequationplot

  The plotinequation command plots the region of the plane where given inequalities hold.

  - plotinequation takes two arguments:
    - ineqs, a list of inequalities in two variables.
    - vars, a list of variables var or variables var=a..b with their ranges of values. Note that if the ranges are not specified, Xcas takes the default values of X-,X+,Y-,Y+ defined in the general graphic configuration (Cfg▸Graphic configuration, see Section 2.5.8).
  - plotinequation(ineqs,vars) draws the points of the plane whose coordinates satisfy the inequalities ineqs.
  - - Examples.

  ## 7.9 The area under a curve: area

  The area command approximates the area under a graph.

  - area takes four arguments:
    - expr, an expression f(x).
    - var=a..b, the variable with a range.
    - n, a positive integer.
    - method, the approximation method to use, which can be one of:
      - trapezoid
      - left_rectangle
      - right_rectangle
      - middle_point
      - simpson
      - rombergt (Romberg with the trapezoid method)
      - rombergm (Romberg with the midpoint method)
      - gauss15 (The 15 point Gaussian quadrature)
  - area(expr,var=a..b,n,method) returns an approximation to the area under the graph over the given interval, using the specified method with n subdivisions (or 2n subdivisions for rombert, rombergm and gauss15).
  - - Examples.

  ## 7.10 Graphing the area below a curve: plotarea areaplot

  The plotarea command draws the area below a graph.
  areaplot is a synonym for plotarea.

  - plotarea takes two mandatory arguments and two optional arguments:
    - expr, an expression representing the function to graph.
    - var=a..b, the variable and the range of values.
    - Optionally, n.
    - Optionally, method, a method to approximate the region under the graph, which can be one of:
      - trapezoid
      - rectangle_left
      - rectangle_right
      - middle_point
  - plotarea(expr,var=a..b) draws and shades the area between the graph of expr and the y-axis for a < var < b.
  - plotarea(expr,var=a..b ⟨, n, method⟩) draws and shades the region used by the numeric approximation method method for area between the graph of expr and the y-axis for a < var < b, when [a,b] is cut into n equal parts, along with the graph in red.
  - - Examples.

  ## 7.11 Contour lines: plotcontour contourplot DrwCtour

  The plotcontour command draws contour lines for functions of two variables.
  DrwCtour and contourplot are synonyms for plotcontour.

  - plotcontour takes two mandatory arguments and one optional argument:
    - expr, an expression involving two variables.
    - vars, a list of the two variables.
    - Optionally, values, a list of values of the contour lines to draw; expr=value, for value in values (by default, [−10,−8,…,8,10]).
  - plotcontour(expr,vars ⟨, values⟩) draws the contour lines expr=value for value in values.
  - - Examples.

  ## 7.12 2-d graph of a 2-d function with colors: plotdensity densityplot

  The plotdensity command draws the graph of a function of two variables in the plane where the values of z are represented by the rainbow colors.
  densityplot is a synonym for plotdensity.

  - plotdensity takes two mandatory arguments and three optional arguments:
    - expr, an expression of two variables.
    - vars, a list of the variables and their ranges.
    - Optionally, z=a..b, the range of z to correspond to the full rainbow (by default, it is deduced from the minimum and maximum value of expr on the discretization.
    - Optionally, xstep, which can be xstep=n to specify the discretization step in the x direction.
    - Optionally, ystep, which can be ystep=m to specify the discretization step in the y direction.
    - Instead of xstep and ystep, you could use the option nstep=n to specify the number of points used to graph.
  - plotdensity(expr,vars ⟨z=a..b,xstep,ystep⟩) draws the graph of expr in the plane where the values of z are represented by the rainbow colors.

  Remark: A rectangle representing the scale of colors will be displayed below the graph.

  - - Example.

  ## 7.13 Implicit graph: plotimplicit implicitplot

  The plotimplicit command draws curves or surfaces defined by an implicit expression or equation. If the option unfactored is given as the last argument, the original expression is taken unmodified. Otherwise, the expression is normalized, then replaced by the factorization of the numerator of its normalization.

  Each factor of the expression corresponds to a component of the implicit curve or surface. For each factor, Xcas tests if it is of total degree less or equal to 2, in which case conic or quadric is called. Otherwise the numeric implicit solver is called.

  Optional step and ranges arguments may be passed to the numeric implicit solver, note that they are dismissed for each component that is a conic or a quadric.

  implicitplot is a synonym for plotimplicit.

  - 2D implicit curve
    - Examples.
  - 3D implicit surface
    - Examples.

  ## 7.14 Parametric curves and surfaces: plotparam paramplot DrawParm

  The plotparam command draws parametric curves and surfaces.
  paramplot and DrawParm are synonyms for plotparam.

  - 2D parametric curve
    - Examples.
  - 3D parametric surface: plotparam paramplot DrawParm
    - Examples.

  ## 7.15 Bezier curves: bezier

  The Bezier curve with the control points P0,P1,…,Pn is the curve parameterized by ∑j=0n (

  n,j
  t

  )j (1−t)n−j Pj. bezier plots Bezier curves.

  - bezier takes an unspecified number of arguments:
    - controls, a sequence of control points.
    - plot, the symbol.
  - bezier(controls,plot) plots the Bezier curve with the given control points.
  - - Examples.
    - Examples.

  ## 7.16 Defining curves in polar coordinates: plotpolar polarplot DrawPol courbe_polaire

  The plotpolar command draws a curve given in polar coordinates.
  polarplot, DrawPol and courbe_polaire are synonyms for plotpolar.

  - polarplot takes two arguments:
    - expr, an expression involving a variable (which will represent the angle).
    - var, the variable. This can optionally include the range var=a..b.
    - Optionally, tstep=n to specify the discretization.
    polarplot(expr,var ⟨,tstep=n⟩) draws the curve defined by ρ=expr for θ=var; in Cartesian coordinates that is the curve (expr cosvar),expr sin(var)).
  - - Examples.

  ## 7.17 Graphing recurrent sequences: plotseq seqplot graphe_suite

  The plotseq command draws the process of finding the terms of a recurrent sequence.
  seqplot and graphe_suite are synonyms for plotseq.

  - plotseq takes :
    - expr, an expression depending on a variable.
    - var=a, the variable and a beginning value. (If var=x, then the variable name can be omitted.) The a value can be replaced by a list of three elements, [a,x−,x+] where x−..x+ will be passed as the range of the variable for the graph computation.
    - n, the ending value of the variable.
  - plotseq(expr,var=a,n) draws the line y=x, the graph of y=expr, and the n first terms of the recurrent sequence defined by: u0=a, un=f(un−1) where f is the function determined by expr.
  - - Example.

  ## 7.18 Tangent field: plotfield fieldplot

  The plotfield command draws the tangent field of a differential equation or a vector field.
  fieldplot is a synonym for plotfield.

  To draw the tangent field of a differential equation:

  - plotfield takes two mandatory arguments and one optional argument:
    - expr, an expression depending on two variables, a time variable and a dependent variable.
    - vars, a list of the two variables [t,y], where t is the time variable and y is the dependent variable. The variables can optionally include their ranges; [t=a..b,y=c..d].
    - Optionally, ystep=n to specify the discretization.
  - plotfield(expr,vars ⟨,ystep=n⟩) draws the tangent field of the differential equation y′=f(t,y).
  - - Example.
    - Example.

  ## 7.19 Plotting a solution of a differential equation: plotode odeplot

  The plotode command draws solutions of differential equations.

  - plotode takes three mandatory arguments and one optional argument:
    - expr an expression depending on two or three variables, a time variable and one or two dependent variables.
    - vars, a list of the time variable and the dependent variable. The time variable can optionally have a range of values, such as t=a..b. The dependent variable can also be a vector of size two.
    - init, the initial values of the variables.
    - Optionally, for when there are two dependent variables, plane, the symbol, to draw the solution in the plane.
  - plotode(expr,vars,init) draws the solution of the differential equation y′=expr (where y is the dependent variable) passing through the initial point init.

  To compute the values of the solutions, see Section 10.3.5.

  - - Examples.

  ## 7.20 Interactive plotting of solutions of a differential equation: interactive_plotode interactive_odeplot

  The interactive_plotode command draws interactive tangent fields of differential equations.
  interactive_odeplot is a synonym for interactive_plotode.

  - interactive_plotode takes two arguments:
    - expr an expression depending on two or three variables, a time variable and one or two dependent variables.
    - vars, a list of the time variable and the dependent variable.
  - interactive_plotode(expr,vars) draws the tangent field of the differential equation y′=expr (where y is the dependent variable) in a new window. In this window, one can click on a point to get the plot of the solution of y′=expr passing through this point.

    You can further click to display several solutions. To stop, press the Esc key.

  - - Example.

  ## 7.21 Animated graphs (2D, 3D or "4D")

  Xcas can display animated 2D, 3D or "4D" graphs. This is done first by computing a sequence of graphic objects, then after completion, by displaying the sequence in a loop. To stop or start again the animation, click on the button ▸ ∣ (to the left of Menu).

- - Animation of a 2D graph: animate
    - Examples.
  - Animation of a 3D graph: animate3d
    - Example.
  - Animation of a sequence of graphic objects: animation
    - Examples.

  # Chapter 8 Statistics

  ## 8.1 One variable statistics

  Xcas has several functions to perform statistics; the data is typically given as a list of numbers, such as A:= [0,1,2,3,4,5,6,7,8,9,10,11]. This particular list will be used in several examples. Section 5.45.16 will discuss statistics on matrices.

  - The mean: mean
    - Examples.
  - Variance: variance
    - Examples.
  - Standard deviation: stdev
    - Examples.
  - The population standard deviation: stddevp stdDev
    - Examples.
  - The median: median
    - Examples.
  - Quartiles: quartiles quartile1 quartile3
    - Example.
  - Quantiles: quantile
    - Examples.
  - The boxwhisker: boxwhisker mustache
    - Example.
  - Classes: classes
    - Examples.
  - Histograms: histogram histogramme
    - Example.
    - Example.
  - Accumulating terms: accumulate_head_tail
    - Example.
  - Frequencies: frequencies frequences
    - Example.
  - Cumulative frequencies: cumulated_frequencies frequences_cumulees
    - Examples.
  - Bar graphs: bar_plot
    - Examples.
  - Pie charts: camembert
    - Examples.

  ## 8.2 Two variable statistics

  - Covariance and correlation: covariance correlation covariance_correlation
    - Examples.
    - Example.
    - Example.
  - Scatterplots: scatterplot nuaged_points batons
    - Example.
    - Example.
  - Polygonal paths: polygonplot ligne_polygonale linear_interpolate listplot plotlist
    - Examples.
    - Examples.
    - Example.
  - Linear regression: linear_regression linear_regression_plot
    - Example.
    - Example.
  - Exponential regression: exponential_regression exponential_regression_plot
    - Example.
    - Example.
  - Logarithmic regression: logarithmic_regression logarithmic_regression_plot
    - Example.
    - Example.
  - Power regression: power_regression power_regression_plot
    - Example.
    - Example.
  - Polynomial regression: polynomial_regression polynomial_regression_plot
    - Example.
    - Example.
  - Logistic regression: logistic_regression logistic_regression_plot
    - Example.
    - Example.

  ## 8.3 Random numbers

  - Producing uniformly distributed random numbers: rand random alea hasard sample
    - Examples.
    - Example.
    - Example.
    - Example.
    - Examples.
    - Example.
  - Initializing the random number generator: srand randseed RandSeed
  - Producing random numbers with the binomial distribution: randbinomial
    - Example.
  - Producing random numbers with a multinomial distribution: randmultinomial
    - Examples.
  - Producing random numbers with a Poisson distribution: randpoisson
    - Example.
  - Producing random numbers with a normal distribution: randnorm randNorm
    - Example.
  - Producing random numbers with Student’s distribution: randstudent
    - Example.
  - Producing random numbers with the χ2 distribution: randchisquare
    - Example.
  - Producing random numbers with the Fisher-Snédécor distribution: randfisher
    - Example.
  - Producing random numbers with the gamma distribution: randgammad
    - Example.
  - Producing random numbers with the beta distribution: randbetad
    - Example.
  - Producing random numbers with the geometric distribution: randgeometric
    - Example.
  - Producing random numbers with the exponential distribution: randexp
    - Example.
  - Random variables: random_variable randvar
    - Examples.
    - Example.
  - Make a random vector or list: randvector
    - Examples.
  - Producing random matrices: randmatrix ranm randMat
    - Examples.

  ## 8.4 Density and distribution functions

  - Distributions and inverse distributions
  - The uniform distribution
    - The probability density function for the uniform distribution: uniform uniformd
    - Example.
    - The cumulative distribution function for the uniform distribution: uniform_cdf uniformd_cdf
    - Examples.
    - The inverse distribution function for the uniform distribution: uniform_icdf uniformd_icdf
    - Example.
  - The binomial distribution
    - The probability density function for the binomial distribution: binomial
    - Examples.
    - The cumulative distribution function for the binomial distribution: binomial_cdf
    - Examples.
    - The inverse distribution function for the binomial distribution: binomial_icdf
    - Example.
  - The negative binomial distribution
    - The probability density function for the negative binomial distribution: negbinomial
    - Example.
    - The cumulative distribution function for the negative binomial distribution: negbinomial_cdf
    - Examples.
    - The inverse distribution function for the negative binomial distribution: negbinomial_icdf
    - Example.
  - The multinomial probability function: multinomial
    - Example.
  - The Poisson distribution
    - The probability density function for the Poisson distribution: poisson
    - Example.
    - The cumulative distribution function for the Poisson distribution: poisson_cdf
    - Examples.
    - The inverse distribution function for the Poisson distribution: poisson_icdf
    - Example.
  - Normal distributions
    - The probability density function for a normal distribution: normald loi_normal
    - Examples.
    - The cumulative distribution function for normal distributions: normal_cdf normald_cdf
    - Examples.
    - The inverse distribution function for normal distributions: normal_icdf normald_icdf
    - Examples.
    - The upper tail cumulative function for normal distributions: UTPN
    - Examples.
  - Student’s distribution
    - The probability density function for Student’s distribution: student studentd
    - Example.
    - The cumulative distribution function for Student’s distribution: student_cdf
    - Examples.
    - The inverse distribution function for Student’s distribution: student_icdf
    - Example.
    - The upper tail cumulative function for Student’s distribution: UTPT
    - Example.
  - The χ2 distribution
    - The probability density function for the χ2 distribution: chisquare
    - Example.
    - The cumulative distribution function for the χ2 distribution: chisquare_cdf
    - Examples.
    - The inverse distribution function for the χ2 distribution: chisquare_icdf
    - Example.
    - The upper tail cumulative function for the χ2 distribution: UTPC
    - Example.
  - The Fisher-Snédécor distribution
    - The probability density function for the Fisher-Snédécor distribution: fisher fisherd snedecor snedecord
    - Example.
    - The cumulative distribution function for the Fisher-Snédécor distribution: fisher_cdf snedecor_cdf
    - Examples.
    - The inverse distribution function for the Fisher-Snédécor distribution: fisher_icdf snedecor_icdf
    - Example.
    - The upper tail cumulative function for the Fisher-Snédécor distribution: UTPF
    - Example.
  - The gamma distribution
    - The probability density function for the gamma distribution: gammad
    - Example.
    - The cumulative distribution function for the gamma distribution: gammad_cdf
    - Examples.
    - The inverse distribution function for the gamma distribution: gammad_icdf
    - Example.
  - The beta distribution
    - The probability density function for the beta distribution: betad
    - Example.
    - The cumulative distribution function for the beta distribution: betad_cdf
    - Examples.
    - The inverse distribution function for the beta distribution: betad_icdf
    - Example.
  - The geometric distribution
    - The probability density function for the geometric distribution: geometric
    - Example.
    - The cumulative distribution function of the geometric distribution: geometric_cdf
    - Examples.
    - The inverse distribution function for the geometric distribution: geometric_icdf
    - Example.
  - The Cauchy distribution
    - The probability density function for the Cauchy distribution: cauchy cauchyd
    - Examples.
    - The cumulative distribution function for the Cauchy distribution: cauchy_cdf cauchyd_cdf
    - Examples.
    - The inverse distribution function for the Cauchy distribution: cauchy_icdf cauchyd_icdf
    - Example.
  - The exponential distribution
    - The probability density function for the exponential distribution: exponential exponentiald
    - Example.
    - The cumulative distribution function for the exponential distribution: exponential_cdf exponentiald_cdf
    - Examples.
    - The inverse distribution function for the exponential distribution: exponential_icdf exponentiald_icdf
    - Example.
  - The Weibull distribution
    - The probability density function for the Weibull distribution: weibull weibulld
    - Example.
    - The cumulative distribution function for the Weibull distribution: weibull_cdf weibulld_cdf
    - Examples.
    - The inverse distribution function for the Weibull distribution: weibull_icdf weibulld_icdf
    - Example.
  - The Kolmogorov-Smirnov distribution: kolmogorovd
    - Example.
  - The Wilcoxon or Mann-Whitney distribution
    - The Wilcoxon test polynomial: wilcoxonp
    - Examples.
    - The Wilcoxon/Mann-Whitney statistic: wilcoxons
    - Examples.
    - The Wilcoxon or Mann-Whitney test: wilcoxont
    - Examples.
  - Moment generating functions for probability distributions: mgf
    - Examples.
  - Cumulative distribution functions: cdf
    - Examples.
  - Inverse distribution functions: icdf
    - Example.
  - Kernel density estimation: kernel_density kde
    - Examples.
  - Distribution fitting by maximum likelihood: fitdistr
    - Examples.
  - Markov chains: markov
    - Example.
  - Generating a random walks: randmarkov
    - Example.
    - Example.

  ## 8.5 Hypothesis testing

  - General
  - Testing the mean with the Z test: normalt
    - Examples.
  - Testing the mean with the T test: studentt
    - Examples:
  - Testing a distribution with the χ2 distribution: chisquaret
    - Examples.
  - Testing a distribution with the Kolmogorov-Smirnov distribution: kolmogorovt
    - Examples.

  # Chapter 9 Data analysis

  ## 9.1 Clustering

  - Hierarchical clustering: cluster
    - Examples.
  - k-means algorithm: kmeans
    - Example.

  # Chapter 10 Numerical computations

  Real numbers may have an exact representation (e.g. rationals, symbolic expressions involving square roots or constants like π, …) or approximate representation, which means that internally the real is represented by a rational (with a denominator that is a power of the basis of the representation) close to the real. Inside Xcas, the standard scientific notation is used for approximate representation; that is a mantissa (with a point as decimal separator) optionally followed by the letter e and an integer exponent.

  Note that the real number 10−4 is an exact number but 1e−4 is an approximate representation of this number.

  ## 10.1 Floating point representation.

  This section discusses how real numbers are represented.

  - Digits
  - Representation by hardware floats
  - Examples of representations of normalized floats
  - Difference between the representation of (3.1-3) and of 0.1

  ## 10.2 Approximate evaluation: evalf approx Digits

  The evalf command evalf or approx, if possible, evaluates to a numeric approximation (see Section 5.8.1). The approximation is to Digits digits (see Section 2.5.1), this can be changed with an optional second argument.

  - - Examples.

  ## 10.3 Numerical algorithms

  - Approximating solution of an equation: newton
    - Examples.
  - Approximating computation of the derivative number: nDeriv
    - Examples.
  - Approximating computation of integrals: romberg nInt
    - Example.
  - Approximating integrals with an adaptive Gaussian quadrature at 15 points: gaussquad
    - Examples.
  - Approximating solutions of y’=f(t,y): odesolve
    - Examples.
  - Approximating solutions of the system v’=f(t,v): odesolve
    - Examples.
  - Approximating solutions of nonlinear second-order boundary value problems: bvpsolve
    - Examples.

  ## 10.4 Solving equations with fsolve nSolve cfsolve

  The fsolve command can solve equations or systems of equations. This section will discuss solving equations; systems will be discussed in the next section.

  The cfsolve command is the complex version of fsolve, with the same arguments. The only difference is that cfsolve gives numeric solutions over the complex numbers, even if Xcas is not in complex mode (see Section 2.5.5). fsolve will return complex roots, but only in complex mode.

  fsolve solves numeric equations of the form:

  f(x)=0, x ∈ (a,b)

  Unlike solve (Section 5.55.6) or proot (Section 10.6), it is not limited to polynomial equations.
  nSolve is a synonym for fsolve.

  - fsolve takes one mandatory argument and three optional arguments:
    - eqn, an equation involving one variable.
    - Optionally, var, the variable (by default x).
    - Optionally, init, an initial approximation or range.
    - Optionally, algorithm, the name of an iterative algorithm to be used by the GSL solver.
  - fsolve(eqn,var,init ⟨,algorithm⟩) returns an approximate solution to the equation.
  - - Examples.
  - fsolve with the option bisection_solver
    - Example.
  - fsolve with the option brent_solver
    - Example.
  - fsolve with the option falsepos_solver
    - Example.
  - fsolve with the option newton_solver
    - Example.
  - fsolve with the option secant_solver
    - Examples.
  - fsolve with the option steffenson_solver
    - Example.

  ## 10.5 Solving systems with fsolve and cfsolve

  The previous section discussed using fsolve to solve equations. This section will discuss systems of equations.

  As before, the cfsolve command is the complex version of fsolve, with the same arguments. The only difference is that cfsolve gives numeric solutions over the complex numbers, even if Xcas is not in complex mode (see Section 2.5.5). fsolve will return complex roots, but only in complex mode.

  For solving systems of equations:

  - fsolve takes three mandatory arguments and one optional argument:
    - eqns, a list of equations (or expressions, considered to be equal to zero) to solve.
    - vars, a list of the variables.
    - init, a list initial values for the variables.
    - Optionally, method, the method to use. The possible methods are:
      - dnewton_solver
      - hybrid_solver
      - hybrids_solver
      - newtonj_solver
      - hybridj_solver
      - hybridsj_solver
  - fsolve(eqns,vars,init ⟨,method⟩) returns an approximate solution to eqns.
  - - Examples.
  - fsolve with the option dnewton_solver
    - Example.
  - fsolve with the option hybrid_solver
    - Example.
  - fsolve with the option hybrids_solver
    - Example.
  - fsolve with the option newtonj_solver
    - Example.
  - fsolve with the option hybridj_solver
    - Example.
  - fsolve with the option hybridsj_solver
    - Example.

  ## 10.6 Numeric roots of a polynomial: proot

  The proot command numerically finds the roots of a squarefree polynomial.

  - proot takes one argument:
    P, a squarefree polynomial, either in symbolic form or as a list of polynomial coefficients (written by decreasing order).
  - proot(P) returns a list of the numeric roots of P.
  - - Examples.

  ## 10.7 Numeric factorization of a matrix: cholesky qr lu svd

  Matrix numeric factorizations of

  - Cholesky,
  - QR,
  - LU,
  - svd,

  are described in Section 5.49.

  # Chapter 11 Unit objects and physical constants

  ## 11.1 Unit objects

  - Notation of unit objects
    - Examples.
  - Computing with units
    - Examples.
  - Converting units into MKSA units: mksa
    - Example.
  - Converting units: convert =>
    - Examples.
  - Converting between Celsius and Fahrenheit: Celsius2Fahrenheit Fahrenheit2Celsius
    - Examples.
    - Example.
  - Factoring a unit: ufactor
    - Examples.
  - Simplifying units: usimplify
    - Example.

  ## 11.2 Constants

  - Notation of physical constants
    - Examples.

  # Chapter 12 Programming

  A program that you write for Xcas might be longer than one line; the first section discusses how you can enter it.

  ## 12.1 Functions, programs and scripts

  - The program editor
  - Functions: function endfunction { } local return
  - Local variables
  - Default values of the parameters
  - Programs
  - Scripts
  - Code blocks

  ## 12.2 Basic instructions

  - Comments: //
  - Input: input Input InputStr textinput output Output
    - Examples.
    - Example.
    - Example.
  - Reading a single keystroke: getKey
  - Checking conditions: assert
    - Example.
  - Checking the type of the argument: type subtype compare getType
    - Examples.
    - Example.
    - Examples.
    - Examples.
  - Printing: print Disp ClrIO
    - Examples.
    - Example.
  - Displaying exponents: printpow
    - Example.
  - Infixed assignments: => := =<
  - Assignment by copying: copy
    - Example.
  - The difference between := and =<
    - Example.
    - Examples.
    - Example.

  ## 12.3 Control structures

  - if statements: if then else end elif
    - Examples.
    - Examples.
  - The switch statement: switch case default
    - Example.
  - The for loop: for from to step do end_for
    - Example.
    - Example.
    - Example.
  - The repeat loop: repeat until
    - Example.
  - The while loop: while
    - Example.
  - Breaking out a loop: break
    - Example.
  - Going to the next iteration of a loop: continue
    - Example.
  - Changing the order of execution: goto label
    - Example.

  ## 12.4 Other useful instructions

  - Defining a function with a variable number of arguments: args
    - Examples.
  - Assignments in a program
  - Writing variable values to a file: write
    - Example.
    - Example.
  - Writing output to a file: fopen fclose fprint
    - Example.
  - Using strings as names: make_symbol
    - Examples.
  - Creating array of symbols: symbol_array
    - Examples.
  - Using strings as commands: expr
    - Examples.
    - Example.
    - Example.
    - Example.
    - Example.
    - Example.
    - Example.
    - Example.
  - Converting an expression to a string: string
    - Example.
    - Example.
  - Converting a real number into a string: format
    - Example.
    - Example.
    - Example.
  - Working with the graphics screen: DispG DispHome ClrGraph ClrDraw
    - Example.
    - Example.
    - Example.
  - Pausing a program: Pause WAIT
    - Example.
    - Example.
  - Dealing with errors: try catch throw error ERROR
    - Examples.
    - Example.

  ## 12.5 Debugging

  - Starting the debugger: debug sst in sst_in cont kill break breakpoint halt rmbrk rmbreakpoint watch rmwtch
    - Example.

  # Chapter 13 Two-dimensional Graphics

  ## 13.1 Introduction

  - Points, vectors and complex numbers

  ## 13.2 Basic commands

  - Clearing the DispG screen: erase
  - Toggling the axes: switch_axes
  - Drawing unit vectors in the plane: Ox_2d_unit_vector Oy_2d_unit_vector frame_2d
    - Example.
  - Drawing dotted paper: dot_paper
    - Example.
  - Drawing lined paper: line_paper
    - Example.
  - Drawing grid paper: grid_paper
    - Example.
  - Drawing triangular paper: triangle_paper
    - Example.

  ## 13.3 Display features of graphics

  - Graphic features
  - Parameters for changing features
    - Parameters for local features
    - Example (of the filled option).
    - Parameters for global features
    - Example.
  - Commands for global display features
    - Adding a legend: legend
    - Example.
    - Changing various features:display color
    - Examples.

  ## 13.4 Defining geometric objects without drawing them: nodisp

  The nodisp command defines an object without displaying it.

  - nodisp takes one argument:
    command, a command to create an object.
  - nodisp(command) creates the object withouth drawing it.

  Setting a variable to a graphic object draws the object.

  - - Examples.

  ## 13.5 Geometric demonstrations: assume

  Variables should be unspecified to demonstrate a general geometric result, but need to have specific values when drawing. There are a couple of different approaches to deal with this.

  One approach is to use the assume command (see Section 4.4.8). If a variable is assumed to have a value, then that value will be used in graphics but the variable will still be unspecified for calculations. For example: Input:

  assume(a = 2.1)
  A:= point(a + i)

  Output:

  but the variable a will still be treated as a variable in calculations:
  Input:

  distance(0,A)

  Output:

  √

  ⎛ ⎝ | −a | ⎞ ⎠ | 2+1

  Another approach would be to use the point or pointer mode in a geometry screen. If there isn’t a geometry screen showing, the command Alt-G or the Geo▸New figure 2d menu will open a screen. Clicking on the Mode button right above the graphic screen and choosing pointer or point will put the screen in pointer or point mode. If a point is defined and displayed, such as with A:= point(2.1 + i), then clicking on the name of the point (A in this case) with the right mouse button will bring up a configuration screen. As long as there is a point defined with non-symbolic values, there will be a symb box on the configuration screen. Selecting the symb box and choosing OK will be equivalent to the commands:

  assume(Ax=[2.1,-8.16901408451,8.16901408451])
  assume(Ay = [1, -5.0, 5.0]

  This will bring up two lines beneath the arrows to the right of the screen which can be used to change the assumed values of Ax and Ay. Also, the point A will be redefined as point(Ax,Ay).

  ## 13.6 Points in the plane

  - Points and complex numbers
  - The point in the plane: point
    - Example.
    - Example.
  - The difference and sum of two points in the plane:+ -
  - Defining random points in the plane: point2d
    - Examples.
  - Points in polar coordinates: polar_point point_polar
    - Example.
    - Example.
  - Finding a point of intersection of two objects in the plane: single_inter line_inter
    - Example.
  - Finding the points of intersection of two geometric objects in the plane: inter
    - Examples.
  - Finding the orthocenter of a triangle in the plane: orthocenter
    - Example.
  - Finding the midpoint of a segment in the plane: midpoint
  - The barycenter in the plane: barycenter
    - Example.
  - The isobarycenter of n points in the plane: isobarycenter
  - The center of a circle in the plane: center
    - Example.
  - The vertices of a polygon in the plane: vertices vertices_abc
    - Examples.
  - The vertices of a polygon in the plane, closed: vertices_abca
  - A point on a geometric object in the plane: element

  ## 13.7 Lines in plane geometry

  - Lines and directed lines in the plane: line
    - Example.
  - Half-lines in the plane: half_line
    - Example.
  - Line segments in the plane: segment Line
    - Example.
  - Vectors in the plane: segment vector
    - Example.
    - Example.
    - Example.
  - Parallel lines in the plane: parallel
    - Example.
  - Perpendicular lines in the plane: perpendicular
    - Example.
  - Tangents to curves in the plane: tangent
    - Examples.
  - The median of a triangle in the plane: median_line
    - Example.
  - The altitude of a triangle: altitude
    - Example.
  - The perpendicular bisector of a segment in the plane: perpen_bisector
    - Example.
  - The angle bisector: bisector
    - Example.
  - The exterior angle bisector: exbisector
    - Example.

  ## 13.8 Triangles in the plane

  See Section 14.7 for triangles in space.

  - Arbitrary triangles in the plane: triangle
    - Example.
  - Isosceles triangles in the plane: isosceles_triangle
    - Examples.
  - Right triangles in the plane: right_triangle
    - Examples.
  - Equilateral triangles in the plane: equilateral_triangle
    - Examples.

  ## 13.9 Quadrilaterals in the plane

  See Section 14.8 for quadrilaterals in space.

  - Squares in the plane: square
    - Examples.
  - Rhombuses in the plane: rhombus
    - Examples.
  - Rectangles in the plane: rectangle
    - Examples.
    - Example.
  - Parallelograms in the plane: parallelogram
    - Examples.
  - Arbitrary quadrilaterals in the plane: quadrilateral
    - Example.

  ## 13.10 Other polygons in the plane

  See Section 14.9 for polygons in space.

  - Regular hexagons in the plane: hexagon
    - Examples.
  - Regular polygons in the plane: isopolygon
    - Examples.
  - General polygons in the plane: polygon
    - Examples.
  - Polygonal lines in the plane: open_polygon
    - Examples.
  - Convex hulls: convexhull
    - Example.
    - Example.

  ## 13.11 Circles

  - Circles and arcs in the plane: circle
    - Example.
    - Example.
    - Example.
    - Examples.
  - Circular arcs: arc
    - Examples.
  - Circles (TI compatibility): Circle
    - Example.
  - Inscribed circles: incircle
    - Example.
  - Circumscribed circles: circumcircle
    - Example.
  - Excircles: excircle
    - Example.
  - The power of a point relative to a circle: powerpc
    - Example.
  - The radical axis of two circles: radical_axis
    - Example.

  ## 13.12 Other conic sections

  - The ellipse in the plane: ellipse
    - Example.
    - Examples.
  - The hyperbola in the plane: hyperbola
    - Example.
    - Examples.
  - The parabola in the plane: parabola
    - Example.
    - Example.
    - Examples.

  ## 13.13 Coordinates in the plane

  - The affix of a point or vector: affix
    - Examples.
  - The abscissa of a point or vector in the plane: abscissa
    - Examples.
  - The ordinate of a point or vector in the plane: ordinate
    - Examples.
  - The coordinates of a point, vector or line in the plane: coordinates
    - Examples.
  - The rectangular coordinates of a point: rectangular_coordinates
    - Example.
  - The polar coordinates of a point: polar_coordinates
    - Example.
  - The Cartesian equation of a geometric object in the plane: equation
    - Example.
  - The parametric equation of a geometric object in the plane: parameq
    - Examples.

  ## 13.14 Measurements

  - Measurement and display: distanceat distanceatraw angleat angleatraw areaat areaatraw perimeterat perimeteratraw slopeat slopeatraw extract_measure
    - Examples.
    - Example.
  - The distance between objects in the plane: distance
    - Examples.
    - Example.
  - The length squared of a segment in the plane: distance2
    - Example.
  - The measure of an angle in the plane: angle
    - Examples.
  - The graphical representation of the area of a polygon: plotarea areaplot
    - Examples.
  - The area of a polygon: area
    - Examples.
  - The perimeter of a polygon: perimeter
    - Examples.
  - The slope of a line: slope
    - Examples.
  - The radius of a circle: radius
    - Example.
  - The length of a vector: abs
    - Example.
  - The angle of a vector: arg
    - Example.
  - Normalize a complex number: normalize
    - Example.

  ## 13.15 Transformations

  - General remarks
  - Translations in the plane: translation
    - Examples.
  - Reflections in the plane: reflection
    - Examples.
  - Rotation in the plane: rotation
    - Examples.
  - Homothety in the plane: homothety
    - Examples.
  - Similarity in the plane: similarity
    - Examples.
  - Inversion in the plane: inversion
    - Examples.
  - Orthogonal projection in the plane: projection
    - Examples.

  ## 13.16 Properties

  - Checking if a point is on an object in the plane: is_element
    - Examples.
  - Checking if three points are collinear in the plane: is_collinear
    - Examples.
  - Checking if four points are concyclic in the plane: is_concyclic
    - Examples.
  - Checking if a point is in a polygon or circle: is_inside
    - Examples.
  - Checking if an object is an equilateral triangle in the plane: is_equilateral
    - Examples.
  - Checking if an object in the plane is an isosceles triangle: is_isosceles
    - Examples.
  - Checking if an object in the plane is a right triangle or a rectangle: is_rectangle
    - Example.
  - Checking if an object in the plane is a square: is_square
    - Examples.
  - Checking if an object in the plane is a rhombus: is_rhombus
    - Examples.
  - Checking if an object in the plane is a parallelogram: is_parallelogram
    - Examples.
  - Checking if two lines in the plane are parallel: is_parallel
    - Examples.
  - Checking if two lines in the plane are perpendicular: is_perpendicular
    - Examples.
  - Checking if two circles in the plane are orthogonal: is_orthogonal
    - Examples.
  - Checking if elements are conjugates: is_conjugate
    - Examples.
    - Examples.
  - Checking if four points form a harmonic division: is_harmonic
    - Examples.
  - Checking if lines are in a bundle: is_harmonic_line_bundle
    - Example.
  - Checking if circles are in a bundle: is_harmonic_circle_bundle
    - Example.

  ## 13.17 Harmonic division

  - Finding a point dividing a segment in the harminic ratio k: division_point
    - Examples.
  - The cross ratio of four collinear points: cross_ratio
    - Examples.
  - Harmonic division: harmonic_division
    - Examples.
  - The harmonic conjugate: harmonic_conjugate
    - Examples.
  - Pole and polar: pole polar
    - Example.
    - Examples.
  - The polar reciprocal: reciprocation
    - Example.

  ## 13.18 Loci and envelopes

  - Loci: locus
    - The locus of points depending on points on a curve.
    - Examples.
    - The envelope of a family of lines which depend on points on a curve.
    - Examples.
  - Envelopes: envelope
    - Examples.
  - The trace of a geometric object: trace
    - Example.

  # Chapter 14 Three-dimensional Graphics

  ## 14.1 Introduction

  The Alt+H command brings up a display screen for three-dimensional graphics. This screen has its own menu and command lines.

  This screen also automatically appears whenever there is a three-dimensional graphic command.

  The plane of vision for a three-dimensional graphic screen is perpendicular to the observer’s line of vision. The plane of vision is also indicated by dotted lines showing its intersection with the parallelepiped. The axis of vision for a three-dimensional graphic screen is

  The three-dimensional graphic screen starts with the image of a parallelepiped bounding the graphics and vectors in the x, y and z directions. At the top of the screen is the equation of the plane of vision, which is a plane perpendicular to the observer’s line of vision. The plane of vision is shown graphically with dotted lines indicating where it intersects the plane of vision.

  Clicking in the graphic screen outside of the parallelepiped and dragging the mouse moves the x, y and z directions relative to the observer; these directions are also changed with the x, X, y, Y, z and Z keys. Scrolling the mouse wheel moves the plane of vision along the line of vision. The in and out buttons on the graphic screen menu zoom in and out of the picture.

  The graphical features available for two-dimensional graphics (see Section 13.3) are also available for three-dimensional graphics, but to see the points the markers must be squares with width (point_width) at least 3.

  The graphic screen menu has a cfg button which brings up a configuration screen. Among other things, this screen has

  - An Ortho proj button, which determines whether the drawing uses orthogonal projection or perspective projection.
  - A Lights button, which determines whether the objects are lit or not; the locations of eight points for lighting are set using the buttons L1, …, L7, which specify the points with homogeneous coordinates.
  - A Show axis button, which determines whether or not the outlining parallelepiped is visible.

  ## 14.2 Changing the view

  The depictions of three-dimensional objects are made with a coordinate system Oxyz, where the x axis is horizontal and directed right, the y axis is vertical and directed up, and the z axis is perpendicular to the screen and directed out of the screen. The depictions can be transformed by changing to a different coordinate system by setting a quaternion (see Section 13.3.2).

  ## 14.3 The axes

  - Drawing unit vectors: Ox_3d_unit_vector Oy_3d_unit_vector Oz_3d_unit_vector frame_3d
    - Example.
    - Example.
    - Example.

  ## 14.4 Points in space

  - Defining a point in three-dimensions: point
    - Example.
  - Defining a random point in three-dimensions: point3d
    - Example.
  - Finding an intersection point of two objects in space: single_inter line_inter
    - Examples.
  - Finding the intersection points of two objects in space: inter
    - Examples.
  - Finding the midpoint of a segment in space: midpoint
    - Example.
  - Finding the barycenter of a set of points in space: barycenter
    - Examples.
  - Finding the isobarycenter of a set of points in space: isobarycenter
    - Example.

  ## 14.5 Lines in space

  - Lines and directed lines in space: line
    - Example.
    - Example.
    - Example.
  - Half lines in space: half_line
    - Example.
  - Segments in space: segment
    - Example.
  - Vectors in space: vector
    - Example.
    - Examples.
  - Parallel lines and planes in space: parallel
    - Example.
    - Example.
    - Example.
    - Example.
  - Perpendicular lines and planes in space: perpendicular
    - Example.
    - Example.
  - Planes orthogonal to lines and lines orthogonal to planes in space: orthogonal
    - Example.
    - Example.
  - Common perpendiculars to lines in space: common_perpendicular
    - Example.

  ## 14.6 Planes in space

  See also sections 14.5.6 and 14.5.7 for planes perpendicular and orthogonal to lines and planes.

  - Planes in space: plane
    - Example.
  - The bisector plane in space: perpen_bisector
    - Example.
  - Tangent planes in space: tangent
    - Examples.

  ## 14.7 Triangles in space

  - Drawing triangles in space: triangle
    - Example.
  - Isosceles triangles in space: isosceles_triangle
    - Example.
    - Examples.
  - Right triangles in space: right_triangle
    - Example.
    - Examples.
  - Equilateral triangles in space: equilateral_triangle
    - Examples.

  ## 14.8 Quadrilaterals in space

  See Section 13.9 for quadrilaterals in the plane.

  - Squares in space: square
    - Examples.
  - Rhombuses in space: rhombus
    - Example.
    - Examples.
  - Rectangles in space: rectangle
    - Example.
    - Examples.
  - Parallelograms in space: parallelogram
    - Examples.
  - Arbitrary quadrilaterals in space: quadrilateral
    - Example.

  ## 14.9 Polygons in space

  See Section 13.10 for polygons in the plane.

  - Hexagons in space: hexagon
    - Examples.
  - Regular polygons in space: isopolygon
    - Examples.
  - General polygons in space: polygon
    - Example.
  - Polygonal lines in space: open_polygon
    - Example.

  ## 14.10 Circles in space: circle

  See Section 13.11.1 for circles in the plane.

  The circle command returns and draws a circle. It can take its arguments in various ways.

  Three points.

  - circle takes three arguments:
    A,B,C, three points.
  - circle(A,B,C) returns and draws the circle in plane ABC with a diameter AB.
  - - Example.
    - Example.

  ## 14.11 Conics in space

  - Ellipses in space: ellipse
    - Example.
  - Hyperbolas in space: hyperbola
    - Example.
  - Parabolas in space: parabola
    - Example.

  ## 14.12 Three-dimensional coordinates

  - The abscissa of a three-dimensional point: abscissa
    - Example.
  - The ordinate of a three-dimensional point: ordinate
    - Example.
  - The cote of a three-dimensional point: cote
    - Example.
  - The coordinates of a point, vector or line in space: coordinates
    - Examples.
  - The Cartesian equation of an object in space: equation
    - Examples.
  - The parametric equation of an object in space: parameq
    - Examples.
  - The length of a segment in space: distance
    - Example.
  - The length squared of a segment in space: distance2
    - Example.
  - The measure of an angle in space: angle
    - Example.
    - Example.
    - Example.

  ## 14.13 Properties

  - Checking if an object in space is on another object: is_element
    - Examples.
  - Checking if points and/or lines in space are coplanar: is_coplanar
    - Examples.
  - Checking if lines and/or planes in space are parallel: is_parallel
    - Examples.
  - Checking if lines and/or planes in space are perpendicular: is_perpendicular
    - Examples.
  - Checking if two lines or two spheres in space are orthogonal: is_orthogonal
    - Examples.
  - Checking if points in space are collinear: is_collinear
    - Examples.
  - Checking if points in space are concyclic: is_concyclic
    - Examples.
  - Checking if points in space are cospherical: is_cospherical
    - Examples.
  - Checking if an object in space is an equilateral triangle: is_equilateral
    - Examples.
  - Checking if an object in space is an isosceles triangle: is_isosceles
    - Examples.
  - Checking if an object in space is a right triangle or a rectangle: is_rectangle
    - Examples.
  - Checking if an object in space is a square: is_square
    - Examples.
  - Checking if an object in space is a rhombus: is_rhombus
    - Examples.
  - Checking if an object in space is a parallelogram: is_parallelogram
    - Examples.

  ## 14.14 Transformations in space

  - General remarks
  - Translation in space: translation
    - Examples.
  - Reflection in space with respect to a plane, line or point: reflection symmetry
    - Examples.
  - Rotation in space: rotation
    - Examples.
  - Homothety in space: homothety
    - Examples.
  - Similarity in space: similarity
    - Examples.
  - Inversion in space: inversion
    - Examples.
  - Orthogonal projection in space: projection
    - Examples.

  ## 14.15 Surfaces

  - Cones: cone
    - Example.
  - Half-cones: half_cone
    - Example.
  - Cylinders: cylinder
    - Example.
  - Spheres: sphere
    - Examples.
  - The graph of a function of two variables: funcplot
    - Example.
  - The graph of parametric equations in space: paramplot
    - Example.

  ## 14.16 Solids

  - Cubes: cube
    - Examples.
  - Tetrahedrons: tetrahedron pyramid
    - Examples.
  - Parallelepipeds: parallelepiped
    - Examples.
  - Prisms: prism
  - Polyhedra: polyhedron
  - Vertices: vertices
  - Faces: faces
  - Edges: line_segments

  ## 14.17 Platonic solids

  To specify a Platonic solid, Xcas works with the center, a vertex and a third point to specify a plane of symmetry. To speed up calculations, it may be useful to use approximate calculations, which can be ensured with the evalf command. For example, instead of:
  Input:

  centered_cube([0,0,0],[3,2,1],[1,1,0])

  it would typically be better to use:
  Input:

  centered_cube(evalf([0,0,0],[3,2,1],[1,1,0]))
  - Centered tetrahedra: centered_tetrahedron
    - Example.
  - Centered cubes: centered_cube
    - Examples.
  - Octahedra: octahedron
    - Example.
  - Dodecahedra: dodecahedron
    - Examples.
  - Icosahedra: icosahedron
    - Examples.

  # Chapter 15 Multimedia

  ## 15.1 Audio Tools

  Xcas has commands for working with audio objects. An audio object is a vector consisting of:

  - The first element is itself a list consisting of:
    - The number of channels (generally 1 for mono and 2 for stereo).
    - The number of bits (generally 16).
    - The sampling frequency (44100 for a CD quality sound).
    - The number of bytes (excluding the header); i.e., the number of seconds times the sampling frequency times the number of bits/8 times the number of channels.
  - The second element is another list of digital sound data for each channel.

  Xcas can read and write audio objects as files on your computer; these files will be in the wav (Waveform Audio File) format.

  For creating and playing audio objects, there are:

  - createwav, for creating audio objects (see Section 15.1.1).
  - playsnd, for playing audio objects (see Section 15.1.4).

  For reading and writing audio files, there are:

  - readwav, for reading audio files from disk and creating audio objects (see Section 15.1.2).
  - writewav, for writing audio files to disk from audio objects (see Section 15.1.3).

  For manipulating audio objects, there are:

  - stereo2mono, to convert a multichannel audio clip to a single channel (see Section 15.1.5).
  - resample, to change the sample rate (see Section 15.1.8).

  For getting information from an audio object, there are:

  - channels, to find the number of channels (see Section 15.1.6).
  - bit_depth, to find the number of bits in each sample value (see Section 15.1.6).
  - samplerate, to find the number of samples per second (see Section 15.1.6).
  - duration, to find the duration of the audio in seconds (see Section 15.1.6).
  - channel_data, to extract a sample from an audio (see Section 15.1.7).
  - plotwav, to visualize a waveform (see Section 15.1.9).
  - plotspectrum, to visualize the power spectra (see Section 15.1.10).
  - Creating audio clips: createwav
    - Examples.
  - Reading wav files from disk: readwav
    - Example.
  - Writing wav files to disk: writewav
    - Example.
  - Audio playback: playsnd
    - Example.
  - Averaging channel data: stereo2mono
    - Example.
  - Audio clip properties: channels bit_depth samplerate duration
  - Extracting samples from audio clips: channel_data
    - Example.
  - Changing the sampling rate: resample
    - Example.
  - Visualizing waveforms: plotwav
    - Examples.
  - Visualizing power spectra: plotspectrum
    - Example.
  - Reading a wav file: readwav
    - Example.
  - Writing a wav file: writewav
    - Example.
  - Listening to a digital sound: playsnd
  - Preparing digital sound data: soundsec
    - Examples.

  ## 15.2 Signal Processing

  - Boxcar function: boxcar
    - Examples.
  - Rectangle function: rect
    - Example.
  - Triangle function: tri
    - Example.
  - Cardinal sine function: sinc
    - Examples.
  - Root mean square: rms
    - Examples.
  - Cross-correlation of two signals: cross_correlation
    - Examples.
  - Auto-correlation of a signal: auto_correlation
    - Example.
  - Convolution of two signals or functions: convolution
    - Example.
    - Examples.
  - Low-pass filtering: lowpass
    - Example.
  - High-pass filtering: highpass
    - Example.
  - Apply a moving average filter to a signal: moving_average
    - Examples.
  - Performing thresholding operations on an array: threshold
    - Examples.
  - Bartlett-Hann window function: bartlett_hann_window
    - Example.
  - Blackman-Harris window function: blackman_harris_window
    - Example.
  - Blackman window function: blackman_window
    - Example.
  - Bohman window function: bohman_window
    - Example.
  - Cosine window function: cosine_window
    - Example.
  - Gaussian window function: gaussian_window
    - Example.
  - Hamming window function: hamming_window
    - Example.
  - Hann-Poisson window function: hann_poisson_window
    - Example.
  - Hann window function: hann_window
    - Example.
  - Parzen window function: parzen_window
    - Example.
  - Poisson window function: poisson_window
    - Example.
  - Riemann window function: riemann_window
    - Example.
  - Triangular window function: triangle_window
    - Example.
  - Tukey window function: tukey_window
    - Example.
  - Welch window function: welch_window
    - Example.
  - An example: static noise removal by spectral subtraction

  ## 15.3 Images

  - Image structure in Xcas
  - Reading images: readrgb
  - Viewing images
    - Examples.
  - Creating or recreating images: writergb
    - Examples.
    - Example.
    - Example.

  # Chapter 16 Using giac inside a program

  ## 16.1 Using giac inside a C++ program

  To use giac inside of a C++ program, put

        #include <giac/giac.h>

  at the beginning of the file. To compile the file, use

        c++ -g progname.cc -lgiac -lgmp

  After compiling, there will be a file a.out which can be run with the command

        ./a.out

  For example, put the following program in a file named pgcd.cc.

      // -*- compile-command: "g++ -g pgcd.cc -lgiac -lgmp" -*-
      #include <giac/config.h>
      #include <giac/giac.h>

      using namespace std; using namespace giac;

      gen pgcd(gen a,gen b){ gen q,r; for (;b!=0;){ r=irem(a,b,q); a=b; b=r;
      } return a; }

      int main(){ cout << "Enter 2 integers "; gen a,b; cin >> a >> b; cout
      << pgcd(a,b) << endl; return 0; }

  After compiling this with

        c++ -g pgcd.cc -lgiac -lgmp

  and running it with

        ./a.out

  there will be a prompt

        Enter 2 integers

  After entering two integers, such as with

        Enter 2 integers  30 36

  the result will appear:

        6

  ## 16.2 Defining new giac functions

  New giac functions can be defined with a C++ program. All data in the program used in formal calculations needs to be gen type. A variable g can be declared to be gen type with

        gen g;

  In this case, g.type can have different values.

  - If g.val is an integer type int, then g.type will be _INT_.
  - If g._DOUBLE_val is a real double, g.type will be _DOUBLE_.
  - If g._SYMBptr is type symbolic, then g.type will be _SYMB.
  - If g._VECTptr is a vector, type vector, then g.type will be _VECT.
  - If g._ZINTptr is an integer type zint, then g.type will be _ZINT.
  - If g._IDNTptr is an identifier, type idnt, then g.type will be _IDNT.
  - If g._CPLXptr is a complex type complex, then g.type will be _CPLX.

  As an example, put the following program in a file called pgcd.cpp.

      // -*- mode:C++ ; compile-command: "g++ -I.. -fPIC -DPIC -g -c pgcd.cpp -o pgcd.lo && \
      //    ln -sf pgcd.lo pgcd.o && \
      //    gcc -shared pgcd.lo -lc -lgiac -Wl,-soname -Wl,libpgcd.so.0 -o \
      //    libpgcd.so.0.0.0 && ln -sf libpgcd.so.0.0.0 libpgcd.so.0 && \
      //    ln -sf libpgcd.so.0.0.0 libpgcd.so" -*-
      using namespace std;
      #include <stdexcept>
      #include <cmath>
      #include <cstdlib>
      #include <giac/config.h>
      #include <giac/giac.h>
      //#include "pgcd.h"

      #ifndef NO_NAMESPACE_GIAC namespace giac { #endif // ndef
      NO_NAMESPACE_GIAC

        gen monpgcd(const gen & a0,const gen & b0){ gen q,r,a=a0,b=b0; for
        (;b!=0;){ r=irem(a,b,q); a=b; b=r; } return a; } gen _monpgcd(const
        gen & args,GIAC_CONTEXT){ if ( (args.type!=_VECT) ||
        (args._VECTptr->size()!=2)) setsizeerr(); vecteur &v=*args._VECTptr;
        return monpgcd(v[0],v[1]); } const string _monpgcd_s("monpgcd");
        unary_function_eval __monpgcd(0,&_monpgcd,_monpgcd_s);
        unary_function_ptr at_monpgcd (&__monpgcd,0,true);

      #ifndef NO_NAMESPACE_GIAC } // namespace giac #endif // ndef
      NO_NAMESPACE_GIAC

  After compiling this with the commands after the compile-command in the header, namely

        g++ -I.. -fPIC -DPIC -g -c pgcd.cpp -o pgcd.lo && \
          ln -sf pgcd.lo pgcd.o && \
          gcc -shared pgcd.lo -lc -lgiac -Wl,-soname -Wl,libpgcd.so.0 -o \
          libpgcd.so.0.0.0 && ln -sf libpgcd.so.0.0.0 libpgcd.so.0 && \
          ln -sf libpgcd.so.0.0.0 libpgcd.so

  the new command can be inserted with the insmod command in giac, where insmod takes the full absolute path of the libpgcd.so file as argument.
  Input:

  insmod("/path/to/file/libpgcd.so")

  Afterwords, the monpgcd command will be another giac command.
  Input:

  monpgcd(30,36)

  Output:

  6

  1
    Université de Grenoble, initial translation of parts of the French user manual
  2
    Full translation and improvements
  3
    Optimization, signal processing. The graph theory is in a separate manual.

  > This document was translated from LATEX by HEVEA .