Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
pp:scalalab1 [2022/05/07 17:25] mihai.calitescu [III. Scala in practice] |
pp:scalalab1 [2022/05/07 17:26] (current) mihai.calitescu fixed typo |
||
---|---|---|---|
Line 121: | Line 121: | ||
Implement the function ''integrate'' which computes the integral of a function f given a range: | Implement the function ''integrate'' which computes the integral of a function f given a range: | ||
<code scala> | <code scala> | ||
- | def integ | + | def integrate(f: Double => Double)(start: Double, stop: Double): Double = ??? |
+ | </code> | ||
===== III. Scala in practice ===== | ===== III. Scala in practice ===== | ||