Решения на задачите от 01.12
poli1 l x y c result
|null l =result
|otherwise =poli1 (tail l) x y (c*x*y) (result+(head l)*c)
{-pow x y =x^y
mySum x y =x+y
pow2 =pow 2{-фиксиран първи параметър 2-}
mySum10 =mySum 10
--values l x=[f x|f<-l]-}
id x=x
maxValue (h:t) x
|null t = h x
|otherwise = max (h x) (maxValue t x)
maxFunc (h:t) x
|null t = h
|h x > (maxFunc t x) x = h
|otherwise = (maxFunc t x)
values l x=[f x|f<-l]
sq x=x*x
--maxValues (h:t) x
|null t =h x
maxF (h:t) x
|null t =h
| (h x) > ((maxF t x) x)= h
|otherwise =(maxF t x
sq x=x*x
--maxValues (h:t) x
|null t =h x
maxF (h:t) x
|null t =h
| (h x) > ((maxF t x) x)= h
|otherwise =(maxF t x