CIFASIS / modelicacc

Modelica C Compiler implemented in C++ to develop and test novel algorithms for large scale models.
GNU General Public License v3.0
11 stars 9 forks source link

Real's representation #54

Closed Kalashnikovni closed 2 years ago

Kalashnikovni commented 3 years ago

The current implementation of maps uses double to represent real numbers. This can be a problem when working with big numbers (main application of ModelicaCC), where the distribution of floating point numbers is sparse. With such numbers, the application of a map to a domain leads to an incorrect result.

Suggestion: use fractional numbers. Check if BOOST supports them.

Kalashnikovni commented 2 years ago

Migrated to sb-graph repo https://github.com/CIFASIS/sb-graph