Continued fraction/Arithmetic/Construct from rational number: Difference between revisions

(added python)
Line 47:
Nigel Galloway, February 9th., 2013.
*/
class r2cf : public ContinuedFraction {
private: int n1, n2;
public:
r2cf(const int numerator, const int denominator): n1(numerator), n2(denominator){}
n1 = numerator; n2 = denominator;
}
const int nextTerm() {
const int thisTerm = n1/n2;
2,172

edits