File tree Expand file tree Collapse file tree 1 file changed +141
-1
lines changed
lib/node_modules/@stdlib/math/base/special/cabs2 Expand file tree Collapse file tree 1 file changed +141
-1
lines changed Original file line number Diff line number Diff line change 6565 " complex" ,
6666 " cmplx" ,
6767 " number"
68- ]
68+ ],
69+ "__stdlib__" : {
70+ "scaffold" : {
71+ "$schema" :
" math/[email protected] " ,
72+ "base_alias" : " abs2" ,
73+ "alias" : " cabs2" ,
74+ "pkg_desc" : " compute the squared absolute value of a complex number" ,
75+ "desc" : " computes the squared absolute value of a complex number" ,
76+ "short_desc" : " squared absolute value" ,
77+ "parameters" : [
78+ {
79+ "name" : " z" ,
80+ "desc" : " input value" ,
81+ "type" : {
82+ "javascript" : " Complex128" ,
83+ "jsdoc" : " Complex128" ,
84+ "c" : " stdlib_complex128_t" ,
85+ "dtype" : " complex128"
86+ },
87+ "domain" : null ,
88+ "rand" : {
89+ "prng" : " random/base/uniform" ,
90+ "parameters" : [
91+ [
92+ -10 ,
93+ 10
94+ ],
95+ [
96+ -10 ,
97+ 10
98+ ]
99+ ]
100+ },
101+ "example_values" : [
102+ {
103+ "re" : -3.14 ,
104+ "im" : -1.5
105+ },
106+ {
107+ "re" : 0 ,
108+ "im" : 0
109+ },
110+ {
111+ "re" : -1.5 ,
112+ "im" : 2.5
113+ },
114+ {
115+ "re" : 2.5 ,
116+ "im" : -1.5
117+ },
118+ {
119+ "re" : 0 ,
120+ "im" : -3.7
121+ },
122+ {
123+ "re" : 4.2 ,
124+ "im" : 0
125+ },
126+ {
127+ "re" : 21.2 ,
128+ "im" : 3
129+ },
130+ {
131+ "re" : 11 ,
132+ "im" : -5
133+ },
134+ {
135+ "re" : 33 ,
136+ "im" : -14.67
137+ },
138+ {
139+ "re" : -42 ,
140+ "im" : 9.3
141+ },
142+ {
143+ "re" : -3 ,
144+ "im" : 3
145+ },
146+ {
147+ "re" : 73 ,
148+ "im" : 31
149+ },
150+ {
151+ "re" : -2.45 ,
152+ "im" : 1.23
153+ },
154+ {
155+ "re" : 2.45 ,
156+ "im" : -1.23
157+ },
158+ {
159+ "re" : 1.77 ,
160+ "im" : -3.14
161+ },
162+ {
163+ "re" : -7.5 ,
164+ "im" : 8.2
165+ },
166+ {
167+ "re" : 5.5 ,
168+ "im" : -12.3
169+ },
170+ {
171+ "re" : -15.8 ,
172+ "im" : 0.4
173+ },
174+ {
175+ "re" : 0.99 ,
176+ "im" : -0.99
177+ },
178+ {
179+ "re" : 0.43 ,
180+ "im" : 0.91
181+ }
182+ ]
183+ }
184+ ],
185+ "output_policy" : " real_floating_point_and_generic" ,
186+ "returns" : {
187+ "desc" : " absolute value" ,
188+ "type" : {
189+ "javascript" : " number" ,
190+ "jsdoc" : " number" ,
191+ "c" : " double" ,
192+ "dtype" : " float64"
193+ }
194+ },
195+ "keywords" : [
196+ " abs2" ,
197+ " squared" ,
198+ " absolute" ,
199+ " magnitude" ,
200+ " distance" ,
201+ " complex" ,
202+ " cmplx"
203+ ],
204+ "extra_keywords" : [
205+ " math.abs"
206+ ]
207+ }
208+ }
69209}
You can’t perform that action at this time.
0 commit comments