mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > YAFU

Reply
 
Thread Tools
Old 2018-12-08, 18:37   #1255
swellman
 
swellman's Avatar
 
Jun 2012

24×181 Posts
Default

FWIW this happens on several of my machines. I’ve never hunted down what causes it but so far no problems. The behavior does seem related to line length, e.g. when the ETA drops a digit the behavior stops. Mostly...
swellman is offline   Reply With Quote
Old 2018-12-18, 22:58   #1256
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

3·563 Posts
Default Answer Result

This is a fascinating program, once I learned to use it. There is one simple thing lacking. Regardless of what you run, you get "ans = x." It would be nice if this were added to the session.log file. As far as I can tell, this is not recorded anywhere, and I cannot find a way to do it.

storm5510 is offline   Reply With Quote
Old 2018-12-19, 03:31   #1257
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

3,457 Posts
Default

Quote:
Originally Posted by storm5510 View Post
This is a fascinating program, once I learned to use it. There is one simple thing lacking. Regardless of what you run, you get "ans = x." It would be nice if this were added to the session.log file. As far as I can tell, this is not recorded anywhere, and I cannot find a way to do it.

You do realize the factors are in factor.log, yes? You can use:
Code:
 cat factor.log >> session.log
to add the whole factor.log file to the end of session.log, or:
Code:
cat factor.log | egrep -i 'factor|prp' >> session.log
to add just the lines with factors, or you can further parse the lines with factors to modify the factor lines.
EdH is offline   Reply With Quote
Old 2018-12-19, 14:14   #1258
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

3,343 Posts
Default

Quote:
Originally Posted by EdH View Post
You do realize the factors are in factor.log, yes? You can use:
Code:
 cat factor.log >> session.log
to add the whole factor.log file to the end of session.log, or:
Code:
cat factor.log | egrep -i 'factor|prp' >> session.log
to add just the lines with factors, or you can further parse the lines with factors to modify the factor lines.
If what he is after is factors then yeah, these and other ways work. I'm sure that's what 99.99% of people that use yafu are after. But if one is running in interactive mode, using it as a bigint calculator or whatever, then all of the "answers" disappear once they scroll out of your window buffer. Storm's suggestion would indeed be nice in that case.

Although it seems the wip version of yafu has lost the ability to record interactive sessions... I'll have to look into that.
bsquared is offline   Reply With Quote
Old 2018-12-19, 17:39   #1259
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

168910 Posts
Default

Quote:
Originally Posted by bsquared View Post
If what he is after is factors then yeah, these and other ways work. I'm sure that's what 99.99% of people that use yafu are after. But if one is running in interactive mode, using it as a bigint calculator or whatever, then all of the "answers" disappear once they scroll out of your window buffer. Storm's suggestion would indeed be nice in that case.

Although it seems the wip version of yafu has lost the ability to record interactive sessions... I'll have to look into that.
This was just a passing thought, and for the benefit of others who use it far more than I do.

Off-topic, a little. At the bottom of the readme file, there is a suggestion to run a factor on a huge number.
Quote:
factor(2056802480868100646375721251575555494408897387375737955882170045672576386016591560879707933101909539325829251496440620798637813)
I thought to myself that this might take a while. I was astonished when it took less than 30 seconds.
storm5510 is offline   Reply With Quote
Old 2018-12-19, 17:52   #1260
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

3,343 Posts
Default

Quote:
Originally Posted by storm5510 View Post
This was just a passing thought, and for the benefit of others who use it far more than I do.

Off-topic, a little. At the bottom of the readme file, there is a suggestion to run a factor on a huge number.
I thought to myself that this might take a while. I was astonished when it took less than 30 seconds.
Thanks! That number was carefully constructed so that factor's various methods (rho, pm1, ecm) all are able chip away pieces of it, thus enabling QS to quickly finish it off. It highlights what "factor" was designed to do, and is relatively good at.
bsquared is offline   Reply With Quote
Old 2018-12-20, 00:01   #1261
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

110100110012 Posts
Default

Quote:
Originally Posted by bsquared View Post
Thanks! That number was carefully constructed so that factor's various methods (rho, pm1, ecm) all are able chip away pieces of it, thus enabling QS to quickly finish it off. It highlights what "factor" was designed to do, and is relatively good at.
You're welcome!

