Quantcast
Channel: Summation of a list of numbers - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 6

Answer by Black Mild for Summation of a list of numbers

$
0
0

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.

enter image description here

real[] a={1,1.2,-5};write(a);real T=sum(a);write("The sum of all elements is");write(T);

Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images