File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
lib/node_modules/@stdlib/math/base/special/expf Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ limitations under the License.
20
20
21
21
# expf
22
22
23
- > Evaluate the natural [ exponential function] [ exponential-function ] for a single-precision floating-point number.
23
+ > Natural [ exponential function] [ exponential-function ] for a single-precision floating-point number.
24
24
25
25
<section class =" intro " >
26
26
@@ -32,11 +32,6 @@ The natural [exponential function][exponential-function] is defined as
32
32
y = e^x
33
33
```
34
34
35
- <!-- <div class="equation" align="center" data-raw-text="y = e^x" data-equation="eq:natural_exponential_function">
36
- <img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@117273e7c4f27b0835723c2940d9675af0e14cb7/lib/node_modules/@stdlib/math/base/special/expf/docs/img/equation_natural_exponential_function.svg" alt="Natural exponential function definition">
37
- <br>
38
- </div> -->
39
-
40
35
<!-- </equation> -->
41
36
42
37
where ` e ` is [ Euler's] [ @stdlib/constants/float32/e ] number.
@@ -83,18 +78,15 @@ v = expf( NaN );
83
78
84
79
``` javascript
85
80
var uniform = require ( ' @stdlib/random/array/uniform' );
81
+ var logEachMap = require ( ' @stdlib/console/log-each-map' );
86
82
var expf = require ( ' @stdlib/math/base/special/expf' );
87
83
88
84
var opts = {
89
85
' dtype' : ' float32'
90
86
};
91
-
92
87
var x = uniform ( 100 , - 50.0 , 50.0 , opts );
93
- var i;
94
88
95
- for ( i = 0 ; i < 100 ; i++ ) {
96
- console .log ( ' e^%f = %f' , x[ i ], expf ( x[ i ] ) );
97
- }
89
+ logEachMap ( ' e^%0.4f = %0.4f' , x, expf );
98
90
```
99
91
100
92
</section >
You can’t perform that action at this time.
0 commit comments