ApproxFun.jl icon indicating copy to clipboard operation
ApproxFun.jl copied to clipboard

cumsum error

Open weymouth opened this issue 5 months ago • 6 comments
trafficstars

I'm just trying to make a function for the arclength along a space-curve.

curve(u) = [1.,0.,cos(u)]
dist = arclength(curve)
speed = Fun(u->hypot(derivative(curve,u)...),0..pi)
sum(speed) # 2.0 works!
cumsum(speed)(pi) # 0.0 doesn't work!

weymouth avatar May 19 '25 12:05 weymouth