mersenneforum.org  

Go Back   mersenneforum.org > Search Forums

Showing results 1 to 23 of 23
Search took 0.01 seconds.
Search: Posts Made By: casevh
Forum: y-cruncher 2020-12-11, 04:24
Replies: 13
Views: 1,955
Posted By casevh
Have you tried using the gmpy2 library? It...

Have you tried using the gmpy2 library? It provides access to the GMP library for multiple-precision arithmetic. It should be very easy to convert your existing program to use gmpy2.

I maintain...
Forum: ONeil 2018-05-20, 18:20
Replies: 21
Views: 4,124
Posted By casevh
I modified the Python + GMPY2 example to add the...

I modified the Python + GMPY2 example to add the trial factoring code that is included in the C example. Code is include below.

Running times for all Mersenne primes to 11213:

C + GMP: 12...
Forum: Software 2017-07-28, 18:58
Replies: 11
Views: 1,706
Posted By casevh
This may sound strange, but I've fixed a couple...

This may sound strange, but I've fixed a couple of failing upgrades by performing the upgrade with network connectivity (wireless/wired) disabled.
Forum: Software 2017-07-27, 03:50
Replies: 11
Views: 1,706
Posted By casevh
Primo working with build 16251

Responding to an old thread....

My desktop upgraded to Build 16251 today. In the Windows Subsystem for Linux release notes, there was a note that the "beta" status has been removed. I tried primo...
Forum: Software 2016-09-17, 13:44
Replies: 11
Views: 1,706
Posted By casevh
It does not immediately work with v14926. The...

It does not immediately work with v14926. The email stated the fix was in v14926+ but I don't know if that include v14926 or if the fix is just in later versions.
Forum: Software 2016-09-17, 07:09
Replies: 11
Views: 1,706
Posted By casevh
When I saw this thread earlier today, I was about...

When I saw this thread earlier today, I was about to reply with a comment along the lines of "Support for shared memory and semaphores is not available in the Windows Subsystem for Linux. There is an...
Forum: Software 2016-04-23, 13:58
Replies: 19
Views: 1,395
Posted By casevh
~/test$ cat a A a A

~/test$ cat a A
a
A
Forum: Software 2016-04-23, 05:16
Replies: 19
Views: 1,395
Posted By casevh
I get an error of "operation not permitted" when...

I get an error of "operation not permitted" when trying to write to either /proc/sys/kernel/shmmax or /proc/sys/kernel/shmall.

There are other inconsistencies. The /dev/shm directory is a symlink...
Forum: Software 2016-04-23, 02:20
Replies: 19
Views: 1,395
Posted By casevh
I tried running Primo but was not successful....

I tried running Primo but was not successful. Primo generated an error that it could not allocate shared memory.
Forum: Software 2016-04-23, 02:15
Replies: 19
Views: 1,395
Posted By casevh
I tried a simple test on Preview Build 14328 that...

I tried a simple test on Preview Build 14328 that was released today. From the bash shell, the commands:

echo "a" > a
echo "A" > A

created two separate files. The file named a contained the...
Forum: Software 2016-04-22, 17:38
Replies: 19
Views: 1,395
Posted By casevh
I have run an X server on Windows (tested both...

I have run an X server on Windows (tested both Xming and MobaXterm) and then remotely displayed the application on the X server. I was able to get scite (a text editor) and gimp (graphics...
Forum: Software 2016-04-22, 13:30
Replies: 19
Views: 1,395
Posted By casevh
I installed it last night and took a quick look....

I installed it last night and took a quick look. It think it will be very useful to develop code that runs on both platforms. For developers, the most significant difference is that it uses the *nix...
Forum: GMP-ECM 2015-03-05, 20:46
Replies: 114
Views: 34,986
Posted By casevh
Untested, but try changing the offending line...

Untested, but try changing the offending line (1397 ??) from

print('-> {0:s} ({1:d} digits)'.format(line, num_digits(eval(line.replace('^', '**')))))

to

print('-> {0:s} ({1:d}...
Forum: GMP-ECM 2015-03-05, 13:58
Replies: 114
Views: 34,986
Posted By casevh
In Python 2, the division operator performs...

In Python 2, the division operator performs integer division, but in Python 3 was changed to always return a float. Both versions of Python support "//" to perform integer division. Can you try...
Forum: Programming 2013-11-24, 17:22
Replies: 46
Views: 4,313
Posted By casevh
Python uses its own large integer library and it...

Python uses its own large integer library and it is slower than libgmp. The gmpy2 (https://code.google.com/p/gmpy/) module provides access to GMP, MPFR, and MPC. Evaluating "3**(2**24)" is...
Forum: Hobbies 2007-06-08, 22:42
Replies: 56
Views: 7,933
Posted By casevh
HP calcs

Memories of working in a university bookstore. Students would come in with an old HP calculator in need of batteries, balk at the price, and buy an inexpensive calculator. I offered to buy quite a...
Forum: Math 2006-03-31, 16:25
Replies: 90
Views: 6,067
Posted By casevh
But there is no guarantee that x is less than q....

But there is no guarantee that x is less than q. Did you try it for M(89)?

M(89) = 618970019642690137449562111
sqrt(M(89)) = 24879108095803
x = 39760823347302

But x is greater than...
Forum: Math 2006-03-31, 07:58
Replies: 90
Views: 6,067
Posted By casevh
It is an approximation to an approximation. ...

It is an approximation to an approximation.

The first approximation is 89*ln(2) times the sum of 1/i*ln(i) where i goes from 2 to sqrt(2^89-1) and values where i is a power of 2 are excluded. If...
Forum: Math 2006-03-31, 07:11
Replies: 90
Views: 6,067
Posted By casevh
It should be 89 * ln(2) *...

It should be

89 * ln(2) * [ln(ln(sqrt(2^89-1))) - ln(ln(3))]

which is 326. A little closer. It will always be high because it assumes that zeros occur even when the base used is a power of 2....
Forum: Math 2006-03-31, 05:50
Replies: 90
Views: 6,067
Posted By casevh
Oops. That should be 30402457 * ln(2) *...

Oops.

That should be

30402457 * ln(2) * [ ln(8200* ln(2)) - ln(ln(3)) ]

(That's what I get for trying to solve a routing problem at work while I'm posting...)
Forum: Math 2006-03-31, 05:21
Replies: 90
Views: 6,067
Posted By casevh
Partial verification

I've calculated the number of zeros in M43 for all bases between 3 and 8200. The total number of zeros is 42,000,510. Using the estimate:

30402457 * log(2) * [ log(30402457 * log(2)) - log(log(3))...
Forum: Lounge 2006-02-15, 06:20
Replies: 7
Views: 1,790
Posted By casevh
If you are willing to use the Python programming...

If you are willing to use the Python programming language, I wrote a libary called DecInt specifically designed to calculate very large numbers in exact decimal format. It will use GMP if GMPY (GMP...
Forum: Lounge 2005-12-30, 06:37
Replies: 5
Views: 552
Posted By casevh
If you program in Python, you can also look at...

If you program in Python, you can also look at DecInt.

http://home.comcast.net/~casevh/

It is designed for general purpose calculations with decimal formatted integers. With assistance from...
Showing results 1 to 23 of 23

 
All times are UTC. The time now is 22:37.

Sat Feb 27 22:37:59 UTC 2021 up 86 days, 18:49, 0 users, load averages: 2.62, 2.18, 2.13

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.