JuliaDiff / TaylorSeries.jl

Taylor polynomial expansions in one and several independent variables.
Other
353 stars 53 forks source link

Add TaylorN constructor #355

Closed PerezHz closed 6 months ago

PerezHz commented 6 months ago

This PR adds a TaylorN constructor which takes simply a <:NumberNotSeries variable and the current order from get_order(), which allows to do e.g.:

julia> a = TaylorN{Float64}(-1//3)
 -0.3333333333333333 + 𝒪(‖x‖⁷)

julia> typeof(a)
 TaylorN{Float64}
coveralls commented 6 months ago

Coverage Status

coverage: 96.958% (-0.001%) from 96.959% when pulling 6d04fd7c019db7e7b857d8ca2412542ec6696541 on PerezHz:jp/taylorn into 87116db2213657ce53cf173d70321cf13631a881 on JuliaDiff:master.