Change KCL stdlib floating-point results to not be platform dependent (#7499)

* Add libm dependency

* Change to use libm for trig functions

* Remove redactions for floating point

* Update output

* Use clippy to prevent stdlib math sneaking back in

---------

Co-authored-by: Adam Chalmers <adam.chalmers@zoo.dev>
This commit is contained in:
Jonathan Tran
2025-06-16 21:34:50 -04:00
committed by GitHub
parent 1a4a030671
commit 7486d25cf1
433 changed files with 24677 additions and 24672 deletions

View File

@ -132,8 +132,8 @@ description: Artifact commands angled_line.kcl
"segment": {
"type": "line",
"end": {
"x": 3.762,
"y": -11.763,
"x": 3.761813572028026,
"y": -11.763131328405109,
"z": 0.0
},
"relative": true

View File

@ -94,7 +94,7 @@ description: Operations executed angled_line.kcl
"name": "PI",
"value": {
"type": "Number",
"value": 3.142,
"value": 3.141592653589793,
"ty": {
"type": "Unknown"
}
@ -110,7 +110,7 @@ description: Operations executed angled_line.kcl
"name": "E",
"value": {
"type": "Number",
"value": 2.718,
"value": 2.718281828459045,
"ty": {
"type": "Known",
"type": "Count"
@ -127,7 +127,7 @@ description: Operations executed angled_line.kcl
"name": "TAU",
"value": {
"type": "Number",
"value": 6.283,
"value": 6.283185307179586,
"ty": {
"type": "Known",
"type": "Count"

View File

@ -75,7 +75,7 @@ description: Variables in memory after executing angled_line.kcl
"tag": null,
"to": [
19.93,
15.04
15.040000000000001
],
"type": "ToPoint",
"units": {
@ -89,7 +89,7 @@ description: Variables in memory after executing angled_line.kcl
},
"from": [
19.93,
15.04
15.040000000000001
],
"tag": {
"commentStart": 133,
@ -100,7 +100,7 @@ description: Variables in memory after executing angled_line.kcl
},
"to": [
23.08,
5.19
5.190000000000001
],
"type": "ToPoint",
"units": {
@ -114,12 +114,12 @@ description: Variables in memory after executing angled_line.kcl
},
"from": [
23.08,
5.19
5.190000000000001
],
"tag": null,
"to": [
7.91,
1.09
7.909999999999998,
1.0900000000000016
],
"type": "ToPoint",
"units": {
@ -132,13 +132,13 @@ description: Variables in memory after executing angled_line.kcl
"sourceRange": []
},
"from": [
7.91,
1.09
7.909999999999998,
1.0900000000000016
],
"tag": null,
"to": [
11.672,
-10.673
11.671813572028025,
-10.673131328405107
],
"type": "ToPoint",
"units": {
@ -151,13 +151,13 @@ description: Variables in memory after executing angled_line.kcl
"sourceRange": []
},
"from": [
11.672,
-10.673
11.671813572028025,
-10.673131328405107
],
"tag": null,
"to": [
-1.348,
-0.643
-1.3481864279719744,
-0.6431313284051079
],
"type": "ToPoint",
"units": {
@ -170,8 +170,8 @@ description: Variables in memory after executing angled_line.kcl
"sourceRange": []
},
"from": [
-1.348,
-0.643
-1.3481864279719744,
-0.6431313284051079
],
"tag": null,
"to": [