Skip to content

Shump/meta-math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meta-math

A simple math library for template metaprogramming in c++. The main purpose of this library was to create a compile-time floating point data type as an exercise in template metaprogramming.

However, just like the run-time type, operations are not guarantied to give exact values because of size limitations in c++ data-types as well as the nature of rational numbers.

Current supported features:

  • Floating point representation using rational numbers
  • The basic four operators implemented (+, -, *, /)
  • All comparison operators implemented (=, !=, <, <=, >, >=)
  • sqrt() function implemented

TODO:

  • Better precision
    • Add seperate member for whole integers

About

Math library for template metaprogramming in c++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published