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:

Sinsert Calculator

Sinsert

Function: sinsert (<seq>, <string>, <pos>) Returns a string that is a concatenation of substring (<string>, 1, <pos> - 1), the string <seq> and substring (<string>, <pos>). Note that the first character in <string> is in position 1.

          (%i1) s: "A submarine."$
          (%i2) concat( substring(s,1,3),"yellow ",substring(s,3) );
          (%o2)                  A yellow submarine.
          (%i3) sinsert("hollow ",s,3);
          (%o3)                  A hollow submarine.

(%o1)                                true
(%i2) 

Sinsert Example

Related Examples