\\ 1 if f(x)!=0 for all x in v. t_all (f=x->x,v) = {for (i=1,#v, if (!f(v[i]), return(0))); 1} t_alldigits (v) = t_all(t_isdigit,v) \\ Evaluates only strings of digits (with +,-,.). t_evaln (x) = if (t_isdecimalstring(x), eval(x), x) \\ Rather clumsy. t_isdecimalstring (x) = {my (n,i,vx,a,b); if (type(x)!="t_STR",return(0)); x=t_strip(x); n=#x; if (!n,return(0)); i=t_pos(".",x); vx=Vec(x); if (i==0, a=vx; b=[],1x/p,v)} t_maketuples (v,n) = vector (#v\n,i,vector(n,j,v[(i-1)*n+j])) t_writeverbatim (text,name,relsize=-2) =\ {my (begin,end); begin=Strprintf("{\\relsize{%d}\\begin{verbatim}",relsize); end="\\end{verbatim}}"; t_write(name,Strexpand(begin,"\n",text,"\n",end))}