mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
* math_tests: rewrote test_atan() Rewrote the atan test so that analagous checks are symmetrically performed for all possible inputs: int, float, and double. The total number of tests has increased while reducing the total amount of code. * math_tests: inverse trig and inverse hyperbolic trig Tests were written for acos, acosh, asin, asinh, and atanh. * math: cos macro missing values::promote_int The cosine macro can't take an integer input without this fix. You can see that some of the other macros, like the sine macro, have this. * math_tests: trig and exponential Wrote tests for the trigonometric macros as well as the exponential macro. The hyperbolic trig macros use the exponential macro rather than any LLVM instrinsics (for now at least, LLVM 19 has the proper compiler intrinsics). * math: float comparison In the math module two macros were defined to assist in comparing floating-point numbers for a given tolerance. The trig, hyperbolic trig, and exponential tests in the math_tests module were updated to use these macros instead of direct comparison.