@danielsimonjr/mathts-trigonometry 0.1.0
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/README.md +23 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +45 -0
- package/package.json +59 -0
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# @danielsimonjr/mathts-trigonometry
|
|
2
|
+
|
|
3
|
+
Standalone trigonometry for [MathTS](https://github.com/danielsimonjr/mathts).
|
|
4
|
+
|
|
5
|
+
A focused entry point over the `trigonometry` typed-function domain in
|
|
6
|
+
[`@danielsimonjr/mathts-functions`](https://www.npmjs.com/package/@danielsimonjr/mathts-functions).
|
|
7
|
+
The implementation is re-exported, not duplicated. These are MathTS typed
|
|
8
|
+
functions (polymorphic dispatch across number / Complex / Fraction / BigNumber /
|
|
9
|
+
Matrix where supported).
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npm install @danielsimonjr/mathts-trigonometry
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## What it exports
|
|
18
|
+
|
|
19
|
+
`sin`, `cos`, `tan`, `csc`, `sec`, `cot`, `asin`, `acos`, `atan`, `atan2`, `acsc`, `asec`, `acot`, `asinh`, `acosh`, `atanh`, `toRadians`, `toDegrees`, `hypot` (plus the `typedTrigonometry` bundle).
|
|
20
|
+
|
|
21
|
+
## License
|
|
22
|
+
|
|
23
|
+
MIT (c) Daniel Simon Jr.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { acos, acosh, acot, acsc, asec, asin, asinh, atan, atan2, atanh, cos, cot, csc, hypot, sec, sin, tan, toDegrees, toRadians, typedTrigonometry } from '@danielsimonjr/mathts-functions';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import {
|
|
3
|
+
sin,
|
|
4
|
+
cos,
|
|
5
|
+
tan,
|
|
6
|
+
csc,
|
|
7
|
+
sec,
|
|
8
|
+
cot,
|
|
9
|
+
asin,
|
|
10
|
+
acos,
|
|
11
|
+
atan,
|
|
12
|
+
atan2,
|
|
13
|
+
acsc,
|
|
14
|
+
asec,
|
|
15
|
+
acot,
|
|
16
|
+
asinh,
|
|
17
|
+
acosh,
|
|
18
|
+
atanh,
|
|
19
|
+
toRadians,
|
|
20
|
+
toDegrees,
|
|
21
|
+
hypot,
|
|
22
|
+
typedTrigonometry
|
|
23
|
+
} from "@danielsimonjr/mathts-functions";
|
|
24
|
+
export {
|
|
25
|
+
acos,
|
|
26
|
+
acosh,
|
|
27
|
+
acot,
|
|
28
|
+
acsc,
|
|
29
|
+
asec,
|
|
30
|
+
asin,
|
|
31
|
+
asinh,
|
|
32
|
+
atan,
|
|
33
|
+
atan2,
|
|
34
|
+
atanh,
|
|
35
|
+
cos,
|
|
36
|
+
cot,
|
|
37
|
+
csc,
|
|
38
|
+
hypot,
|
|
39
|
+
sec,
|
|
40
|
+
sin,
|
|
41
|
+
tan,
|
|
42
|
+
toDegrees,
|
|
43
|
+
toRadians,
|
|
44
|
+
typedTrigonometry
|
|
45
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@danielsimonjr/mathts-trigonometry",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Standalone trigonometric functions for MathTS, re-exported as a focused package",
|
|
5
|
+
"author": "Daniel Simon Jr.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"module": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"README.md"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsup src/index.ts --format esm --dts --clean",
|
|
23
|
+
"dev": "tsup src/index.ts --format esm --dts --watch",
|
|
24
|
+
"test": "vitest run",
|
|
25
|
+
"test:watch": "vitest",
|
|
26
|
+
"test:coverage": "vitest run --coverage",
|
|
27
|
+
"typecheck": "tsc --noEmit",
|
|
28
|
+
"lint": "eslint src --ext .ts",
|
|
29
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
30
|
+
"clean": "rm -rf dist",
|
|
31
|
+
"build:prod": "tsup src/index.ts --format esm --dts --clean --minify --treeshake"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@danielsimonjr/mathts-functions": "0.2.4",
|
|
35
|
+
"typed-function": "^4.0.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "^25.5.2",
|
|
39
|
+
"tsup": "^8.0.0",
|
|
40
|
+
"typescript": "^5.3.0",
|
|
41
|
+
"vitest": "^4.1.5"
|
|
42
|
+
},
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public"
|
|
45
|
+
},
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "https://github.com/danielsimonjr/mathts",
|
|
49
|
+
"directory": "trigonometry"
|
|
50
|
+
},
|
|
51
|
+
"keywords": [
|
|
52
|
+
"math",
|
|
53
|
+
"typescript",
|
|
54
|
+
"trigonometry",
|
|
55
|
+
"sin",
|
|
56
|
+
"cos",
|
|
57
|
+
"tan"
|
|
58
|
+
]
|
|
59
|
+
}
|