Arithmetic/Rational: Difference between revisions

Content added Content deleted
(added Scheme)
Line 189: Line 189:
Boost provides a rational number template.
Boost provides a rational number template.


<lang c++>
<lang cpp>#include <iostream>
#include <iostream>
#include "math.h"
#include "math.h"
#include "boost/rational.hpp"
#include "boost/rational.hpp"
Line 216: Line 215:
}
}
return 0;
return 0;
}</lang>
}
</lang>



=={{header|Common Lisp}}==
=={{header|Common Lisp}}==