Skip to content

Commit 3a37a61

Browse files
manvith2003kgryte
andauthored
chore: add structured package data for math/base/special/tanh
PR-URL: #8281 Ref: #7924 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent e628df5 commit 3a37a61

File tree

1 file changed

+81
-1
lines changed

1 file changed

+81
-1
lines changed

lib/node_modules/@stdlib/math/base/special/tanh/package.json

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,85 @@
6868
"angle",
6969
"polyfill",
7070
"ponyfill"
71-
]
71+
],
72+
"__stdlib__": {
73+
"scaffold": {
74+
"$schema": "math/base@v1.0",
75+
"base_alias": "tanh",
76+
"alias": "tanh",
77+
"pkg_desc": "compute the hyperbolic tangent of a double-precision floating-point number",
78+
"desc": "computes the hyperbolic tangent of a double-precision floating-point number",
79+
"short_desc": "hyperbolic tangent",
80+
"parameters": [
81+
{
82+
"name": "x",
83+
"desc": "input value (in radians)",
84+
"type": {
85+
"javascript": "number",
86+
"jsdoc": "number",
87+
"c": "double",
88+
"dtype": "float64"
89+
},
90+
"domain": [
91+
{
92+
"min": "-infinity",
93+
"max": "infinity"
94+
}
95+
],
96+
"rand": {
97+
"prng": "random/base/uniform",
98+
"parameters": [
99+
-10,
100+
10
101+
]
102+
},
103+
"example_values": [
104+
0,
105+
0.5236,
106+
0.7854,
107+
1.0472,
108+
1.5708,
109+
3.1416,
110+
4.7124,
111+
6.2832,
112+
-0.7854,
113+
-1.5708,
114+
-3.1416,
115+
5,
116+
-2,
117+
0.1,
118+
-0.1,
119+
2.3562,
120+
-2.3562,
121+
7.85398,
122+
-7.85398,
123+
10
124+
]
125+
}
126+
],
127+
"output_policy": "real_floating_point_and_generic",
128+
"returns": {
129+
"desc": "hyperbolic tangent",
130+
"type": {
131+
"javascript": "number",
132+
"jsdoc": "number",
133+
"c": "double",
134+
"dtype": "float64"
135+
}
136+
},
137+
"keywords": [
138+
"tangent",
139+
"tan",
140+
"tanh",
141+
"hyperbolic",
142+
"trig",
143+
"trigonometry",
144+
"radians",
145+
"angle"
146+
],
147+
"extra_keywords": [
148+
"math.tanh"
149+
]
150+
}
151+
}
72152
}

0 commit comments

Comments
 (0)