mersenneforum.org  

Go Back   mersenneforum.org > Math Stuff > Computer Science & Computational Number Theory > PARI/GP

Reply
 
Thread Tools
Old 2010-09-13, 15:47   #1442
kar_bon
 
kar_bon's Avatar
 
Mar 2006
Germany

B5C16 Posts
Default

Look here for examples of cycles.

Why don't you read the links i gave in post #1411?

Last fiddled with by kar_bon on 2010-09-13 at 15:47
kar_bon is offline   Reply With Quote
Old 2010-09-13, 16:10   #1443
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

I looked all of them over, I have no care to look over 1000's of threads to find any values to check i have no idea what to do obviously, so I'm of no use regardless.
science_man_88 is offline   Reply With Quote
Old 2010-09-13, 16:32   #1444
kar_bon
 
kar_bon's Avatar
 
Mar 2006
Germany

22·727 Posts
Default

That's how I would and do it:

- read more about the problem to understand things like input, output, exceptions
- try an example by hand/calculator to verify if I understand the problem correct and check against other examples found somewhere
- try to find a simple algorithm in the computer language I want to use: datatypes, a simple flow chart, ignoring for first exceptions but only run and give a result
- write the program
- testing the program with my own examples and verify against others
- try to cover the exceptions
- testing again
- optimize (if needed/wanted) the code
- testing again
- in all steps, documenting is essential
-> after all this is done, realease the code/program to others, let them test, too
-> final release

Finding the algorithm and code is the least part of all.
Exceptions or misuse/false inputs are quite more.
The most time is testing and find the limits of the code, emilminate those errors a user can cause and the documentation.

Last fiddled with by kar_bon on 2010-09-13 at 16:34
kar_bon is offline   Reply With Quote
Old 2010-09-13, 16:39   #1445
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

inputs are n the number to find the sequence to: the only failure in my code is not checking over v.
science_man_88 is offline   Reply With Quote
Old 2010-09-15, 21:41   #1446
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Code:
...for(y=1,#v-1,if(d==v[y] || d==1,break(3)))...
is the best thing I can think of lol to replace it with

and I still now get about the temp directory error:

Code:
sigma: couldn't find a suitable name for a tempdir (MPQS).
science_man_88 is offline   Reply With Quote
Old 2010-09-15, 22:06   #1447
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
and I still now get about the temp directory error:

Code:
sigma: couldn't find a suitable name for a tempdir (MPQS).
This is clearly a problem in the factoring system. Looking through the source I can see that the message is printed by pari_unique_dir when none of the 600+ temporary directory names it tries to make can be created (for example, they already exist).

This function is called only in the MPQS initialization (mpqs_i).
CRGreathouse is offline   Reply With Quote
Old 2010-09-15, 22:10   #1448
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

838410 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
This is clearly a problem in the factoring system. Looking through the source I can see that the message is printed by pari_unique_dir when none of the 600+ temporary directory names it tries to make can be created (for example, they already exist).

This function is called only in the MPQS initialization (mpqs_i).
think it's because for some reason i can't write a new file to my main drive at least one level down lol

Last fiddled with by science_man_88 on 2010-09-15 at 22:46
science_man_88 is offline   Reply With Quote
Old 2010-09-15, 22:18   #1449
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

I get the error below:
Attached Thumbnails
Click image for larger version

Name:	error.png
Views:	61
Size:	23.1 KB
ID:	5686  
science_man_88 is offline   Reply With Quote
Old 2010-09-15, 23:11   #1450
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

175B16 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
think it's because for some reason i can't write a new file to my main drive at least one level down lol
Well, until you fix that problem you're not going to be able to use MPQS in Pari, since that requires the creation of temportary files and folders.
CRGreathouse is offline   Reply With Quote
Old 2010-09-15, 23:16   #1451
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Well, until you fix that problem you're not going to be able to use MPQS in Pari, since that requires the creation of temportary files and folders.
is it not possible to get it to write to my portables ? all of them work well last I checked.
science_man_88 is offline   Reply With Quote
Old 2010-09-16, 00:16   #1452
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
is it not possible to get it to write to my portables ? all of them work well last I checked.
Hmm. It looks like you could make it work if you changed the environment variable "TEMP" to point to your portable drive, it would work. You *may* be able to do this:

Code:
@echo off
REM ************************************************
REM *  Put this in a file called pari.bat          *
REM *  Change F:\ to your portable's drive letter  *
REM *  Change C:\Program... as needed              *
REM ************************************************
set TEMP=F:\tmp
cd "C:\Program Files\PARI"
gp
but I'm not at a Windows machine at the moment so I can't test it.
CRGreathouse is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do I sometimes see all the <> formatting commands when I quote or edit? cheesehead Forum Feedback 3 2013-05-25 12:56
Passing commands to PARI on Windows James Heinrich Software 2 2012-05-13 19:19
Ubiquity commands Mini-Geek Aliquot Sequences 1 2009-09-22 19:33
64-bit Pari? CRGreathouse Software 2 2009-03-13 04:22
Are these commands correct? jasong Linux 2 2007-10-18 23:40

All times are UTC. The time now is 23:10.


Fri Aug 6 23:10:42 UTC 2021 up 14 days, 17:39, 1 user, load averages: 4.84, 4.21, 4.03

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.