Skip to content

Commit 81bd048

Browse files
committed
Update license header and resolve lint errors
1 parent a94e7e7 commit 81bd048

File tree

1 file changed

+16
-21
lines changed
  • lib/node_modules/@stdlib/math/base/special/cos/scripts/cephes

1 file changed

+16
-21
lines changed

lib/node_modules/@stdlib/math/base/special/cos/scripts/cephes/index.js

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,24 @@
1414
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
17-
*/
18-
19-
'use strict';
20-
21-
/*
22-
* The original C code, long comment, copyright, license, and constants are from [Cephes]{@link http://www.netlib.org/cephes/cmath.tgz}.
2317
*
24-
* The implementation follows the original, but has been modified for JavaScript.
25-
*/
26-
27-
/*
28-
* COPYRIGHT
2918
*
30-
* Cephes Math Library Release 2.8: June, 2000
31-
* Copyright 1984, 1987, 1989, 1992, 2000 by Stephen L. Moshier
19+
* ## Notice
3220
*
21+
* The original C code, long comment, copyright, license, and constants are from [Cephes]{@link http://www.netlib.org/cephes}. The implementation follows the original, but has been modified for JavaScript.
3322
*
34-
* LICENSE
23+
* ```text
24+
* Copyright 1985, 1995, 2000 by Stephen L. Moshier
3525
*
36-
* The README [file]{@link http://netlib.sandia.gov/cephes/} reads:
37-
* > Some software in this archive may be from the book _Methods and Programs for Mathematical Functions_ (Prentice-Hall or Simon & Schuster International, 1989) or from the Cephes Mathematical Library, a commercial product. In either event, it is copyrighted by the author. What you see here may be used freely but it comes with no support or guarantee.
38-
* > The two known misprints in the book are repaired here in the source listings for the gamma function and the incomplete beta integral.
39-
* > Stephen L. Moshier
40-
* > moshier@na-net.ornl.gov
26+
* Some software in this archive may be from the book _Methods and Programs for Mathematical Functions_ (Prentice-Hall or Simon & Schuster International, 1989) or from the Cephes Mathematical Library, a commercial product. In either event, it is copyrighted by the author. What you see here may be used freely but it comes with no support or guarantee.
27+
*
28+
* Stephen L. Moshier
29+
* moshier@na-net.ornl.gov
30+
* ```
4131
*/
4232

33+
'use strict';
34+
4335
// MODULES //
4436

4537
var evalpoly = require( '@stdlib/math/base/tools/evalpoly' ).factory; // TODO: replace with compiled polyval functions
@@ -91,12 +83,15 @@ var polyvalCOS = evalpoly( COS_COEF );
9183
* @example
9284
* var v = cos( 0.0 );
9385
* // returns 1.0
86+
*
9487
* @example
95-
* var v = cos( Math.PI/4.0 );
88+
* var v = cos( 3.14/4.0 );
9689
* // returns ~0.707
90+
*
9791
* @example
98-
* var v = cos( -Math.PI/6.0 );
92+
* var v = cos( -3.14/6.0 );
9993
* // returns ~0.866
94+
*
10095
* @example
10196
* var v = cos( NaN );
10297
* // returns NaN

0 commit comments

Comments
 (0)