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: cons (<expr>, <list>) Returns a new list constructed of the element <expr> as its first element, followed by the elements of <list>. cons also works on other expressions, e.g. cons(x, f(a,b,c)); -> f(x,a,b,c).
![Cons Example d(n):=divsum(n)-n;
abu(n):=if d(n) > n then true else false;
l : [];
for i : 0 thru 28123 do (if abu(i) then (l:cons(li,[i])));
print(length(l));
print(member(12,l));](http://maxima-online.org//plot.html?g=i1333762108.png&t=img&db=r1904783778)
There are also some inexact matches for cons. Try ?? cons to see them.
(%o1) true (%i2)