Implementation of algorithms discussed in CS/MATH 395 along with unit tests and scripts.
Unit Tests are ran at TravisCI
Test Coverage are ran at Coveralls
Master | Development |
---|---|
University of Idaho CS/MATH 395 (Spring 2013)
This module contains functions/classes to calculate the Greatest Common Denominator. Euclids method is such an algorithm.
###EuclidsMethod###
To run Euclids method navigate to GreatestCommonDenominator
and execute the python file with two numbers as arguments
$ cd GreatestCommonDenominator/
$ ls
EuclidsMethod.py EuclidsMethod.pyc __init__.py __init__.pyc
$ python EuclidsMethod.py 64 46
Euclids Method Mod:
2
Euclids Method Minus:
2
Euclids Method Mod Min:
2
$ python EuclidsMethod.py 55 22
Euclids Method Mod:
11
Euclids Method Minus:
11
Euclids Method Mod Min:
11
After nose
is installed on your system, simply run the command nosetests
from the main project folder
$ ls
GreatestCommonDenominator setup.py README.md tests
$ nosetests
........
----------------------------------------------------------------------
Ran 8 tests in 0.015s
OK
###nose### This package is structured to use nosetests, if you do not want to run unit tests then this requirement can be skipped
####installation####
To install the nose package, use python's easy install feature, easy_install nose
(on my Mac I had to run sudo easy_install nose
)
Language: Python
###Developed on###
- Operating System: Mac OS X
- Python Version: Python 2.7.2 and Python 3.3