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.
2020
2121# expf
2222
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.
2424
2525<section class =" intro " >
2626
@@ -32,11 +32,6 @@ The natural [exponential function][exponential-function] is defined as
3232y = e^x
3333```
3434
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-
4035<!-- </equation> -->
4136
4237where ` e ` is [ Euler's] [ @stdlib/constants/float32/e ] number.
@@ -83,18 +78,15 @@ v = expf( NaN );
8378
8479``` javascript
8580var uniform = require ( ' @stdlib/random/array/uniform' );
81+ var logEachMap = require ( ' @stdlib/console/log-each-map' );
8682var expf = require ( ' @stdlib/math/base/special/expf' );
8783
8884var opts = {
8985 ' dtype' : ' float32'
9086};
91-
9287var x = uniform ( 100 , - 50.0 , 50.0 , opts );
93- var i;
9488
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 );
9890```
9991
10092</section >
You can’t perform that action at this time.
0 commit comments