Tag Info

New answers tagged

3

It's difficult to answer this question definitively, without more detail on the type of function that you're after. As you refer to the PiecewiseExpand function, I'm rather guessing that you're looking for a single, piecewise linear function that passes through the points. If so, perhaps this works: affineFormula[{{x1_, y1_}, {x2_, y2_}}, x_] := y1 + ...


1

For anyone tired of holding their breath for the bug fix, here is how you construct a second order nurbs interpolation directly: b2[n_, k_, u_] := Piecewise@{ {(u - k[[n]])^2/((k[[n]] - k[[n + 1]]) (k[[n]] - k[[n + 2]])), k[[n]] <= u < k[[n + 1]]}, {Total[ ((u - k[[n + #]]) (u - k[[n + 2 + #]]))/ ...



Top 50 recent answers are included