mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
linux_x64 lib test
This commit is contained in:
parent
cd84458911
commit
87c9c1aae9
@ -97,5 +97,6 @@ double acos(double x)
|
|||||||
SET_LOW_WORD(df,0);
|
SET_LOW_WORD(df,0);
|
||||||
c = (z-df*df)/(s+df);
|
c = (z-df*df)/(s+df);
|
||||||
w = R(z)*s+c;
|
w = R(z)*s+c;
|
||||||
return 2*(df+w);
|
// return 2*(df+w);
|
||||||
|
return 999.9;
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ endif()
|
|||||||
|
|
||||||
# system features
|
# system features
|
||||||
option(PK_ENABLE_OS "" OFF)
|
option(PK_ENABLE_OS "" OFF)
|
||||||
option(PK_ENABLE_DETERMINISM "" FALSE)
|
option(PK_ENABLE_DETERMINISTIC_FLOAT "" FALSE)
|
||||||
option(PK_ENABLE_WATCHDOG "" OFF)
|
option(PK_ENABLE_WATCHDOG "" OFF)
|
||||||
|
|
||||||
# modules
|
# modules
|
||||||
|
@ -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.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.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 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
|
assert math.fmod(-2.0, 3.0) == -2.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user