Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Re: How do you get Matlab to recognize 1000 digit numbers without rounding?
Posted:
Jan 5, 2013 7:58 PM


On 1/5/2013 6:40 PM, Allen wrote: > I am working on project Euler and one of the problems asks you to find the largest >product of 5 consecutive numbers in a given 1000 digit number. My question is >how do I input this number without Matlab rounding? >
humm, what is the difference between 1000 digit number, and a vector that contains 1000 numbers for the purpose of solving this problem?
V=randi([0 9],10000,1);
Now apply your alogithm on it.
Nasser



