# appendix :simple math classes, numerical operations(Defind in Classes,python) # peter.vlasschaert@gmail.com,26/08/2022 print( "-----------------------------------") print( "numerical operations:classes python") print( "-----------------------------------") print( " ") print( "class method", "|","instatantiation") print( "__add___ ", "|","self + other") print( "__sub___ ", "|","self - other") print( "__mul___ ", "|","self * other") print( "__div___ ", "|","self / other") print( "__floordiv___ ","|","self // other") print( "__mod___ ", "|","self % other") print( "__divmod___ ", "|","self divmod other") print( "__lshift___ ", "|","self << other") print( "__rshift___ ", "|","self >> other") print( "__and___ ", "|","self & other") print( "__or___ ", "|","self | other") print( " right : Numerical operations ") print( "__radd___ ", "|","self + other") print( "__rsub___ ", "|","self - other") print( "__rmul___ ", "|","self * other") print( "__rdiv___ ", "|","self / other") print( "__rfloordiv___ ","|","self // other") print( "__rmod___ ", "|","self % other") print( "__rdivmod___ ", "|","self divmod other") print( "__rlshift___ ", "|","self << other") print( "__rrshift___ ", "|","self >> other") print( "__rand___ ", "|","self & other") print( "__ror___ ", "|","self | other") print( "see: vec2d ,class, __rmul__")