A = ⎣ ⎢ ⎢ ⎡ 5 6 0 5 1 2 0 9 8 9 5 3 2 6 9 0 2 6 3 4 6 6 4 4 2 4 7 8 1 5 5 7 3 0 3 8 9 1 2 6 0 8 8 3 5 ⎦ ⎥ ⎥ ⎤
Consider the matrix above.
Let S be the sum of all the entries in A 1 0 0 . Find the sum of digits of S
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
How do you prove that your answer is correct?
Log in to reply
I would have to show that my program does indeed what it claims to be doing. Is that what you want?
Log in to reply
It is quite easy to come up with the logic to sum up the digits of the elements of a matrix. However, if the numbers of hundreds of digits long, how do you ensure precision? This is the point that I am ignorant about.
Log in to reply
@Janardhanan Sivaramakrishnan
–
In
haskell
,
Integer
can ensure precision for large integers, different from
Int
.
Problem Loading...
Note Loading...
Set Loading...