### The Maxima on-line user's manual

Algebra Calculator

#### Concat

Function: concat (<arg_1>, <arg_2>, ...) Concatenates its arguments. The arguments must evaluate to atoms. The return value is a symbol if the first argument is a symbol and a string otherwise.

`concat` evaluates its arguments. The single quote prevents evaluation.

```          (%i1) y: 7\$
(%i2) z: 88\$
(%i3) concat (y, z/2);
(%o3)                          744
(%i4) concat (y, z/2);
(%o4)                          y44```

A symbol constructed by `concat` may be assigned a value and appear in expressions. The `::` (double colon) assignment operator evaluates its left-hand side.

```          (%i5) a: concat (y, z/2);
(%o5)                          y44
(%i6) a:: 123;
(%o6)                          123
(%i7) y44;
(%o7)                          123
(%i8) b^a;
y44
(%o8)                         b
(%i9) %, numer;
123
(%o9)                         b```

Note that although `concat (1, 2)` looks like a number, it is a string.

```          (%i10) concat (1, 2) + 3;
(%o10)                       12 + 3```

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

```(%o1)                                true
(%i2) ```

### Related Examples

y: 7;

z: 88;

concat (y, z/2);

Calculate

##### concat-expand-sconcat

sconcat ("xx[", 3, "]...

Calculate

##### concat-sum

k:1;

n:0;

f:2*k*%pi*s^2*(1+2*(1...

Calculate

##### concat-explicit-kill-string

kill(all);

[f1, f2] : [x^2 + 10,...

wxdraw2d(title = "Reg...

Calculate

##### concat-length-random

liste:["+","-","/","*...

a(x):="x"+liste[rando...

a(2);

Calculate

##### concat-denom-false-floor-length-makelist-map-mod-num-ratprint-transpose

ratprint:false;

x1:[1.272,3.8752,5.64...

x:rat(x1);

Calculate

kill(all);

numer:true;

jahr:365;

Calculate

##### concat-makelist-sum

k:2;

n:1;

acl:makelist(concat('...

Calculate

##### concat-length-numer-random

liste:["+","-","/","*...

a(x):="x"+liste[rando...

a(2);

Calculate

##### concat-first-second

write_number_from_lis...

write_number_from_lis...

Calculate