 Patterns have an underlying mathematical structure; indeed, mathematics can be seen as the search for regularities, and the output of any function is a mathematical pattern.Similarly in the sciences, theories explain and predict regularities in the world.In art and architecture, decorations or visual motifs may be combined and repeated to form patterns designed to have a chosen effect on the viewer.