Online Algebra Calculator
Many of users do not use powerful Maxima computer algebra system for systematic work, but for ad hoc algebraic calculations – equations, functions, matrixes, etc. only. To do this job, it is not useful to download the whole application from a web site.
Function: sublist (<list>, <p>) Returns the list of elements of <list> for which the predicate p returns true.
![Sublist Example l: [1, 2, 3, 4, 5, 6];
sublist (l, evenp);](http://maxima-online.org//plot.html?g=i1387658938.png&t=img&db=r58031332)
Example:
(%i1) L: [1, 2, 3, 4, 5, 6];
(%o1) [1, 2, 3, 4, 5, 6]
(%i2) sublist (L, evenp);
(%o2) [2, 4, 6] There are also some inexact matches for sublist. Try ?? sublist to see them.
(%o1) true (%i2)