File tree Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1
1
name = " Compat"
2
2
uuid = " 34da2185-b29b-5c13-b0c7-acf172513d20"
3
- version = " 3.22 .0"
3
+ version = " 3.23 .0"
4
4
5
5
[deps ]
6
6
Base64 = " 2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ changes in `julia`.
55
55
56
56
## Supported features
57
57
58
+ * ` sincospi(x) ` for calculating the tuple ` (sinpi(x), cospi(x)) ` ([ #35816 ] ) (since Compat 3.23)
59
+
58
60
* ` Dates.canonicalize ` can now take a ` Period ` as an input ([ #37391 ] ) (since Compat 3.22)
59
61
60
62
* Import renaming is available through the ` @compat ` macro, e.g. ` @compat import LinearAlgebra as LA ` and
@@ -227,3 +229,4 @@ Note that you should specify the correct minimum version for `Compat` in the
227
229
[ #35243 ] : https://github.com/JuliaLang/julia/pull/35243
228
230
[ #37396 ] : https://github.com/JuliaLang/julia/pull/37396
229
231
[ #37391 ] : https://github.com/JuliaLang/julia/pull/37391
232
+ [ #35816 ] : https://github.com/JuliaLang/julia/pull/35816
Original file line number Diff line number Diff line change @@ -814,6 +814,12 @@ if VERSION < v"1.6.0-DEV.820"
814
814
Dates. canonicalize (p:: Period ) = Dates. canonicalize (CompoundPeriod (p))
815
815
end
816
816
817
+ # https://github.com/JuliaLang/julia/pull/35816
818
+ if VERSION < v " 1.6.0-DEV.292" # 6cd329c371c1db3d9876bc337e82e274e50420e8
819
+ export sincospi
820
+ sincospi (x) = (sinpi (x), cospi (x))
821
+ end
822
+
817
823
include (" iterators.jl" )
818
824
include (" deprecated.jl" )
819
825
Original file line number Diff line number Diff line change 765
765
@test Dates. canonicalize (Dates. Minute (24 * 60 * 1 + 12 * 60 )) == Dates. canonicalize (Dates. CompoundPeriod ([Dates. Day (1 ),Dates. Hour (12 )]))
766
766
end
767
767
768
+ # https://github.com/JuliaLang/julia/pull/35816
769
+ @testset " sincospi(x)" begin
770
+ @test sincospi (0.13 ) == (sinpi (0.13 ), cospi (0.13 ))
771
+ @test sincospi (1 // 3 ) == (sinpi (1 // 3 ), cospi (1 // 3 ))
772
+ @test sincospi (5 ) == (sinpi (5 ), cospi (5 ))
773
+ @test sincospi (ℯ) == (sinpi (ℯ), cospi (ℯ))
774
+ @test sincospi (0.13im ) == (sinpi (0.13im ), cospi (0.13im ))
775
+ end
776
+
768
777
include (" iterators.jl" )
769
778
770
779
# Import renaming, https://github.com/JuliaLang/julia/pull/37396,
You can’t perform that action at this time.
0 commit comments