Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

special_operators

python3 special_operators
cd Boost-Python-Examples/Examples/special_operators
make
python3

Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import special_operators
>>> r = special_operators.Rational(3, 4)
Default constructor of Rational
>>> print(r)
I am Rational
>>> r ** r
0.8059274488676564
>>> abs(r)
<special_operators.Rational object at 0x7f65d1f23c10>
>>> abs(r)