![]() |
|
|
#1 |
|
Mar 2016
3·5·23 Posts |
A peaceful day for all,
if i want to multiply 100 arising number of f(n)=2*n²-1 from n=1001 up to n=1100 and want to have the result modulo f. Does it make sense to use the binary logarithm of f(n) of all terms, adding the results, do a inverse binary log of the result and make then the calculation modulo f ? By the way the use of the logarithm of the arising numbers can it speed up by only regarding the significant different digits ? Would be nice to get some mathematical information ![]() Greetings from the primes Bernhard |
|
|
|
|
|
#2 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Quote:
|
|
|
|
|
|
|
#3 | |
|
Aug 2006
3×1,993 Posts |
Quote:
There are other tricks out there like fast multipoint evaluation which are related. If you need an exact answer you'll need to keep precision essentially the same, so I think the answer is "no". If you can use approximations then there are definitely better methods, depending on your needs. Doing everything like the exact case but keeping fewer digits is simplest but you can probably do a lot better. |
|
|
|
|
|
|
#4 |
|
Mar 2016
5318 Posts |
Thanks for your nice answer.
I really appreciate to get some mathematical support from your side. I state that you often give some really good answers, even if the question might be a little bit strange. Thanks and best greetings from the primes ![]() Bernhard |
|
|
|
|
|
#5 |
|
Aug 2006
3·1,993 Posts |
Glad I could help!
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with discrete logarithm | pinnn | Information & Answers | 43 | 2021-03-18 15:40 |
| Discrete logarithm software | Unregistered | Information & Answers | 39 | 2012-04-27 20:08 |
| The base of the logarithm in AKS algorithms | Sairam | Math | 34 | 2011-06-12 02:24 |
| Multiplication Tendency | clowns789 | Miscellaneous Math | 5 | 2005-03-11 00:23 |
| Montgomery Multiplication | dave_dm | Math | 2 | 2004-12-24 11:00 |