We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 132b074 commit 72171feCopy full SHA for 72171fe
examples/integration.jl
@@ -16,7 +16,6 @@ function setindex(x::TaylorArray{T, N, A, P}, index, d) where {T, N, A, P}
16
ntuple(i -> i == index + 1 ? d : v[i], Val(P + 1)) |> TaylorArray
17
end
18
19
-
20
"""
21
Computes the taylor integration of order P
22
src/primitive.jl
@@ -3,7 +3,7 @@ import Base: exp, exp2, exp10, expm1, log, log2, log10, log1p, inv, sqrt, cbrt
3
import Base: sin, cos, tan, cot, sec, csc, sinh, cosh, tanh, coth, sech, csch, sinpi, cospi
4
import Base: asin, acos, atan, acot, asec, acsc, asinh, acosh, atanh, acoth, asech, acsch
5
import Base: +, -, *, /, \, ^, >, <, >=, <=, ==
6
-import Base: sinc, cosc, hypot, max, min, literal_pow
+import Base: sinc, cosc, hypot, max, min, literal_pow, sincos
7
8
Taylor = Union{TaylorScalar, TaylorArray}
9
@@ -72,6 +72,8 @@ for func in (:sin, :cos)
72
73
74
75
+sincos(t::TaylorScalar) = (sin(t), cos(t))
76
+
77
# Binary
78
79
## Easy case
0 commit comments