Skip to content

Repository that defines a cairo struct called ratio that represents a rational number, x/y where x and y are in z mod p. Defines several operations between ratios.

License

Notifications You must be signed in to change notification settings

0xtonysprocket/ratios_cairo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ratios_cairo

repository that defines a cairo struct called ratio that represents a rational number in order to calculate exponents.

Ratio is x/y where x and y in Z mod p

Current functionality:

  • multiply ratios
  • divide ratios
  • raise ratio to power
  • take nth root of ratio
  • add ratios
  • absolute value of difference between ratios
  • check if one ratio is less than or equal to another

Todo:

  • add testing
  • add overflow protection

About

Repository that defines a cairo struct called ratio that represents a rational number, x/y where x and y are in z mod p. Defines several operations between ratios.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published