rational.h File Reference
#include <symengine/constants.h>
#include <symengine/symengine_exception.h>
+ Include dependency graph for rational.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  SymEngine::Rational
 Rational Class. More...
 

Namespaces

 SymEngine
 Main namespace for SymEngine package.
 

Functions

void SymEngine::get_num_den (const Rational &rat, const Ptr< RCP< const Integer >> &num, const Ptr< RCP< const Integer >> &den)
 returns the num and den of rational rat as RCP<const Integer>
 
RCP< const Number > SymEngine::rational (long n, long d)
 convenience creator from two longs
 

Detailed Description

Class for Rationals built on top of Number class

Definition in file rational.h.