Taylor0
These are just some examples. Taylor0 is defined for many other functions. However, other functions can also be added.
QuantizedSystemSolver.Taylor0 — TypeTaylor0 A struct that defines a Taylor Variable. It has the following fields:
- coeffs: An array of Float64 that holds the coefficients of the Taylor series
- order: The order of the Taylor seriesQuantizedSystemSolver.createT — MethodcreateT(a::T,cache::Taylor0) where {T<:Number}
creates a Taylor0 from a constant. In case of order 2, cache=[a,0,0]QuantizedSystemSolver.addT — MethodaddT(a::Taylor0, b::Taylor0,cache::Taylor0) cache=a+b
QuantizedSystemSolver.subT — MethodsubT(a::Taylor0, b::Taylor0,cache::Taylor0) cache=a-b
QuantizedSystemSolver.mulT — MethodmulT(a::Taylor0, b::Taylor0,cache1::Taylor0) cache1=a*b
QuantizedSystemSolver.divT — MethoddivT(a::Taylor0, b::Taylor0,cache1::Taylor0) cache1=a/b
QuantizedSystemSolver.addsub — Methodaddsub(a::Taylor0, b::Taylor0,c::Taylor0,cache::Taylor0) cache=a+b-c
QuantizedSystemSolver.addsub — Methodaddsub(a::T, b::Taylor0,c::Taylor0,cache::Taylor0) where {T<:Number} Order2 case: cache=[a+b[0]-c[0],b[1]-c[1],b[2]-c[2]]
QuantizedSystemSolver.negateT — MethodnegateT(a::Taylor0,cache::Taylor0) cache=-a
QuantizedSystemSolver.subsub — Methodsubsub(a::Taylor0, b::Taylor0,c::Taylor0,cache::Taylor0) cache=a-b-c
QuantizedSystemSolver.muladdT — MethodmuladdT(a::P,b::Q,c::R,cache1::Taylor0) where {P,Q,R <:Union{Taylor0,Number}} cache1=a*b+c
QuantizedSystemSolver.mulsub — Methodmulsub(a::P,b::Q,c::R,cache1::Taylor0) where {P,Q,R <:Union{Taylor0,Number}} cache1=a*b-c