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: split (<string>)
Function: split (<string>, <delim>)
Function: split (<string>, <delim>, <multiple>) Returns the list of all tokens in <string>. Each token is an unparsed string. split uses <delim> as delimiter. If <delim> is not given, the space character is the default delimiter. <multiple> is a boolean variable with true by default. Multiple delimiters are read as one. This is useful if tabs are saved as multiple space characters. If <multiple> is set to false, each delimiter is noted.
(%i1) split("1.2 2.3 3.4 4.5");
(%o1) [1.2, 2.3, 3.4, 4.5]
(%i2) split("first;;third;fourth",";",false);
(%o2) [first, , third, fourth] There are also some inexact matches for split. Try ?? split to see them.
(%o1) true (%i2)