@stdlib/math-base-special-exp 0.0.6 → 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/CITATION.cff +30 -0
- package/LICENSE +3 -262
- package/NOTICE +1 -1
- package/README.md +119 -24
- package/dist/index.d.ts +3 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +7 -0
- package/docs/types/index.d.ts +1 -1
- package/include/stdlib/math/base/special/exp.h +38 -0
- package/include.gypi +53 -0
- package/lib/expmulti.js +31 -1
- package/lib/index.js +2 -2
- package/lib/{exp.js → main.js} +33 -5
- package/lib/native.js +58 -0
- package/lib/polyval_p.js +1 -2
- package/manifest.json +84 -0
- package/package.json +26 -15
- package/src/addon.c +24 -0
- package/src/main.c +253 -0
- package/docs/repl.txt +0 -28
- package/docs/types/test.ts +0 -44
package/docs/repl.txt
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
{{alias}}( x )
|
|
3
|
-
Evaluates the natural exponential function.
|
|
4
|
-
|
|
5
|
-
Parameters
|
|
6
|
-
----------
|
|
7
|
-
x: number
|
|
8
|
-
Input value.
|
|
9
|
-
|
|
10
|
-
Returns
|
|
11
|
-
-------
|
|
12
|
-
y: number
|
|
13
|
-
Function value.
|
|
14
|
-
|
|
15
|
-
Examples
|
|
16
|
-
--------
|
|
17
|
-
> var y = {{alias}}( 4.0 )
|
|
18
|
-
~54.5982
|
|
19
|
-
> y = {{alias}}( -9.0 )
|
|
20
|
-
~1.234e-4
|
|
21
|
-
> y = {{alias}}( 0.0 )
|
|
22
|
-
1.0
|
|
23
|
-
> y = {{alias}}( NaN )
|
|
24
|
-
NaN
|
|
25
|
-
|
|
26
|
-
See Also
|
|
27
|
-
--------
|
|
28
|
-
|
package/docs/types/test.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @license Apache-2.0
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) 2019 The Stdlib Authors.
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
* you may not use this file except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
import exp = require( './index' );
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
// TESTS //
|
|
23
|
-
|
|
24
|
-
// The function returns a number...
|
|
25
|
-
{
|
|
26
|
-
exp( 0.5 ); // $ExpectType number
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// The function does not compile if provided a value other than a number...
|
|
30
|
-
{
|
|
31
|
-
exp( true ); // $ExpectError
|
|
32
|
-
exp( false ); // $ExpectError
|
|
33
|
-
exp( null ); // $ExpectError
|
|
34
|
-
exp( undefined ); // $ExpectError
|
|
35
|
-
exp( '5' ); // $ExpectError
|
|
36
|
-
exp( [] ); // $ExpectError
|
|
37
|
-
exp( {} ); // $ExpectError
|
|
38
|
-
exp( ( x: number ): number => x ); // $ExpectError
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// The function does not compile if provided insufficient arguments...
|
|
42
|
-
{
|
|
43
|
-
exp(); // $ExpectError
|
|
44
|
-
}
|