Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def calka(x:Double,y:Double,delta:Double,F:Double=>Double) : Double = {
- def wew(x:Double, y:Double, delta:Double, F:Double=>Double, acc:Double) : Double = {
- if(x>=y) acc
- else wew((x+delta),y,delta,F,acc+F(x)*delta)
- }
- wew(x,y,delta,F,0.0)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement