![]() |
![]() |
#1 |
"Ed Hall"
Dec 2009
Adirondack Mtns
124538 Posts |
![]()
Quick question:
If I'm in YAFU and enter something like 338^53, I get a value, but from the command line, if I enter ./yafu 338^53 (with or without quotes), it starts factoring. Is there a way to just get the value from the command line? I'm actually looking for a manner to use YAFU within a Bash script to get values that are too large for the calculator.. |
![]() |
![]() |
![]() |
#2 |
"Ben"
Feb 2007
1110101001012 Posts |
![]()
Yes, the "expression" function.
Some time ago I decided that factor() should be yafu's default action and added this function for just this reason. Code:
./yafu "expr(338^53)" Code:
ans = 107791648724516899391794749922437879901663656637741542210620810142348006207593399220450871624756179567322798904744723676640112990486528 Last fiddled with by bsquared on 2021-07-07 at 20:15 Reason: output |
![]() |
![]() |
![]() |
#3 |
"Ed Hall"
Dec 2009
Adirondack Mtns
5,419 Posts |
![]()
Thanks Ben,
This is exactly what I want. And, the -silent option works perfectly for providing just the value, so I won't have to parse. ![]() |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aliaut Sum Calculator | drmurat | Aliquot Sequences | 7 | 2020-07-01 09:28 |
Calculator Soup | MattcAnderson | Lounge | 0 | 2019-10-29 05:19 |
Running YAFU via Aliqueit doesn't find yafu.ini | EdH | YAFU | 8 | 2018-03-14 17:22 |
LL Credit Calculator | swl551 | Software | 0 | 2012-12-04 17:49 |
Large Digit Calculator | Primeinator | Lounge | 7 | 2006-02-16 23:11 |