@thi.ng/dual-algebra 0.4.65 → 0.4.67

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**: 2024-03-13T14:04:31Z
3
+ - **Last updated**: 2024-04-08T14:59:29Z
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 190 standalone projects, maintained as part
10
+ > This is one of 191 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
  >
@@ -130,7 +130,13 @@ are suffixed with `S` (for "scalar"): `quadraticS`, `cubicS` and `quarticS`...
130
130
  yarn add @thi.ng/dual-algebra
131
131
  ```
132
132
 
133
- ES module import:
133
+ ESM import:
134
+
135
+ ```ts
136
+ import * as da from "@thi.ng/dual-algebra";
137
+ ```
138
+
139
+ Browser ESM import:
134
140
 
135
141
  ```html
136
142
  <script type="module" src="https://cdn.skypack.dev/@thi.ng/dual-algebra"></script>
@@ -141,7 +147,7 @@ ES module import:
141
147
  For Node.js REPL:
142
148
 
143
149
  ```js
144
- const dualAlgebra = await import("@thi.ng/dual-algebra");
150
+ const da = await import("@thi.ng/dual-algebra");
145
151
  ```
146
152
 
147
153
  Package sizes (brotli'd, pre-treeshake): ESM: 991 bytes
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/typedarray").NumericArray;
23
+ export declare const $2: (r: number, i?: number) => import("@thi.ng/api").NumericArray;
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/typedarray").NumericArray;
30
+ export declare const $3: (r: number, i?: number) => import("@thi.ng/api").NumericArray;
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/typedarray").NumericArray;
37
+ export declare const $4: (r: number, i?: number) => import("@thi.ng/api").NumericArray;
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/typedarray").NumericArray;
60
+ export declare const mix: (a: Dual, b: Dual, t: Dual) => import("@thi.ng/api").NumericArray;
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/typ
73
73
  *
74
74
  * @param fn -
75
75
  */
76
- export declare const evalFn2: (fn: Op2) => (x: number, y: number) => import("@thi.ng/api/typedarray").NumericArray;
76
+ export declare const evalFn2: (fn: Op2) => (x: number, y: number) => import("@thi.ng/api").NumericArray;
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/typedarray").NumericArray;
82
+ export declare const evalFn3: (fn: Op3) => (x: number, y: number, z: number) => import("@thi.ng/api").NumericArray;
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/typedarray").NumericArray;
88
+ export declare const evalFn4: (fn: Op4) => (x: number, y: number, z: number, w: number) => import("@thi.ng/api").NumericArray;
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": "0.4.65",
3
+ "version": "0.4.67",
4
4
  "description": "Multivariate dual number algebra, automatic differentiation",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,14 +36,14 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.9.30"
39
+ "@thi.ng/api": "^8.10.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@microsoft/api-extractor": "^7.42.3",
43
- "esbuild": "^0.20.1",
42
+ "@microsoft/api-extractor": "^7.43.0",
43
+ "esbuild": "^0.20.2",
44
44
  "rimraf": "^5.0.5",
45
45
  "typedoc": "^0.25.12",
46
- "typescript": "^5.4.2"
46
+ "typescript": "^5.4.3"
47
47
  },
48
48
  "keywords": [
49
49
  "algebra",
@@ -92,5 +92,5 @@
92
92
  "status": "alpha",
93
93
  "year": 2020
94
94
  },
95
- "gitHead": "7f3fcbd6c0462b0ce45afa141fe163d1f297fd51\n"
95
+ "gitHead": "85ac4bd4d6d89f8e3689e2863d5bea0cecdb371c\n"
96
96
  }