Just practice with Asymptote using a built-in sum(a)
function to calculate the sum of all elements of a given array of real number a
.
real[] a={1,1.2,-5};write(a);real T=sum(a);write("The sum of all elements is");write(T);
Just practice with Asymptote using a built-in sum(a)
function to calculate the sum of all elements of a given array of real number a
.
real[] a={1,1.2,-5};write(a);real T=sum(a);write("The sum of all elements is");write(T);