mersenneforum.org > YAFU Yafu
 Register FAQ Search Today's Posts Mark Forums Read

 2018-12-08, 18:37 #1255 swellman     Jun 2012 1011010100012 Posts 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...
 2018-12-18, 22:58 #1256 storm5510 Random Account     Aug 2009 U.S.A. 25·53 Posts 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.
2018-12-19, 03:31   #1257
EdH

"Ed Hall"
Dec 2009

3,463 Posts

Quote:
 Originally Posted by storm5510 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.

2018-12-19, 14:14   #1258
bsquared

"Ben"
Feb 2007

23·419 Posts

Quote:
 Originally Posted by EdH 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.

2018-12-19, 17:39   #1259
storm5510
Random Account

Aug 2009
U.S.A.

110101000002 Posts

Quote:
 Originally Posted by bsquared 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.

2018-12-19, 17:52   #1260
bsquared

"Ben"
Feb 2007

23×419 Posts

Quote:
 Originally Posted by storm5510 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.

2018-12-20, 00:01   #1261
storm5510
Random Account

Aug 2009
U.S.A.

25·53 Posts

Quote:
 Originally Posted by bsquared 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

2018-12-20, 00:22   #1262
VictordeHolland

"Victor de Hollander"
Aug 2011
the Netherlands

23×3×72 Posts

Quote:
 Originally Posted by storm5510 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.

 2018-12-20, 07:59 #1263 LaurV Romulan Interpreter     Jun 2011 Thailand 8,963 Posts 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
2018-12-20, 12:25   #1264
storm5510
Random Account

Aug 2009
U.S.A.

32408 Posts

Quote:
 Originally Posted by VictordeHolland 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!

2018-12-20, 15:59   #1265
MisterBitcoin

"Nuri, the dragon :P"
Jul 2016
Good old Germany

2×7×53 Posts

Quote:
 Originally Posted by LaurV 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. -_-

 Similar Threads Thread Thread Starter Forum Replies Last Post EdH YAFU 8 2018-03-14 17:22 bsquared YAFU 119 2015-11-05 16:24 storflyt32 YAFU 2 2015-06-29 05:19 bsquared YAFU 12 2012-11-08 04:12 bsquared YAFU 21 2012-09-04 19:44

All times are UTC. The time now is 12:24.

Sat Dec 5 12:24:54 UTC 2020 up 2 days, 8:36, 0 users, load averages: 1.22, 1.39, 1.57