Skip to content

JAFigueroaAcero/Fractions_module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Fractions_module

Version 1.0.1 Module to use fraction operators in python. According to the next sintaxis 'a |op| b', the existing operators are:

  • |f|: to convert to values to frac array.
  • |s|: to sum 2 fraction arrays.
  • |r|: to rest 2 fraction arrays.
  • |x|: to multiply 2 fraction arrays.
  • |d|: to divide 2 fraction arrays.
  • |d2f|: converts a float to fraction with decimal precision of p

Also there are two operators with the sintaxis 'a |op':

  • |sim: simplify a fraction array.
  • |dec: converts a fraction array to float variable.

Releases

No releases published

Packages

No packages published

Languages