Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Split Calculator

Split

Function: split (<string>)

block([sn],sn(x,p) := block([s,a,b,c],s: printf(false, eval_string(concat(ascii(34),ascii(126),ascii(101),ascii(34))), x),a: split(s,eval_string(concat(ascii(34),ascii(69),ascii(34)))),b: a[1],c: sremove(eval_string(concat(ascii(34),ascii(43),ascii(34))),a[2]),fpprintprec:p, return(concat(eval_string(b),eval_string(concat(ascii(34),ascii(69),ascii(34))),c)) ),is("10.76"= sn(10.7620000000,5)));

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) 

Split Example

Related Examples

split

eq:x^2+2*x+1=0;

split("=","x=1");

Calculate

split

aaa:"10+13=10";

split(aaa,"=");

Calculate

split

answer: "x=1";

eq: split(answer,"=");

Calculate

split

eq:x^2+2*x+1=0;

split("=","x=1 or x=2");

Calculate

split

h:split("a,B,ce",",");

h[1];

Calculate

split

aaa:"10+13=10";

split(aaa,"=");

Calculate

split

split("x=1","=");

Calculate

split

answer: "x=1";

mat: split(answer,"=");

Calculate

split

h:split("a,B,ce");

h[1];

Calculate

split

aaa:"-7+13=10";

split(aaa,"=");

Calculate