EAN-13 is a barcode in the EAN standard defined by GS1, adapted in more than one hundred GS1 member organizations, for the identification of items, especially in retail or retail outlets around the world, with the exception of America of the North where the UPC barcode is used.
I needed a function to calculate the DV of EAN-13 mentioned in the above passage. At the time I searched everywhere and did not find anything about it.
After getting a solution, I came to share here on the site, continue in the field of answers.