File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed
lib/node_modules/@stdlib/math/base/special/sincos/benchmark/julia Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -89,25 +89,6 @@ function print_results( iterations, elapsed )
89
89
@printf ( " ...\n " );
90
90
end
91
91
92
- """
93
- sincos( x )
94
-
95
- Compute the sine and cosine of a number (since sincos is not directly exposed in julia).
96
-
97
- # Arguments
98
-
99
- * `x`: argument, in radians
100
-
101
- # Examples
102
-
103
- ``` julia
104
- julia> sincos( 0.0 )
105
- ```
106
- """
107
- function sincos ( x )
108
- [ sin ( x ), cos ( x ) ];
109
- end
110
-
111
92
"""
112
93
benchmark()
113
94
@@ -126,7 +107,7 @@ julia> out = benchmark();
126
107
```
127
108
"""
128
109
function benchmark ()
129
- t = BenchmarkTools. @benchmark $ sincos ( (20.0 * rand ()) - 10.0 ) samples= 1e6
110
+ t = BenchmarkTools. @benchmark sincos ( (20.0 * rand ()) - 10.0 ) samples= 1e6
130
111
131
112
# Compute the total "elapsed" time and convert from nanoseconds to seconds:
132
113
s = sum ( t. times ) / 1.0e9 ;
You can’t perform that action at this time.
0 commit comments