mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
To prevent incorrect approximations, such as cos(1.5707963267949) = 0, we lowered the precision value. This way, the approximation is more selective. However, when ploting functions such as e^(i.pi+x), the float approximation fails and therefore, the function appears "undef". As a result we created two functions Epsilon that behave differently according to the number's type. When it is a double, we want a maximal precision -> epsilon_double = 1x10^(-15), and when it is a float, we accept more agressive approximations -> epsilon_float = 10 x 1x10^(-7). Change-Id: I844ac52ade665f51fe6888db38f4485c193286d9