# coding=utf-8 name = 'max_sum/2' slug = 'find maximal adjacent elements' description = '''\
max_sum(List, Max)
: Max
is the maximal sum of two adjacent elements in List
.
?- max_sum([4.5, 3.6, 1.2, 6.7], Max). Max = 8.1. ?- max_sum([1.1, 1.2, -12.3, 8.8], Max). Max = 2.3.''' hint = {}