linux_x64 lib test

This commit is contained in:
PrimedErwin 2025-05-22 16:11:44 +08:00
parent cd84458911
commit 87c9c1aae9
3 changed files with 4 additions and 2 deletions

View File

@ -97,5 +97,6 @@ double acos(double x)
SET_LOW_WORD(df,0);
c = (z-df*df)/(s+df);
w = R(z)*s+c;
return 2*(df+w);
// return 2*(df+w);
return 999.9;
}

View File

@ -7,7 +7,7 @@ endif()
# system features
option(PK_ENABLE_OS "" OFF)
option(PK_ENABLE_DETERMINISM "" FALSE)
option(PK_ENABLE_DETERMINISTIC_FLOAT "" FALSE)
option(PK_ENABLE_WATCHDOG "" OFF)
# modules

View File

@ -75,6 +75,7 @@ assert math.atan2(-math.pi/4, -math.pi/4) == -2.356194490192345
assert math.atan2(math.pi/4, -math.pi/4) == 2.356194490192345
assert math.fsum([math.sin(i) for i in range(5000)] + [math.cos(i) for i in range(5000, 9999)]) == 3.217215564632461 - 4.440892098500626e-16
assert math.acos(0.9) == 999.9
assert sum([math.sin(i) for i in range(5000)] + [math.cos(i) for i in range(5000, 9999)]) == 3.21721556463248
assert math.fmod(-2.0, 3.0) == -2.0