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:

Sremove Calculator

Sremove

Function: sremove (<seq>, <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.760"= sn(10.7620000000,5)));

Function: sremove (<seq>, <string>, <test>)

Function: sremove (<seq>, <string>, <test>, <start>)

Function: sremove (<seq>, <string>, <test>, <start>, <end>) Returns a string like <string> but without all substrings matching <seq>. Default test function for matching is sequal. If sremove should ignore case while searching for <seq>, use sequalignore as test. Use <start> and <end> to limit searching. Note that the first character in <string> is in position 1.

          (%i1) sremove("nt","I dont like coffee.");
          (%o1)                   I do like coffee.
          (%i2) sremove ("DO ",%,sequalignore);
          (%o2)                    I like coffee.

There are also some inexact matches for sremove. Try ?? sremove to see them.

(%o1)                                true
(%i2) 

Sremove Example

Related Examples