@thi.ng/dual-algebra 1.0.17 → 1.0.20

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-07-21T08:21:58Z
3
+ - **Last updated**: 2025-08-04T09:13:01Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 209 standalone projects, maintained as part
10
+ > This is one of 210 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
package/ops.d.ts CHANGED
@@ -20,21 +20,21 @@ export declare const $: (r: number, i?: number) => number[];
20
20
  * @param r -
21
21
  * @param i -
22
22
  */
23
- export declare const $2: (r: number, i?: number) => import("@thi.ng/api").NumericArray;
23
+ export declare const $2: (r: number, i?: number) => Dual;
24
24
  /**
25
25
  * Creates a 3-dual number of `r`. Syntax sugar for {@link dual}.
26
26
  *
27
27
  * @param r -
28
28
  * @param i -
29
29
  */
30
- export declare const $3: (r: number, i?: number) => import("@thi.ng/api").NumericArray;
30
+ export declare const $3: (r: number, i?: number) => Dual;
31
31
  /**
32
32
  * Creates a 4-dual number of `r`. Syntax sugar for {@link dual}.
33
33
  *
34
34
  * @param r -
35
35
  * @param i -
36
36
  */
37
- export declare const $4: (r: number, i?: number) => import("@thi.ng/api").NumericArray;
37
+ export declare const $4: (r: number, i?: number) => Dual;
38
38
  export declare const defOp: <T extends Function>(single: T, multi: T, dispatch?: number) => T;
39
39
  export declare const add: Op2;
40
40
  export declare const sub: Op2;
@@ -57,7 +57,7 @@ export declare const atan: Op1;
57
57
  * @param b -
58
58
  * @param t -
59
59
  */
60
- export declare const mix: (a: Dual, b: Dual, t: Dual) => import("@thi.ng/api").NumericArray;
60
+ export declare const mix: (a: Dual, b: Dual, t: Dual) => Dual;
61
61
  /**
62
62
  * Higher order function. Takes a 2-multivariate {@link Op2} and returns new
63
63
  * function which takes two real numbers `x` and `y` representing variables in
@@ -73,17 +73,17 @@ export declare const mix: (a: Dual, b: Dual, t: Dual) => import("@thi.ng/api").N
73
73
  *
74
74
  * @param fn -
75
75
  */
76
- export declare const evalFn2: (fn: Op2) => (x: number, y: number) => import("@thi.ng/api").NumericArray;
76
+ export declare const evalFn2: (fn: Op2) => (x: number, y: number) => Dual;
77
77
  /**
78
78
  * Same as {@link evalFn2}, but 3-multivariate functions.
79
79
  *
80
80
  * @param fn -
81
81
  */
82
- export declare const evalFn3: (fn: Op3) => (x: number, y: number, z: number) => import("@thi.ng/api").NumericArray;
82
+ export declare const evalFn3: (fn: Op3) => (x: number, y: number, z: number) => Dual;
83
83
  /**
84
84
  * Same as {@link evalFn4}, but 4-multivariate functions.
85
85
  *
86
86
  * @param fn -
87
87
  */
88
- export declare const evalFn4: (fn: Op4) => (x: number, y: number, z: number, w: number) => import("@thi.ng/api").NumericArray;
88
+ export declare const evalFn4: (fn: Op4) => (x: number, y: number, z: number, w: number) => Dual;
89
89
  //# sourceMappingURL=ops.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/dual-algebra",
3
- "version": "1.0.17",
3
+ "version": "1.0.20",
4
4
  "description": "Multivariate dual number algebra, automatic differentiation",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -39,12 +39,12 @@
39
39
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@thi.ng/api": "^8.11.32"
42
+ "@thi.ng/api": "^8.12.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "esbuild": "^0.25.8",
46
- "typedoc": "^0.28.7",
47
- "typescript": "^5.8.3"
46
+ "typedoc": "^0.28.9",
47
+ "typescript": "^5.9.2"
48
48
  },
49
49
  "keywords": [
50
50
  "algebra",
@@ -93,5 +93,5 @@
93
93
  "status": "alpha",
94
94
  "year": 2020
95
95
  },
96
- "gitHead": "11747c482773d3da03c8b7848b25a56251ccd759\n"
96
+ "gitHead": "0bcedf8d1dd4f30cd06bb2c668599628f2f0141e\n"
97
97
  }
package/poly.d.ts CHANGED
@@ -50,7 +50,7 @@ export declare const cubicS: FnU5<number, Dual>;
50
50
  * @param d -
51
51
  * @param e -
52
52
  */
53
- export declare const quartic: (x: Dual, a: Dual, b: Dual, c: Dual, d: Dual, e: Dual) => import("@thi.ng/api").NumericArray;
53
+ export declare const quartic: (x: Dual, a: Dual, b: Dual, c: Dual, d: Dual, e: Dual) => Dual;
54
54
  /**
55
55
  * Same as {@link quartic}, but for real/scalar inputs. `x` is treated as
56
56
  * variable `x+1ε`, the rest as `n+0ε`.