1Mathematics, Hostos Community College, City University of New York, USA
American Journal of Applied Mathematics and Statistics.
2014,
Vol. 2 No. 4, 246-248
DOI: 10.12691/ajams-2-4-14
Copyright © 2014 Science and Education PublishingCite this paper: Tanvir Prince. Analyze JPEG File Size for Random Pictures Using Random Function in Mathematica.
American Journal of Applied Mathematics and Statistics. 2014; 2(4):246-248. doi: 10.12691/ajams-2-4-14.
Correspondence to: Tanvir Prince, Mathematics, Hostos Community College, City University of New York, USA. Email:
tprince@hostos.cuny.eduAbstract
Using the random function in Mathematica (a mathematical software), random numbers between 0 and 1 were generated which in turn used to create random pictures. The random values represent the gray scale of the black and white pictures. Thus hundreds of pictures were created randomly and compressed using JPEG algorithm. Then a directory list containing the file size is created and imported in the Microsoft excel worksheet to analyze. All the code is given in the paper that is used so that it can be carried out by any interested reader. As a byproduct, this can be used as a classroom activity or as a project for any college level mathematics courses.
Keywords