Socket
Socket
Sign inDemoInstall

@stdlib/math-base-special-log1p

Package Overview
Dependencies
88
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.6 to 0.1.0

CITATION.cff

2

docs/types/index.d.ts

@@ -19,3 +19,3 @@ /*

// TypeScript Version: 2.0
// TypeScript Version: 4.1

@@ -22,0 +22,0 @@ /**

@@ -50,3 +50,3 @@ /**

var log1p = require( './log1p.js' );
var log1p = require( './main.js' );

@@ -53,0 +53,0 @@

/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
* Copyright (c) 2022 The Stdlib Authors.
*

@@ -33,3 +33,2 @@ * Licensed under the Apache License, Version 2.0 (the "License");

*
*
* @private

@@ -36,0 +35,0 @@ * @param {number} x - value at which to evaluate the polynomial

{
"name": "@stdlib/math-base-special-log1p",
"version": "0.0.6",
"version": "0.1.0",
"description": "Evaluate the natural logarithm of 1+x.",

@@ -21,4 +21,6 @@ "license": "Apache-2.0",

"example": "./examples",
"include": "./include",
"lib": "./lib",
"scripts": "./scripts",
"src": "./src",
"test": "./test"

@@ -42,23 +44,32 @@ },

"dependencies": {
"@stdlib/constants-float64-exponent-bias": "^0.0.x",
"@stdlib/constants-float64-ninf": "^0.0.x",
"@stdlib/constants-float64-pinf": "^0.0.x",
"@stdlib/math-base-assert-is-nan": "^0.0.x",
"@stdlib/number-float64-base-get-high-word": "^0.0.x",
"@stdlib/number-float64-base-set-high-word": "^0.0.x"
"@stdlib/constants-float64-exponent-bias": "^0.1.0",
"@stdlib/constants-float64-ninf": "^0.1.0",
"@stdlib/constants-float64-pinf": "^0.1.0",
"@stdlib/math-base-assert-is-nan": "^0.1.0",
"@stdlib/math-base-napi-unary": "^0.1.0",
"@stdlib/number-float64-base-get-high-word": "^0.1.0",
"@stdlib/number-float64-base-set-high-word": "^0.1.0",
"@stdlib/utils-library-manifest": "^0.1.0"
},
"devDependencies": {
"@stdlib/array-base-incrspace": "^0.0.x",
"@stdlib/bench": "^0.0.x",
"@stdlib/constants-float64-eps": "^0.0.x",
"@stdlib/fs-write-file": "^0.0.x",
"@stdlib/math-base-assert-is-negative-zero": "^0.0.x",
"@stdlib/math-base-special-abs": "^0.0.x",
"@stdlib/math-base-special-ln": "^0.0.x",
"@stdlib/math-base-special-round": "^0.0.x",
"@stdlib/math-base-tools-evalpoly-compile": "^0.0.x",
"@stdlib/random-base-randu": "^0.0.x",
"@stdlib/array-base-incrspace": "^0.0.2",
"@stdlib/bench": "^0.1.0",
"@stdlib/constants-float64-eps": "^0.1.0",
"@stdlib/fs-read-file": "^0.1.0",
"@stdlib/fs-write-file": "^0.1.0",
"@stdlib/math-base-assert-is-negative-zero": "^0.1.0",
"@stdlib/math-base-special-abs": "^0.0.6",
"@stdlib/math-base-special-ln": "^0.0.6",
"@stdlib/math-base-special-round": "^0.1.0",
"@stdlib/math-base-tools-evalpoly-compile": "^0.0.8",
"@stdlib/math-base-tools-evalpoly-compile-c": "^0.0.1",
"@stdlib/random-base-randu": "^0.0.8",
"@stdlib/string-format": "^0.1.0",
"@stdlib/string-substring-after": "^0.0.2",
"@stdlib/string-substring-before": "^0.1.0",
"@stdlib/time-current-year": "^0.1.0",
"@stdlib/utils-try-require": "^0.1.0",
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
"istanbul": "^0.4.1",
"tap-spec": "5.x.x"
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
},

@@ -97,5 +108,5 @@ "engines": {

"funding": {
"type": "patreon",
"url": "https://www.patreon.com/athan"
"type": "opencollective",
"url": "https://opencollective.com/stdlib"
}
}

@@ -5,3 +5,3 @@ <!--

Copyright (c) 2018 The Stdlib Authors.
Copyright (c) 2022 The Stdlib Authors.

@@ -22,2 +22,13 @@ Licensed under the Apache License, Version 2.0 (the "License");

<details>
<summary>
About stdlib...
</summary>
<p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p>
<p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p>
<p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p>
<p>To join us in bringing numerical computing to the web, get started by checking us out on <a href="https://github.com/stdlib-js/stdlib">GitHub</a>, and please consider <a href="https://opencollective.com/stdlib">financially supporting stdlib</a>. We greatly appreciate your continued support!</p>
</details>
# log1p

@@ -106,2 +117,92 @@

<!-- C interface documentation. -->
* * *
<section class="c">
## C APIs
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
<section class="intro">
</section>
<!-- /.intro -->
<!-- C usage documentation. -->
<section class="usage">
### Usage
```c
#include "stdlib/math/base/special/log1p.h"
```
#### stdlib_base_log1p( x )
Evaluates the [natural logarithm][@stdlib/math/base/special/ln] of `1+x`.
```c
double out = stdlib_base_log1p( 4.0 );
// returns ~1.609
out = stdlib_base_log1p( -1.0 );
// returns -Infinity
```
The function accepts the following arguments:
- **x**: `[in] double` input value.
```c
double stdlib_base_log1p( const double x );
```
</section>
<!-- /.usage -->
<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
<section class="notes">
</section>
<!-- /.notes -->
<!-- C API usage examples. -->
<section class="examples">
### Examples
```c
#include "stdlib/math/base/special/log1p.h"
#include <stdlib.h>
#include <stdio.h>
int main( void ) {
double x;
double v;
int i;
for ( i = 0; i < 100; i++ ) {
x = ( (double)rand() / (double)RAND_MAX ) * 100.0;
v = stdlib_base_log1p( x );
printf( "log1p(%lf) = %lf\n", x, v );
}
}
```
</section>
<!-- /.examples -->
</section>
<!-- /.c -->
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->

@@ -115,4 +216,4 @@

- <span class="package-name">[`@stdlib/math/base/special/ln`][@stdlib/math/base/special/ln]</span><span class="delimiter">: </span><span class="description">natural logarithm.</span>
- <span class="package-name">[`@stdlib/math/base/special/log`][@stdlib/math/base/special/log]</span><span class="delimiter">: </span><span class="description">base `b` logarithm.</span>
- <span class="package-name">[`@stdlib/math-base/special/ln`][@stdlib/math/base/special/ln]</span><span class="delimiter">: </span><span class="description">natural logarithm.</span>
- <span class="package-name">[`@stdlib/math-base/special/log`][@stdlib/math/base/special/log]</span><span class="delimiter">: </span><span class="description">base `b` logarithm.</span>

@@ -142,10 +243,5 @@ </section>

## License
See [LICENSE][stdlib-license].
## Copyright
Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].

@@ -163,4 +259,4 @@ </section>

[test-image]: https://github.com/stdlib-js/math-base-special-log1p/actions/workflows/test.yml/badge.svg
[test-url]: https://github.com/stdlib-js/math-base-special-log1p/actions/workflows/test.yml
[test-image]: https://github.com/stdlib-js/math-base-special-log1p/actions/workflows/test.yml/badge.svg?branch=v0.1.0
[test-url]: https://github.com/stdlib-js/math-base-special-log1p/actions/workflows/test.yml?query=branch:v0.1.0

@@ -177,2 +273,9 @@ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-special-log1p/main.svg

[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
[chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
[stdlib]: https://github.com/stdlib-js/stdlib
[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
[umd]: https://github.com/umdjs/umd

@@ -184,12 +287,4 @@ [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules

[esm-url]: https://github.com/stdlib-js/math-base-special-log1p/tree/esm
[branches-url]: https://github.com/stdlib-js/math-base-special-log1p/blob/main/branches.md
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
[chat-url]: https://gitter.im/stdlib-js/stdlib/
[stdlib]: https://github.com/stdlib-js/stdlib
[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/math-base-special-log1p/main/LICENSE
<!-- <related-links> -->

@@ -196,0 +291,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc