Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
pp:scalalab1 [2022/05/04 11:08]
vbadoiu [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 = ???
-rate(f: Double => Double)(start:​ Double, stop: Double): Double = ???+
 </​code>​ </​code>​