runmat 0.4.7 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/artifacts/stdlib.snapshot +0 -0
  2. package/dist/generated/builtin-examples-catalog.d.ts.map +1 -1
  3. package/dist/generated/builtin-examples-catalog.js +1 -1
  4. package/dist/generated/builtin-examples-catalog.js.map +1 -1
  5. package/dist/generated/builtins/deg2rad.d.ts +4 -0
  6. package/dist/generated/builtins/deg2rad.d.ts.map +1 -0
  7. package/dist/generated/builtins/deg2rad.js +98 -0
  8. package/dist/generated/builtins/deg2rad.js.map +1 -0
  9. package/dist/generated/builtins/rad2deg.d.ts +4 -0
  10. package/dist/generated/builtins/rad2deg.d.ts.map +1 -0
  11. package/dist/generated/builtins/rad2deg.js +98 -0
  12. package/dist/generated/builtins/rad2deg.js.map +1 -0
  13. package/dist/generated/builtins/xline.d.ts +4 -0
  14. package/dist/generated/builtins/xline.d.ts.map +1 -0
  15. package/dist/generated/builtins/xline.js +50 -0
  16. package/dist/generated/builtins/xline.js.map +1 -0
  17. package/dist/generated/builtins/yline.d.ts +4 -0
  18. package/dist/generated/builtins/yline.d.ts.map +1 -0
  19. package/dist/generated/builtins/yline.js +50 -0
  20. package/dist/generated/builtins/yline.js.map +1 -0
  21. package/dist/generated/builtins-manifest.d.ts.map +1 -1
  22. package/dist/generated/builtins-manifest.js +82 -0
  23. package/dist/generated/builtins-manifest.js.map +1 -1
  24. package/dist/lsp/runmat_lsp.d.ts +2 -2
  25. package/dist/lsp/runmat_lsp.js +4 -4
  26. package/dist/lsp/runmat_lsp_bg.wasm +0 -0
  27. package/dist/lsp/runmat_lsp_bg.wasm.d.ts +2 -2
  28. package/dist/pkg-web/runmat_wasm_web.d.ts +46 -46
  29. package/dist/pkg-web/runmat_wasm_web.js +109 -108
  30. package/dist/pkg-web/runmat_wasm_web_bg.wasm +0 -0
  31. package/dist/pkg-web/runmat_wasm_web_bg.wasm.d.ts +37 -37
  32. package/dist/runtime/stdlib.snapshot +0 -0
  33. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import type { BuiltinDoc } from "../../builtins.js";
