  In this paper we present eight-component values "octons", generating
associative noncommutative algebra. It is shown that the electromagnetic field
in a vacuum can be described by a generalized octonic equation, which leads
both to the wave equations for potentials and fields and to the system of
Maxwell's equations. The octonic algebra allows one to perform compact combined
calculations simultaneously with scalars, vectors, pseudoscalars and
pseudovectors. Examples of such calculations are demonstrated by deriving the
relations for energy, momentum and Lorentz invariants of the electromagnetic
field. The generalized octonic equation for electromagnetic field in a matter
is formulated.
