What Is A Module

Table of contents:

What Is A Module
What Is A Module

Video: What Is A Module

Video: What Is A Module
Video: What is a Module? (Abstract Algebra) 2024, March
Anonim

The word "module" comes from the Latin modulus, which, in turn, is a diminutive form of the word modus - measure. Thus, modulus roughly translates as "small measure", "detail".

What is a module
What is a module

Instructions

Step 1

In engineering, a module is usually called a part of a structure that can be separated from it. If the whole structure is composed of such parts, it is called modular.

In particular, modular furniture is a set of standard elements from which the manufacturer (or even directly the client-customer) can assemble a variant that meets the given specifications.

Step 2

The concept of a module in programming carries a similar meaning. Here it is a piece of code, usually contained in a separate file. For example, an executable module is a part of a program that contains executable (most often machine) code.

Also, modules (sometimes for brevity, mods) are usually called objects, the code of which expands the capabilities of the main system.

Step 3

In mathematics, the concept of a module is used in several different areas. Most often it is synonymous with absolute value. If for some A the concept of an absolute value is defined, then it is denoted | A | and "module A" is read.

Step 4

The absolute value of a positive real number is equal to itself. The absolute value of a negative real number is equal to it, taken with the opposite sign. In other words:

| a | = a if a ≥ 0;

| a | = -a if a

The modulus of a vector is a number equal to the length of this vector. If a vector is specified by the Cartesian coordinates of its vertices (x1, y1; x2, y2), then its modulus is calculated by the formula:

| a | = √ ((x1 - x2) ^ 2 + (y1 - y2) ^ 2).

The absolute value of the complex number a + bi is equal to the length of the vector, the beginning of which coincides with the origin and the end at the point (a, b). In this way:

| a + bi | = √ (a ^ 2 + b ^ 2).

The operation of taking the remainder of an integer division is also called modulo division. For example, 25 = 1 mod 4 can read “twenty-five equals one modulo four” and denotes that when 25 is divided by 4, the remainder is one.

Step 5

The modulus of a vector is a number equal to the length of this vector. If a vector is specified by the Cartesian coordinates of its vertices (x1, y1; x2, y2), then its modulus is calculated by the formula:

| a | = √ ((x1 - x2) ^ 2 + (y1 - y2) ^ 2).

Step 6

The absolute value of the complex number a + bi is equal to the length of the vector, the beginning of which coincides with the origin and the end at the point (a, b). In this way:

| a + bi | = √ (a ^ 2 + b ^ 2).

Step 7

The operation of taking the remainder of an integer division is also called modulo division. For example, 25 = 1 mod 4 might read “twenty-five equals one mod four” and denotes that when 25 is divided by 4, the remainder is one.

Recommended: