Quick Search for:  in language:    
32767,module,allows,perform,basic,computation
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,448,579. lines
 Jobs: 249. postings

 How to support the site

 
Sponsored by:

 
You are in:
 
Login





Latest Code Ticker for Visual Basic.
Click here to see a screenshot of this code!SIMPLE & EFFECTIVE OCR
By Geovany Villegas (yovasXp) on 3/22

(Screen Shot)

SurfTime
By David Barker on 3/21


book
By njrm on 3/21


Click here to see a screenshot of this code!API001
By Bibekananda Patel on 3/21

(Screen Shot)

Check For valid filePath__| if not valid..all required folds and the file are create__|
By Evan Toder on 3/21


Professional HTML Maker and Editor
By Mahdi_Allizadeh on 3/21


Search Maker for your site
By Mahdi_Allizadeh on 3/21


Click here to see a screenshot of this code!IP Address Monitoring Utility
By Todd Tanner on 3/21

(Screen Shot)

PSCatalog
By Saša on 3/21


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!

Free Magazine
FREE full subscription to Windows Server System Magazine!


THE magazine for technical advice on migrating, deploying, integrating, managing, and administering Windows Server 2003 and all the servers that make up the Windows Server System.
Click here for more information on a free full-year subscription!

See other free magazines available


Affiliate Sites

 
 
   

Large Integer module (LargeNum)

Print
Email
 
winzip icon
Submitted on: 1/15/2004 12:03:57 PM
By: Acid Juice 
Level: Beginner
User Rating: By 1 Users
Compatibility:VB 6.0

Users have accessed this code 470 times.
 

(About the author)
 
     This module allows to perform basic computations on positive and negative Large Integer Numbers up to 32,767 digits: add, substract, multiply, devide, compare and exponential functions. Code is highly commented, sample LargeNum calculator included. Feedback is highly appreciated: main purpose here would be to considerably speed up the process, and even if code is maximised i'm looking forward to your input. For others who can't provide direct input, feel free to download, voting recommended even though not compulsory :) Cheers to you all, ACiD.
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
1/15/2004 12:42:25 PM:Paul Guerra
What about floating-point numbers?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/15/2004 12:52:38 PM:Acid Juice
hi paul,
kept of having issues on 
exactitude of numbers, as decimals were 
up to a point approximated. however if 
you do have examples of this i'm really 
interested, large numbers and 
crittography is getting me in the way 
and will soon be posting some VB code 
on Miller-Rabin, Fermat tests and Large 
Prime Numbers generation.
Of course, 
fastest Large Number computation more 
than welcomed.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/15/2004 3:31:19 PM:korejwa
First, congratulations on successfully 
coding a very difficult and usefull 
project.  A Large Integer Math Library 
is one of those "holy grails" for VB 
coders.  I've tried to create one 
myself, but it's much more difficult 
than anyone knows!
If you want to 
speed up and optimize, you should store 
numbers and perform operations on 256 
Radix Byte Arrays instead of Strings.  
This is as optimized and fast as you 
can get.
I recommend looking at the 
last chapter in "Numerical Recepes in 
C" for some important concepts.  Also, 
look at Ron van Tilburg's "Variable 
Length Integer Maths" (code ID:34747) 
here on PSC.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/15/2004 5:07:58 PM:Acid Juice
hi korejwa, and thank you for your 
support and input. i definitely will 
look into what you have suggested 
asap.
as i reported in my previous 
post, i am developing a full RSA 
encryption program. currently 
everything works great, however it just 
takes too long to create 128-bit keys, 
and when you think that RSA is 
considered secure with more than 
512-bit keys you can see why i need to 
speed up this module to increase 
algorithm treatment.
i will be 
posting these projects here soon, asap 
i'm able to improve some speed. i'm 
sure more than one person is interested 
in LARGE NUMBERS PRIME GENERATION, and 
all the encryption which is behind (too 
many examples of 8-bit keys around 
:)).
keep up the good work, and 
again, thanks.
ACiD.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997-2004 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.