Adding 2 big interger, e.g 100 digits
by Trung Duong
29 Sep 2011
% Add 2 big INTERGER a b, e.g with 100 digits
% algorithms will add each group of nbit digits
|
Watch this File
|
| File Information |
| Description |
% Add 2 big INTERGER a b, e.g with 100 digits
% algorithms will add each group of nbit digits
% of a and b. nbit(default)=6
% S = add(a,b), return S = a+b
%-----------------------
% Example
% na = 3+ round(10*rand);
% nb =5+ round(10*rand);
% a = round(10^na*rand)
% b = round(10^nb*rand)
% s = add(a,b)
%-----------------------
% trungd@okstate.edu
% 9-27-2011
%----------------------- |
| MATLAB release |
MATLAB 7 (R14)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us at files@mathworks.com