next up previous contents index
suivant: Intervals defined by their monter: Intervals précédent: Boundaries of an interval   Table des matières   Index


Center of an interval : interval2center

interval2center takes as argument an interval or a list of intervals.
interval2center returns the center of this interval or the list of centers of these intervals.
Input :
interval2center(3..5)
Output :
4
Input :
interval2center([2..4,4..6,6..10])
Output :
[3,5,8]



giac documentation written by Renée De Graeve and Bernard Parisse