Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. t <- sort(runif(20, 0, pi))
  2. x <- t**2 # ok
  3. x <- c(sin(t[1:10]), cos(t[11:20])) # not ok
  4.  
  5. length(boxplot.stats(diff(x), coef=10)$out) > 0
  6.  
  7. splinefun(t, x)(t, 3) # obtains the jerk of x with respect to t
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement