【发布时间】:2014-02-17 22:00:12
【问题描述】:
seg1 <- function(t) 0.01000000+0.01021486*t+0.00915602*t^2-0.01485179*t^3
curve(seg1, 0, 2/12)
seg2 <- function(t) 0.01145666+0.00758914*t+0.01521279*t^2+0.09378380*t^3
curve(seg2, 2/12, 5/12)
seg3 <- function(t) 0.00000000+0.02320514*t+0.00490835*t^2-0.08080547*t^3
curve(seg3, 5/12, 11/12)
seg4 <- function(t) 0.02215231-0.02425796*t-0.00962054*t^2+0.02154812*t^3
curve(seg4, 11/12, 15/12)
使用相同的比例将 4 个段连接到同一张图中,区间为 0 到 1.25
我的原始输入不正确。 使用正确的输入,我得到了一条平滑的曲线
seg1
seg2
seg3
seg4
【问题讨论】: