Skip to content

Commit 7e5fe7c

Browse files
committed
update changelog; add more copyright notices
1 parent e979c7d commit 7e5fe7c

File tree

4 files changed

+80
-0
lines changed

4 files changed

+80
-0
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,29 @@ This project adheres to [Semantic Versioning](http://semver.org/).
77

88
### Added
99

10+
- acosf
11+
- asin
12+
- asinf
13+
- atan
14+
- atan2
1015
- atan2f
16+
- atanf
1117
- cos
18+
- cosf
19+
- cosh
1220
- coshf
21+
- exp2
22+
- expm1
23+
- expm1f
24+
- expo2
1325
- fmaf
26+
- pow
1427
- sin
28+
- sinf
1529
- sinh
1630
- sinhf
1731
- tan
32+
- tanf
1833
- tanh
1934
- tanhf
2035

src/math/atan.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/* origin: FreeBSD /usr/src/lib/msun/src/s_atan.c */
2+
/*
3+
* ====================================================
4+
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
5+
*
6+
* Developed at SunPro, a Sun Microsystems, Inc. business.
7+
* Permission to use, copy, modify, and distribute this
8+
* software is freely granted, provided that this notice
9+
* is preserved.
10+
* ====================================================
11+
*/
112
/* atan(x)
213
* Method
314
* 1. Reduce x to positive by atan(x) = -atan(-x).

src/math/atan2.rs

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
/* origin: FreeBSD /usr/src/lib/msun/src/e_atan2.c */
2+
/*
3+
* ====================================================
4+
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
5+
*
6+
* Developed at SunSoft, a Sun Microsystems, Inc. business.
7+
* Permission to use, copy, modify, and distribute this
8+
* software is freely granted, provided that this notice
9+
* is preserved.
10+
* ====================================================
11+
*
12+
*/
13+
/* atan2(y,x)
14+
* Method :
15+
* 1. Reduce y to positive by atan2(y,x)=-atan2(-y,x).
16+
* 2. Reduce x to positive by (if x and y are unexceptional):
17+
* ARG (x+iy) = arctan(y/x) ... if x > 0,
18+
* ARG (x+iy) = pi - arctan[y/(-x)] ... if x < 0,
19+
*
20+
* Special cases:
21+
*
22+
* ATAN2((anything), NaN ) is NaN;
23+
* ATAN2(NAN , (anything) ) is NaN;
24+
* ATAN2(+-0, +(anything but NaN)) is +-0 ;
25+
* ATAN2(+-0, -(anything but NaN)) is +-pi ;
26+
* ATAN2(+-(anything but 0 and NaN), 0) is +-pi/2;
27+
* ATAN2(+-(anything but INF and NaN), +INF) is +-0 ;
28+
* ATAN2(+-(anything but INF and NaN), -INF) is +-pi;
29+
* ATAN2(+-INF,+INF ) is +-pi/4 ;
30+
* ATAN2(+-INF,-INF ) is +-3pi/4;
31+
* ATAN2(+-INF, (anything but,0,NaN, and INF)) is +-pi/2;
32+
*
33+
* Constants:
34+
* The hexadecimal values are the intended ones for the following
35+
* constants. The decimal values may be used, provided that the
36+
* compiler will convert from decimal to binary accurately enough
37+
* to produce the hexadecimal values shown.
38+
*/
39+
140
use super::atan;
241
use super::fabs;
342

src/math/atan2f.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/* origin: FreeBSD /usr/src/lib/msun/src/e_atan2f.c */
2+
/*
3+
* Conversion to float by Ian Lance Taylor, Cygnus Support, [email protected].
4+
*/
5+
/*
6+
* ====================================================
7+
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
8+
*
9+
* Developed at SunPro, a Sun Microsystems, Inc. business.
10+
* Permission to use, copy, modify, and distribute this
11+
* software is freely granted, provided that this notice
12+
* is preserved.
13+
* ====================================================
14+
*/
15+
116
use super::atanf;
217
use super::fabsf;
318

0 commit comments

Comments
 (0)