Numerical integration: Difference between revisions

→‎{{header|Go}}: small update for library change
(add scala)
(→‎{{header|Go}}: small update for library change)
Line 1,294:
// (there might be better ways...)
func sum(parts []float64) float64 {
sort.SortFloat64sFloat64s(parts)
ip := sort.SearchFloat64s(parts, 0)
in := ip - 1
1,707

edits