2
+ declare const builtinDoc: BuiltinDoc;
3
+ export default builtinDoc;
4
+ //# sourceMappingURL=deg2rad.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deg2rad.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/deg2rad.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UA6FjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,98 @@
1
+ // @generated by scripts/generate-builtins.cjs
2
+ // Do not edit by hand.
3
+ const builtinDoc = {
4
+ "title": "deg2rad",
5
+ "category": "math/trigonometry",
6
+ "keywords": [
7
+ "deg2rad",
8
+ "degrees",
9
+ "radians",
10
+ "angle",
11
+ "trigonometry",
12
+ "elementwise"
13
+ ],
14
+ "summary": "Convert angles from degrees to radians.",
15
+ "references": [],
16
+ "gpu_support": {
17
+ "elementwise": true,
18
+ "reduction": false,
19
+ "precisions": [
20
+ "f32",
21
+ "f64"
22
+ ],
23
+ "broadcasting": "matlab",
24
+ "notes": "GPU inputs can be gathered to the host for the reference implementation. Fusion can keep compatible elementwise expressions on the active provider."
25
+ },
26
+ "fusion": {
27
+ "elementwise": true,
28
+ "reduction": false,
29
+ "max_inputs": 1,
30
+ "constants": "inline"
31
+ },
32
+ "requires_feature": null,
33
+ "tested": {
34
+ "unit": "builtins::math::trigonometry::deg2rad::tests",
35
+ "integration": null
36
+ },
37
+ "description": "`r = deg2rad(d)` converts each angle in `d` from degrees to radians using `d*pi/180`.",
38
+ "behaviors": [
39
+ "Operates element-wise on scalars, vectors, matrices, and N-D tensors.",
40
+ "Integer and logical inputs are promoted to double precision before conversion.",
41
+ "Complex inputs are scaled component-wise, matching ordinary multiplication by `pi/180`.",
42
+ "Output shape matches the input shape.",
43
+ "String inputs are unsupported and raise a builtin-scoped error."
44
+ ],
45
+ "examples": [
46
+ {
47
+ "description": "Converting a scalar angle",
48
+ "input": "r = deg2rad(90)",
49
+ "output": "r = 1.5708"
50
+ },
51
+ {
52
+ "description": "Converting a vector of angles",
53
+ "input": "angles = [0 30 45 60 90];\nr = deg2rad(angles)",
54
+ "output": "r = [0 0.5236 0.7854 1.0472 1.5708]"
55
+ }
56
+ ],
57
+ "faqs": [
58
+ {
59
+ "question": "Is `deg2rad(x)` equivalent to `x*pi/180`?",
60
+ "answer": "Yes. The builtin exists for readability and MATLAB compatibility."
61
+ },
62
+ {
63
+ "question": "Does `deg2rad` preserve array shape?",
64
+ "answer": "Yes. Each element is converted independently and the original shape is preserved."
65
+ }
66
+ ],
67
+ "links": [
68
+ {
69
+ "label": "rad2deg",
70
+ "url": "./rad2deg"
71
+ },
72
+ {
73
+ "label": "sin",
74
+ "url": "./sin"
75
+ },
76
+ {
77
+ "label": "cos",
78
+ "url": "./cos"
79
+ },
80
+ {
81
+ "label": "tan",
82
+ "url": "./tan"
83
+ }
84
+ ],
85
+ "source": {
86
+ "label": "`crates/runmat-runtime/src/builtins/math/trigonometry/deg2rad.rs`",
87
+ "url": "https://github.com/runmat-org/runmat/blob/main/crates/runmat-runtime/src/builtins/math/trigonometry/deg2rad.rs"
88
+ },
89
+ "key": "deg2rad",
90
+ "slug": "deg2rad",
91
+ "aliases": [],
92
+ "categoryPath": [
93
+ "math",
94
+ "trigonometry"
95
+ ]
96
+ };
97
+ export default builtinDoc;
98
+ //# sourceMappingURL=deg2rad.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deg2rad.js","sourceRoot":"","sources":["../../../src/generated/builtins/deg2rad.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,mBAAmB;IAC/B,UAAU,EAAE;QACV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AQ,EAAE;QACR,OAAO,EAAE,mEAAmE;QAC5E,KAAK,EAAE,gHAAgH;KACxH;IACD,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,SAAS;IACjB,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,MAAM;QACN,cAAc;KACf;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { BuiltinDoc } from "../../builtins.js";
2
+ declare const builtinDoc: BuiltinDoc;
3
+ export default builtinDoc;
4
+ //# sourceMappingURL=rad2deg.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rad2deg.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/rad2deg.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UA6FjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,98 @@
1
+ // @generated by scripts/generate-builtins.cjs
2
+ // Do not edit by hand.
3
+ const builtinDoc = {
4
+ "title": "rad2deg",
5
+ "category": "math/trigonometry",
6
+ "keywords": [
7
+ "rad2deg",
8
+ "radians",
9
+ "degrees",
10
+ "angle",
11
+ "trigonometry",
12
+ "elementwise"
13
+ ],
14
+ "summary": "Convert angles from radians to degrees.",
15
+ "references": [],
16
+ "gpu_support": {
17
+ "elementwise": true,
18
+ "reduction": false,
19
+ "precisions": [
20
+ "f32",
21
+ "f64"
22
+ ],
23
+ "broadcasting": "matlab",
24
+ "notes": "GPU inputs can be gathered to the host for the reference implementation. Fusion can keep compatible elementwise expressions on the active provider."
25
+ },
26
+ "fusion": {
27
+ "elementwise": true,
28
+ "reduction": false,
29
+ "max_inputs": 1,
30
+ "constants": "inline"
31
+ },
32
+ "requires_feature": null,
33
+ "tested": {
34
+ "unit": "builtins::math::trigonometry::rad2deg::tests",
35
+ "integration": null
36
+ },
37
+ "description": "`d = rad2deg(r)` converts each angle in `r` from radians to degrees using `r*180/pi`.",
38
+ "behaviors": [
39
+ "Operates element-wise on scalars, vectors, matrices, and N-D tensors.",
40
+ "Integer and logical inputs are promoted to double precision before conversion.",
41
+ "Complex inputs are scaled component-wise, matching ordinary multiplication by `180/pi`.",
42
+ "Output shape matches the input shape.",
43
+ "String inputs are unsupported and raise a builtin-scoped error."
44
+ ],
45
+ "examples": [
46
+ {
47
+ "description": "Converting a scalar angle",
48
+ "input": "d = rad2deg(pi)",
49
+ "output": "d = 180"
50
+ },
51
+ {
52
+ "description": "Converting a vector of angles",
53
+ "input": "angles = [0 pi/6 pi/4 pi/3 pi/2];\nd = rad2deg(angles)",
54
+ "output": "d = [0 30 45 60 90]"
55
+ }
56
+ ],
57
+ "faqs": [
58
+ {
59
+ "question": "Is `rad2deg(x)` equivalent to `x*180/pi`?",
60
+ "answer": "Yes. The builtin exists for readability and MATLAB compatibility."
61
+ },
62
+ {
63
+ "question": "Does `rad2deg` preserve array shape?",
64
+ "answer": "Yes. Each element is converted independently and the original shape is preserved."
65
+ }
66
+ ],
67
+ "links": [
68
+ {
69
+ "label": "deg2rad",
70
+ "url": "./deg2rad"
71
+ },
72
+ {
73
+ "label": "sin",
74
+ "url": "./sin"
75
+ },
76
+ {
77
+ "label": "cos",
78
+ "url": "./cos"
79
+ },
80
+ {
81
+ "label": "tan",
82
+ "url": "./tan"
83
+ }
84
+ ],
85
+ "source": {
86
+ "label": "`crates/runmat-runtime/src/builtins/math/trigonometry/rad2deg.rs`",
87
+ "url": "https://github.com/runmat-org/runmat/blob/main/crates/runmat-runtime/src/builtins/math/trigonometry/rad2deg.rs"
88
+ },
89
+ "key": "rad2deg",
90
+ "slug": "rad2deg",
91
+ "aliases": [],
92
+ "categoryPath": [
93
+ "math",
94
+ "trigonometry"
95
+ ]
96
+ };
97
+ export default builtinDoc;
98
+ //# sourceMappingURL=rad2deg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rad2deg.js","sourceRoot":"","sources":["../../../src/generated/built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,KAAK;YACd,KAAK,EAAE,OAAO;SACf;QACD;YACE,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,OAAO;SACf;QACD;YACE,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,OAAO;SACf;KACF;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,mEAAmE;QAC5E,KAAK,EAAE,gHAAgH;KACxH;IACD,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,SAAS;IACjB,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,MAAM;QACN,cAAc;KACf;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { BuiltinDoc } from "../../builtins.js";
2
+ declare const builtinDoc: BuiltinDoc;
3
+ export default builtinDoc;
4
+ //# sourceMappingURL=xline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xline.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/xline.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UA6CjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,50 @@
1
+ // @generated by scripts/generate-builtins.cjs
2
+ // Do not edit by hand.
3
+ const builtinDoc = {
4
+ "title": "xline",
5
+ "category": "plotting",
6
+ "keywords": [
7
+ "xline",
8
+ "vertical reference line",
9
+ "constant line",
10
+ "plot annotation"
11
+ ],
12
+ "summary": "Draw vertical reference lines on the current axes.",
13
+ "description": "`xline` adds one or more vertical reference lines to the current axes. It accepts scalar or vector x-coordinates, MATLAB line specs, labels, and common line name/value styling such as `Color`, `LineStyle`, `LineWidth`, and `DisplayName`.",
14
+ "behaviors": [
15
+ "`xline(x)` adds a vertical reference line at each coordinate in `x`.",
16
+ "Reference lines append to the current axes without replacing existing plot content.",
17
+ "Line spans follow the active axes limits, including later `xlim` and `ylim` changes.",
18
+ "The returned handle supports `get` and `set` for `Value`, `Color`, `LineWidth`, `LineStyle`, `Label`, `LabelOrientation`, `DisplayName`, and `Visible`."
19
+ ],
20
+ "examples": [
21
+ {
22
+ "description": "Add a dashed threshold line",
23
+ "input": "plot(1:10, rand(1, 10));\nxline(5, '--r', 'Threshold');",
24
+ "output": "% Adds a red dashed vertical reference line at x = 5"
25
+ },
26
+ {
27
+ "description": "Add multiple reference lines",
28
+ "input": "plot(1:10, rand(1, 10));\nxline([2 5 8], ':');",
29
+ "output": "% Adds three dotted vertical reference lines"
30
+ }
31
+ ],
32
+ "links": [
33
+ {
34
+ "label": "yline",
35
+ "url": "./yline"
36
+ },
37
+ {
38
+ "label": "plot",
39
+ "url": "./plot"
40
+ }
41
+ ],
42
+ "key": "xline",
43
+ "slug": "xline",
44
+ "aliases": [],
45
+ "categoryPath": [
46
+ "plotting"
47
+ ]
48
+ };
49
+ export default builtinDoc;
50
+ //# sourceMappingURL=xline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xline.js","sourceRoot":"","sources":["../../../src/generated/builtins/xline.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,UAAU;IACtB,UAAU,EAAE;QACV,OAAO;QACP,yBAAyB;QACzB,eAAe;QACf,iBAAiB;KAClB;IACD,SAAS,EAAE,oDAAoD;IAC/D,aAAa,EAAE,+OAA+O;IAC9P,WAAW,EAAE;QACX,sEAAsE;QACtE,qFAAqF;QACrF,sFAAsF;QACtF,yJAAyJ;KAC1J;IACD,UAAU,EAAE;QACV;YACE,aAAa,EAAE,6BAA6B;YAC5C,OAAO,EAAE,yDAAyD;YAClE,QAAQ,EAAE,sDAAsD;SACjE;QACD;YACE,aAAa,EAAE,8BAA8B;YAC7C,OAAO,EAAE,gDAAgD;YACzD,QAAQ,EAAE,8CAA8C;SACzD;KACF;IACD,OAAO,EAAE;QACP;YACE,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,SAAS;SACjB;QACD;YACE,OAAO,EAAE,MAAM;YACf,KAAK,EAAE,QAAQ;SAChB;KACF;IACD,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,OAAO;IACf,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,UAAU;KACX;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { BuiltinDoc } from "../../builtins.js";
2
+ declare const builtinDoc: BuiltinDoc;
3
+ export default builtinDoc;
4
+ //# sourceMappingURL=yline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yline.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/yline.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UA6CjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,50 @@
1
+ // @generated by scripts/generate-builtins.cjs
2
+ // Do not edit by hand.
3
+ const builtinDoc = {
4
+ "title": "yline",
5
+ "category": "plotting",
6
+ "keywords": [
7
+ "yline",
8
+ "horizontal reference line",
9
+ "constant line",
10
+ "plot annotation"
11
+ ],
12
+ "summary": "Draw horizontal reference lines on the current axes.",
13
+ "description": "`yline` adds one or more horizontal reference lines to the current axes. It accepts scalar or vector y-coordinates, MATLAB line specs, labels, and common line name/value styling such as `Color`, `LineStyle`, `LineWidth`, and `DisplayName`.",
14
+ "behaviors": [
15
+ "`yline(y)` adds a horizontal reference line at each coordinate in `y`.",
16
+ "Reference lines append to the current axes without replacing existing plot content.",
17
+ "Line spans follow the active axes limits, including later `xlim` and `ylim` changes.",
18
+ "The returned handle supports `get` and `set` for `Value`, `Color`, `LineWidth`, `LineStyle`, `Label`, `LabelOrientation`, `DisplayName`, and `Visible`."
19
+ ],
20
+ "examples": [
21
+ {
22
+ "description": "Add a zero baseline",
23
+ "input": "plot(-5:5, (-5:5).^2 - 10);\nyline(0, 'k', 'LineWidth', 1);",
24
+ "output": "% Adds a black horizontal reference line at y = 0"
25
+ },
26
+ {
27
+ "description": "Label a baseline",
28
+ "input": "plot(1:10, rand(1, 10));\nyline(0.5, ':', 'Baseline', 'LabelOrientation', 'horizontal');",
29
+ "output": "% Adds a dotted labeled horizontal reference line"
30
+ }
31
+ ],
32
+ "links": [
33
+ {
34
+ "label": "xline",
35
+ "url": "./xline"
36
+ },
37
+ {
38
+ "label": "plot",
39
+ "url": "./plot"
40
+ }
41
+ ],
42
+ "key": "yline",
43
+ "slug": "yline",
44
+ "aliases": [],
45
+ "categoryPath": [
46
+ "plotting"
47
+ ]
48
+ };
49
+ export default builtinDoc;
50
+ //# sourceMappingURL=yline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yline.js","sourceRoot":"","sources":["../../../src/generated/builtins/yline.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,UAAU;IACtB,UAAU,EAAE;QACV,OAAO;QACP,2BAA2B;QAC3B,eAAe;QACf,iBAAiB;KAClB;IACD,SAAS,EAAE,sDAAsD;IACjE,aAAa,EAAE,iPAAiP;IAChQ,WAAW,EAAE;QACX,wEAAwE;QACxE,qFAAqF;QACrF,sFAAsF;QACtF,yJAAyJ;KAC1J;IACD,UAAU,EAAE;QACV;YACE,aAAa,EAAE,qBAAqB;YACpC,OAAO,EAAE,6DAA6D;YACtE,QAAQ,EAAE,mDAAmD;SAC9D;QACD;YACE,aAAa,EAAE,kBAAkB;YACjC,OAAO,EAAE,0FAA0F;YACnG,QAAQ,EAAE,mDAAmD;SAC9D;KACF;IACD,OAAO,EAAE;QACP;YACE,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,SAAS;SACjB;QACD;YACE,OAAO,EAAE,MAAM;YACf,KAAK,EAAE,QAAQ;SAChB;KACF;IACD,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,OAAO;IACf,SAAS,EAAE,EAAE;IACb,cAAc,EAAE;QACd,UAAU;KACX;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"builtins-manifest.d.ts","sourceRoot":"","sources":["../../src/generated/builtins-manifest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE7E,eAAO,MAAM,eAAe,EAAE,oBAAoB,EAozPjD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CA4Y9D,CAAC;AAEF,eAAO,MAAM,4BAA4B,sEAC0C,CAAC"}
1
+ {"version":3,"file":"builtins-manifest.d.ts","sourceRoot":"","sources":["../../src/generated/builtins-manifest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE7E,eAAO,MAAM,eAAe,EAAE,oBAAoB,EAk4PjD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAgZ9D,CAAC;AAEF,eAAO,MAAM,4BAA4B,sEAC0C,CAAC"}
@@ -1397,6 +1397,27 @@ export const builtinManifest = [
1397
1397
  "summary": "Divide one polynomial (or 1-D sequence) by another, returning the quotient and remainder.",
1398
1398
  "exampleCount": 6
1399
1399
  },
1400
+ {
1401
+ "key": "deg2rad",
1402
+ "title": "deg2rad",
1403
+ "slug": "deg2rad",
1404
+ "aliases": [],
1405
+ "category": "math/trigonometry",
1406
+ "categoryPath": [
1407
+ "math",
1408
+ "trigonometry"
1409
+ ],
1410
+ "keywords": [
1411
+ "deg2rad",
1412
+ "degrees",
1413
+ "radians",
1414
+ "angle",
1415
+ "trigonometry",
1416
+ "elementwise"
1417
+ ],
1418
+ "summary": "Convert angles from degrees to radians.",
1419
+ "exampleCount": 2
1420
+ },
1400
1421
  {
1401
1422
  "key": "delete",
1402
1423
  "title": "delete",
@@ -5537,6 +5558,27 @@ export const builtinManifest = [
5537
5558
  "summary": "Visualize 2-D vector fields with scalable arrows, GPU-aware execution, and MATLAB `quiver` call forms.",
5538
5559
  "exampleCount": 4
5539
5560
  },
5561
+ {
5562
+ "key": "rad2deg",
5563
+ "title": "rad2deg",
5564
+ "slug": "rad2deg",
5565
+ "aliases": [],
5566
+ "category": "math/trigonometry",
5567
+ "categoryPath": [
5568
+ "math",
5569
+ "trigonometry"
5570
+ ],
5571
+ "keywords": [
5572
+ "rad2deg",
5573
+ "radians",
5574
+ "degrees",
5575
+ "angle",
5576
+ "trigonometry",
5577
+ "elementwise"
5578
+ ],
5579
+ "summary": "Convert angles from radians to degrees.",
5580
+ "exampleCount": 2
5581
+ },
5540
5582
  {
5541
5583
  "key": "rand",
5542
5584
  "title": "rand",
@@ -7911,6 +7953,24 @@ export const builtinManifest = [
7911
7953
  "summary": "Write numeric or string matrices to delimited text files with MATLAB-compatible defaults.",
7912
7954
  "exampleCount": 6
7913
7955
  },
7956
+ {
7957
+ "key": "xline",
7958
+ "title": "xline",
7959
+ "slug": "xline",
7960
+ "aliases": [],
7961
+ "category": "plotting",
7962
+ "categoryPath": [
7963
+ "plotting"
7964
+ ],
7965
+ "keywords": [
7966
+ "xline",
7967
+ "vertical reference line",
7968
+ "constant line",
7969
+ "plot annotation"
7970
+ ],
7971
+ "summary": "Draw vertical reference lines on the current axes.",
7972
+ "exampleCount": 2
7973
+ },
7914
7974
  {
7915
7975
  "key": "xor",
7916
7976
  "title": "xor",
@@ -7949,6 +8009,24 @@ export const builtinManifest = [
7949
8009
  "summary": "Extract year numbers from datetime values.",
7950
8010
  "exampleCount": 2
7951
8011
  },
8012
+ {
8013
+ "key": "yline",
8014
+ "title": "yline",
8015
+ "slug": "yline",
8016
+ "aliases": [],
8017
+ "category": "plotting",
8018
+ "categoryPath": [
8019
+ "plotting"
8020
+ ],
8021
+ "keywords": [
8022
+ "yline",
8023
+ "horizontal reference line",
8024
+ "constant line",
8025
+ "plot annotation"
8026
+ ],
8027
+ "summary": "Draw horizontal reference lines on the current axes.",
8028
+ "exampleCount": 2
8029
+ },
7952
8030
  {
7953
8031
  "key": "zeros",
7954
8032
  "title": "zeros",
@@ -8059,6 +8137,7 @@ export const builtinDocLoaders = {
8059
8137
  "datetime": () => import("./builtins/datetime.js").then((mod) => mod.default),
8060
8138
  "day": () => import("./builtins/day.js").then((mod) => mod.default),
8061
8139
  "deconv": () => import("./builtins/deconv.js").then((mod) => mod.default),
8140
+ "deg2rad": () => import("./builtins/deg2rad.js").then((mod) => mod.default),
8062
8141
  "delete": () => import("./builtins/delete.js").then((mod) => mod.default),
8063
8142
  "det": () => import("./builtins/det.js").then((mod) => mod.default),
8064
8143
  "diag": () => import("./builtins/diag.js").then((mod) => mod.default),
@@ -8263,6 +8342,7 @@ export const builtinDocLoaders = {
8263
8342
  "pwd": () => import("./builtins/pwd.js").then((mod) => mod.default),
8264
8343
  "qr": () => import("./builtins/qr.js").then((mod) => mod.default),
8265
8344
  "quiver": () => import("./builtins/quiver.js").then((mod) => mod.default),
8345
+ "rad2deg": () => import("./builtins/rad2deg.js").then((mod) => mod.default),
8266
8346
  "rand": () => import("./builtins/rand.js").then((mod) => mod.default),
8267
8347
  "randi": () => import("./builtins/randi.js").then((mod) => mod.default),
8268
8348
  "randn": () => import("./builtins/randn.js").then((mod) => mod.default),
@@ -8381,8 +8461,10 @@ export const builtinDocLoaders = {
8381
8461
  "whos": () => import("./builtins/whos.js").then((mod) => mod.default),
8382
8462
  "write": () => import("./builtins/write.js").then((mod) => mod.default),
8383
8463
  "writematrix": () => import("./builtins/writematrix.js").then((mod) => mod.default),
8464
+ "xline": () => import("./builtins/xline.js").then((mod) => mod.default),
8384
8465
  "xor": () => import("./builtins/xor.js").then((mod) => mod.default),
8385
8466
  "year": () => import("./builtins/year.js").then((mod) => mod.default),
8467
+ "yline": () => import("./builtins/yline.js").then((mod) => mod.default),
8386
8468
  "zeros": () => import("./builtins/zeros.js").then((mod) => mod.default),
8387
8469
  "zlabel": () => import("./builtins/zlabel.js").then((mod) => mod.default),
8388
8470
  };