Below is something you may be able to help me with. I gave it a factor to do in the form commonly used here, 2p-1. It seems to drop out too soon. Perhaps, I need to format this expression differently if I want it to go farther?

It also says something about no tune info. I ran it as described in docfile.txt It must not be looking in the right place.

Finally, there is a large file called YAFU, with not file extension. What is it?
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	66
Size:	44.0 KB
ID:	19464  
storm5510 is offline   Reply With Quote
Old 2018-12-20, 00:22   #1262
VictordeHolland
 
VictordeHolland's Avatar
 
"Victor de Hollander"
Aug 2011
the Netherlands

117410 Posts
Default

Quote:
Originally Posted by storm5510 View Post
Below is something you may be able to help me with. I gave it a factor to do in the form commonly used here, 2p-1. It seems to drop out too soon. Perhaps, I need to format this expression differently if I want it to go farther?it?
You're giving YAFU a number with millions of digits, it is not designed to handle such big numbers.
VictordeHolland is offline   Reply With Quote
Old 2018-12-20, 07:59   #1263
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

22·7·11·29 Posts
Default

Actually not. He is giving yafu a number of 9 digits (295598220), which yafu factors promptly, properly, and correctly. That is because the caret in windows has a special signification, and it is purged out by the powershell from the command line. You need to add between one and 4 carets (depending of what you want). I have somewhere a post about this.

However, assuming the expression would be passed to yafu right, it would still not work, because of what Victor said, yafu is designed to factor numbers of few hundred digits maximum, and its best use is to factor aliquots, or other stuff under 200 digits.

Last fiddled with by LaurV on 2018-12-20 at 08:01
LaurV is offline   Reply With Quote
Old 2018-12-20, 12:25   #1264
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

3·563 Posts
Default

Quote:
Originally Posted by VictordeHolland View Post
You're giving YAFU a number with millions of digits, it is not designed to handle such big numbers.
This is all I needed to know. Thank you!
storm5510 is offline   Reply With Quote
Old 2018-12-20, 15:59   #1265
MisterBitcoin
 
MisterBitcoin's Avatar
 
"Nuri, the dragon :P"
Jul 2016
Good old Germany

74210 Posts
Default

Quote:
Originally Posted by LaurV View Post
Actually not. He is giving yafu a number of 9 digits (295598220), which yafu factors promptly, properly, and correctly. That is because the caret in windows has a special signification, and it is purged out by the powershell from the command line. You need to add between one and 4 carets (depending of what you want). I have somewhere a post about this.

However, assuming the expression would be passed to yafu right, it would still not work, because of what Victor said, yafu is designed to factor numbers of few hundred digits maximum, and its best use is to factor aliquots, or other stuff under 200 digits.
I can recommend to use an file to input numbers into yafu..
Just use
Code:
factor(n)
in a file. I use "n.in" as file name. You only need to use
Code:
yafu.exe < n.in
in PowerShell or CMD. (Windows)

About max. digits. It depends on your system (I would guess so), talking of me:
Windows 10, medium notebook

Max 1500 digits for special form numbers like m^n+/-1. Numbers without short expression will only work up to ~1300 digits; over that value I´ll get an error.

My Linux Server:
Anything under 10,4K digits works fine; not tested any higher values; no needs.

Last fiddled with by MisterBitcoin on 2018-12-20 at 15:59 Reason: Spacing. -_-
MisterBitcoin is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running YAFU via Aliqueit doesn't find yafu.ini EdH YAFU 8 2018-03-14 17:22
YAFU-1.34 bsquared YAFU 119 2015-11-05 16:24
Yafu bug. storflyt32 YAFU 2 2015-06-29 05:19
yafu-1.33 bsquared YAFU 12 2012-11-08 04:12
yafu-1.32.1 bsquared YAFU 21 2012-09-04 19:44

All times are UTC. The time now is 05:08.

Mon Nov 30 05:08:13 UTC 2020 up 81 days, 2:19, 3 users, load averages: 1.32, 1.28, 1.25

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.