suivant: Term by term product
monter: Functions for vectors
précédent: Term by term sum
Table des matières
Index
Term by term difference of two lists : -
.-
The infixed operator - or .- and the prefixed operator
'-' returns the term by term difference of two lists.
If the two lists do not have the same size, the smallest list is
completed with
zeros.
Input :
[1,2,3]-[4,3,5]
Or :
[1,2,3] .+ [4,3,5]
Or :
'-'([1,2,3],[4,3,5])
Or :
'-'([[1,2,3],[4,3,5]])
Output :
[-3,-1,-2]
Warning !
When the operator - is prefixed, it should be quoted ('-').
giac documentation written by Renée De Graeve and Bernard Parisse