Skip to content

Commit 72171fe

Browse files
hanqizhu65tansongchen
authored andcommitted
fix sincos
1 parent 132b074 commit 72171fe

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/integration.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ function setindex(x::TaylorArray{T, N, A, P}, index, d) where {T, N, A, P}
1616
ntuple(i -> i == index + 1 ? d : v[i], Val(P + 1)) |> TaylorArray
1717
end
1818

19-
2019
"""
2120
Computes the taylor integration of order P
2221

src/primitive.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Base: exp, exp2, exp10, expm1, log, log2, log10, log1p, inv, sqrt, cbrt
33
import Base: sin, cos, tan, cot, sec, csc, sinh, cosh, tanh, coth, sech, csch, sinpi, cospi
44
import Base: asin, acos, atan, acot, asec, acsc, asinh, acosh, atanh, acoth, asech, acsch
55
import Base: +, -, *, /, \, ^, >, <, >=, <=, ==
6-
import Base: sinc, cosc, hypot, max, min, literal_pow
6+
import Base: sinc, cosc, hypot, max, min, literal_pow, sincos
77

88
Taylor = Union{TaylorScalar, TaylorArray}
99

@@ -72,6 +72,8 @@ for func in (:sin, :cos)
7272
end
7373
end
7474

75+
sincos(t::TaylorScalar) = (sin(t), cos(t))
76+
7577
# Binary
7678

7779
## Easy case

0 commit comments

Comments
 (0)