-
Notifications
You must be signed in to change notification settings - Fork 51
/
TaylorSeries.jl
77 lines (62 loc) · 2.01 KB
/
TaylorSeries.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# This file is part of the TaylorSeries.jl Julia package, MIT license
#
# Luis Benet & David P. Sanders
# UNAM
#
# Handles Taylor series of arbitrary but finite order
"""
TaylorSeries
A Julia package for Taylor expansions in one or more independent variables.
The basic constructors are [`Taylor1`](@ref) and [`TaylorN`](@ref);
see also [`HomogeneousPolynomial`](@ref).
"""
module TaylorSeries
using InteractiveUtils: subtypes
using SparseArrays: SparseMatrixCSC
using Markdown
using Requires
import LinearAlgebra: norm, mul!
if VERSION ≥ v"1.0.0"
# export gradient
else
import LinearAlgebra: gradient
end
import Base: ==, +, -, *, /, ^
import Base: iterate, size, eachindex, firstindex, lastindex,
eltype, length, getindex, setindex!, axes, copyto!, similar
import Base: zero, one, zeros, ones, isinf, isnan, iszero,
convert, promote_rule, promote, show,
real, imag, conj, adjoint,
rem, mod, mod2pi, abs, abs2,
sqrt, exp, log, sin, cos, tan,
asin, acos, atan, sinh, cosh, tanh,
power_by_squaring,
rtoldefault, isfinite, isapprox, rad2deg, deg2rad
export Taylor1, TaylorN, HomogeneousPolynomial, AbstractSeries
export getcoeff, derivative, integrate, differentiate,
evaluate, evaluate!, inverse,
show_params_TaylorN, show_monomials, displayBigO, use_show_default,
get_order, get_numvars,
set_variables, get_variables,
get_variable_names, get_variable_symbols,
# jacobian, hessian, jacobian!, hessian!,
∇, taylor_expand, update!, constant_term, linear_polynomial,
normalize_taylor
include("parameters.jl")
include("hash_tables.jl")
include("constructors.jl")
include("conversion.jl")
include("auxiliary.jl")
include("arithmetic.jl")
include("power.jl")
include("functions.jl")
include("other_functions.jl")
include("evaluate.jl")
include("calculus.jl")
include("dictmutfunct.jl")
include("broadcasting.jl")
include("printing.jl")
function __init__()
@require IntervalArithmetic = "d1acc4aa-44c8-5952-acd4-ba5d80a2a253" include("intervals.jl")
end
end # module