Skip to content

Commit 6e932df

Browse files
committed
docs: update function description
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 4fe3545 commit 6e932df

File tree

1 file changed

+3
-11
lines changed
  • lib/node_modules/@stdlib/math/base/special/expf

1 file changed

+3
-11
lines changed

lib/node_modules/@stdlib/math/base/special/expf/README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff 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
3232
y = 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

4237
where `e` is [Euler's][@stdlib/constants/float32/e] number.
@@ -83,18 +78,15 @@ v = expf( NaN );
8378

8479
```javascript
8580
var uniform = require( '@stdlib/random/array/uniform' );
81+
var logEachMap = require( '@stdlib/console/log-each-map' );
8682
var expf = require( '@stdlib/math/base/special/expf' );
8783

8884
var opts = {
8985
'dtype': 'float32'
9086
};
91-
9287
var 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>

0 commit comments

Comments
 (0)