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

Algebra Calculator

#### Atom

Function: atom (<expr>) Returns `true` if <expr> is atomic (i.e. a number, name or string) else `false`. Thus `atom(5)` is `true` while `atom(a[1])` and `atom(sin(x))` are `false` (asuming `a[1]` and `x` are unbound).

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

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

### Related Examples

##### atom-evenp-subset

subset ({1, 2, x, x +...

subset ({1, 2, 3, 4,...

Calculate

##### atom-block-expand-false-part-return-sqrt

_is_atom(expr):=block...

_is_atom(a);

_is_atom(1);

Calculate

a : '%pi/2;

p : sin(a);

p;

Calculate

atom(3.2);

Calculate

atom(-5/2);

Calculate

##### atom-mapatom-op-sqrt

atom(sqrt(2));

mapatom(sqrt(2));

op(sqrt(2));

Calculate

##### atom-define-diff-numer-op-pred-rhs-solve

A( r ) := 2 * %pi * r...

define( A1( r ), diff...

define( A2( r ), diff...

Calculate

##### atom-defrule-freeof-gcd-integerp-lambda-matchdeclare-printprops-propvars-sin-true

matchdeclare (aa, int...

matchdeclare (bb, la...

matchdeclare (cc, fr...

Calculate

##### atom-lambda-subset

f: lambda ([x], x^2);

f(a);

A:{1,2,3};

Calculate

##### atom-evenp-subset

subset ({149,193,140,...

subset ({1, 2, 7, 8,...

Calculate