File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
lib/node_modules/@stdlib/math/base/special/ccis Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 40
40
" @stdlib/complex/float64/ctor" ,
41
41
" @stdlib/complex/float64/reim" ,
42
42
" @stdlib/math/base/special/exp" ,
43
- " @stdlib/math/base/special/cos" ,
44
- " @stdlib/math/base/special/sin"
43
+ " @stdlib/math/base/special/sincos"
45
44
]
46
45
},
47
46
{
58
57
" @stdlib/complex/float64/ctor" ,
59
58
" @stdlib/complex/float64/reim" ,
60
59
" @stdlib/math/base/special/exp" ,
61
- " @stdlib/math/base/special/cos" ,
62
- " @stdlib/math/base/special/sin"
60
+ " @stdlib/math/base/special/sincos"
63
61
]
64
62
},
65
63
{
76
74
" @stdlib/complex/float64/ctor" ,
77
75
" @stdlib/complex/float64/reim" ,
78
76
" @stdlib/math/base/special/exp" ,
79
- " @stdlib/math/base/special/cos" ,
80
- " @stdlib/math/base/special/sin"
77
+ " @stdlib/math/base/special/sincos"
81
78
]
82
79
}
83
80
]
Original file line number Diff line number Diff line change 20
20
#include "stdlib/complex/float64/ctor.h"
21
21
#include "stdlib/complex/float64/reim.h"
22
22
#include "stdlib/math/base/special/exp.h"
23
- #include "stdlib/math/base/special/sin.h"
24
- #include "stdlib/math/base/special/cos.h"
23
+ #include "stdlib/math/base/special/sincos.h"
25
24
26
25
/**
27
26
* Evaluates the cis function for a double-precision complex floating-point number.
@@ -68,9 +67,7 @@ stdlib_complex128_t stdlib_base_ccis( const stdlib_complex128_t z ) {
68
67
69
68
stdlib_complex128_reim ( z , & re , & im );
70
69
71
- // TODO: replace with stdlib/math/base/special/sincos
72
- y = stdlib_base_sin ( re );
73
- x = stdlib_base_cos ( re );
70
+ stdlib_base_sincos ( re , & y , & x );
74
71
if ( im != 0.0 ) {
75
72
e = stdlib_base_exp ( - im );
76
73
y *= e ;
You can’t perform that action at this time.
0 commit comments