无法将 Taylor1{Float64} 转换为用于绘制 Julia 的系列数据

Cannot convert Taylor1{Float64} to series data for plotting Julia

我想问如何从一阶泰勒近似值中获取值,因为我想在绘图中使用它的值。

所以我有一个数组

jump_value = [-945.0, -287.55589538221216, 19.122751150095354, 113.22912169505338, 96.60890174423561, 39.60661306353262, -14.088053425973683, -42.593904767135726, -40.99191308586612, -16.478882710263225, 16.47888271026317, 40.991913085866095, 42.59390476713573, 14.088053425973682, -39.60661306353257, -96.60890174423555, -113.2291216950534, -19.122751150095276, 287.5558953822114, 945.0]

数组中的元素表示二维图上从 x = 0 到 x = 10 的 y。

但是,我想将上述值转换​​为一阶泰勒近似值。
我试过用TaylorSeries这个函数来取值,但是好像只给出了公式函数。那么如何从上面的数组中得到一阶泰勒近似值呢?

using TaylorSeries

first_order = Taylor1(jump_value, 1)
println(first_order)

plot(0:jump_interval:10, first_order , 
    xlabel = "X value", ylabel = "Y value",  title = "Freg we love you!",
    linecolor = :black,
    linewidth = 3,
    legend = :bottomright,
    markershape = :circle,
    label = "Childhood")

感谢任何人提前回复。

不熟悉这个包,但是文档说可以调用 Taylor1 个实例来计算值,所以试试 plot(0:jump_interval:10, first_order.(0:jump_interval:10) ,