mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Programming

Reply
 
Thread Tools
Old 2013-03-21, 15:13   #1
skan
 
skan's Avatar
 
Apr 2012

2×47 Posts
Default software advise? big number with GUI

Hello


I know there are some libraries such as MPIR or GMP to do manipulate and factorize big numbers.

But not instead of dealing with compilers I I would like to quickly prototype and test some algorithms.

What software do you advise me to use?
I mean something with GUI not only to compile but also to generate plots and perform simple modular calculations.

At the moment I'm abroad and using a very old laptop, so Matlab is not an option because it needs a lot of disk and resources.
Other options could be R or Octave, but I think that none of them (including Matlab) are able to manipulate very big integer numbers, and they are slow.
Mahematica can work with large numbers and it's smaller than Matlab, though I'm looking for somethin smaller.

Then, what program do you advise?. Something simple but with big number library and plot capabilities. something like yafu+gnuplot+little bit else.

regards
skan is offline   Reply With Quote
Old 2013-03-21, 16:43   #2
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

25×5×37 Posts
Default

I have always found the BigInteger class in c# quite easy to use. It isn't as fast as things like gmp or mpir but it would do for prototyping.
If you want a low footprint compiler I would suggest http://mono-project.com/Main_Page/
I have always used Microsoft's compiler so I am assuming that mono has implemented that class(they should have it has been out for ages). I also can't guarentee that Mono's implementation is as fast etc.

Most people here use MPIR or GMP. Using them is a little more tricky in my opinion.
henryzz is online now   Reply With Quote
Old 2013-03-21, 16:48   #3
skan
 
skan's Avatar
 
Apr 2012

10111102 Posts
Default

Quote:
Originally Posted by henryzz View Post
I have always found the BigInteger class in c# quite easy to use. It isn't as fast as things like gmp or mpir but it would do for prototyping.
If you want a low footprint compiler I would suggest http://mono-project.com/Main_Page/
I have always used Microsoft's compiler so I am assuming that mono has implemented that class(they should have it has been out for ages). I also can't guarentee that Mono's implementation is as fast etc.

Most people here use MPIR or GMP. Using them is a little more tricky in my opinion.
Hi

But now I don't want to create source files and later compile them but a program to run inline functions and plots, such as we do with Matlab, R... but with big number capabilities.
skan is offline   Reply With Quote
Old 2013-03-21, 17:18   #4
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

957110 Posts
Default

Pari/GP?
Batalov is offline   Reply With Quote
Old 2013-03-21, 17:31   #5
skan
 
skan's Avatar
 
Apr 2012

2·47 Posts
Default

Quote:
Originally Posted by Batalov View Post
OK thanks, I'll try
skan is offline   Reply With Quote
Old 2013-03-21, 21:44   #6
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

Python can handle arbitrarily large integers with GMP in the backend (not that the user needs to care). You can also use matplotlib to do plotting (it's designed to emulate Matlab plotting for Python).

It doesn't quite have the built in number theory stuff like Pari/GP, but I much prefer its syntax (and I don't think Pari/GP has any plotting utilities?)
Dubslow is offline   Reply With Quote
Old 2013-03-21, 22:44   #7
TObject
 
TObject's Avatar
 
Feb 2012

34×5 Posts
Default

There is also XNUMBERS plugin for Excel; but charting with it may be hard, since big numbers are stored as text.
TObject is offline   Reply With Quote
Old 2013-03-21, 23:50   #8
skan
 
skan's Avatar
 
Apr 2012

2·47 Posts
Default

Quote:
Originally Posted by TObject View Post
There is also XNUMBERS plugin for Excel; but charting with it may be hard, since big numbers are stored as text.
Excel is slower than any other thing in the world .


I've installed Pari/GP. I did already seen it many years ago.
it can produce plots easily but it opens the "paint" program to view the plots (I mean in Windows).
I've being doing some simple tests on Pari and R simultaneously.
Pari is faster and can handle bigger numbers but it's a little bit oldfashioned and more difficult.
For example in R you can create and initializa very easily constant vectors and sequences but I don't know how to do it with Pari without loops.
I need to do more tests.

Regards

Last fiddled with by skan on 2013-03-21 at 23:52
skan is offline   Reply With Quote
Old 2013-03-22, 02:30   #9
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
"name field"
Jun 2011
Thailand

978710 Posts
Default

doesn't "a=[1,2,3,4,5];" work?
LaurV is offline   Reply With Quote
Old 2013-03-22, 08:49   #10
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by skan View Post
For example in R you can create and initializa very easily constant vectors and sequences but I don't know how to do it with Pari without loops.
Code:
v=vector(100, i, 7)
gives a vector of length 100 filled with 7s.

Code:
v=vector(100, i, i^2)
gives the squares 1^2, 2^2, ..., 100^2.

Code:
v=[1, 3, 7, 9]
gives a(n arbitrary) constant vector.
CRGreathouse is offline   Reply With Quote
Old 2013-03-22, 12:37   #11
skan
 
skan's Avatar
 
Apr 2012

2×47 Posts
Default

Oh, thanks, I was using a fast reference pdf sheet and that didn't appear there.

I was using R because I'm more used to it but it's not able to handle big numbers.

I was curious to see the statistics of my factorization method, but it seems to be very slow.
Regards
skan is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding multiples of a real number that are close to a whole number mickfrancis Math 16 2017-03-01 07:17
Estimating the number of primes in a partially-factored number CRGreathouse Probability & Probabilistic Number Theory 15 2014-08-13 18:46
Number of distinct prime factors of a Double Mersenne number aketilander Operazione Doppi Mersennes 1 2012-11-09 21:16
Fermat number F6=18446744073709551617 is a composite number. Proof. literka Factoring 5 2012-01-30 12:28
Best Software? Unregistered Homework Help 0 2008-10-07 01:00

All times are UTC. The time now is 14:50.


Sat Oct 23 14:50:24 UTC 2021 up 92 days, 9:19, 0 users, load averages: 2.46, 1.89, 1.51

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.