haskel evaluativo













prom :: Float -> Float -> Float ->Float
prom a b c = (a + b + c)/3
vol :: Float -> Float
vol r = (4 * 3.14 * r^3)/3
areac :: Float -> Float
areac r = 3.14 * r^2
interpar :: [ Int ] -> [Int ] -> [ Int ]
interpar [ x1, x2 ] [ y1, y2 ] = [ x1, y1, x2, y2]
ultima :: Integer -> Integer
ultima x = rem x 10
rotacion :: [ Integer] -> [ Integer ]
rotacion xs = tail xs ++ [head xs]
rango :: [ Integer] -> [ Integer ]
rango x = [ minimum x, maximum x]
palindromos :: [ Integer ] -> Bool
palindromos x = x == reverse x

Comentarios

Entradas populares de este blog

recursividad

tp prolog

sensor y dos foquitos