next up previous contents index
suivant: Algebraic expressions monter: Complex numbers précédent: Multiplication by the complex   Table des matières   Index


Barycenter of complex numbers : barycentre

See also : [*] and [*].
barycentre takes as argument two lists of the same size (resp. a matrix with two columns): barycentre returns the barycenter point of the points Aj weighted by the real coefficients $ \alpha_{j}^{}$. If $ \sum$$ \alpha_{j}^{}$ = 0, barycentre returns an error.
Warning To have a complex number in the output, the input must be :
affixe(barycentre(...,...)) because barycentre(...,...) returns a point, not a complex number.
Input :
affixe(barycentre([1+i,1-i],[1,1]))
Or :
affixe(barycentre([[1+i,1],[1-i,1]]))
Output :
i



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