![]() |
|
|
#12 |
|
Aug 2006
3×1,993 Posts |
|
|
|
|
|
|
#13 |
|
∂2ω=0
Sep 2002
República de California
2D7716 Posts |
|
|
|
|
|
|
#14 | |
|
Feb 2007
24×33 Posts |
Quote:
efficiency(3,1) = 2.82... ;-) Last fiddled with by m_f_h on 2009-10-23 at 19:50 |
|
|
|
|
|
|
#15 |
|
∂2ω=0
Sep 2002
República de California
103·113 Posts |
True indeed, although one could argue this is due more to large granularity when #digits is small than anything else. If you do similarly with e replacing pi you get roughly half the efficiency(3,1).
But in a way it make perfect sense ... you can get within a few %accuracy for pi using just one digit, which is very efficient. If you want more accuracy, you have to sacrifice some efficiency. Perhaps the relevant question is "for a given desired level of accuracy, what is the most efficient approximation?" In that context, of one can gain accuracy with little or no sacrifice in efficiency it's a win. |
|
|
|
|
|
#16 |
|
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
23×1,223 Posts |
I was thinking (while traveling) of the p function that is used in chemistry.
p[x]=-log10(x) I would measure the efficiency as (subing r for p for clarity): E[x;r,q] = p[|x - r/q|] / (int(log10(r) + int(log10(q))) or E[x;r,q] = p[|x - r/q|] - (int(log10(r) + int(log10(q))) For decimal numbers this rewards accuracy, but doesn't punish numbers like 101 v. 999. I don't have time to run the formulas to show how well they work on 4, 3, 22/7, and 355/113. Last fiddled with by Uncwilly on 2009-10-24 at 00:18 |
|
|
|
|
|
#17 |
|
Noodles
"Mr. Tuch"
Dec 2007
Chennai, India
3×419 Posts |
Here is one interesting observation:
Take the continued fraction expansion of log 2, log 3, etc. for base = 10. wims.unice.fr is well equipped with excellent online calculators, plotters, interactive exercises, and then mathematical recreation tools. CFRAC calculator is available at wims.unice.fr website. log 2 1/3+ 1/3+ 1/9+ 1/2+ 1/2+ 1/4+ 1/6+ 1/2... The convergents are given by 1/3, 3/10, 28/93, 59/196, 146/485, 643/2136... 2Denominator is close to 10[SIZE=+1][SIZE=2]Numerator[/SIZE][/SIZE] That is, 8, 1024, 9903520314283042199192993792, etc. are all close to power of 10. Take log 3. 1/2+ 1/10+ 1/2+ 1/2+ 1/1+ 1/13+ 1/1+ 1/7+ 1/18... Convergents = 1/2, 10/21, 21/44, 52/109, 73/153, 1001/2098, 1074/2251, 8519/17855... 3[SIZE=+1][SIZE=2]Denominator[/SIZE][/SIZE] will be = 9 10460353203 984770902183611232881 9989689095948428268966921126195809393034773710522520293009978943147202723 Ok. Now for any general number say Will you have to examine for But, e follows up with a regular pattern, in its continued fraction expansion itself only... 2 + 1/1+ 1/2+ 1/1+ 1/1+ 1/4+ 1/1+ 1/1+ 1/6+ 1/1+ 1/1+ 1/8+ 1/1+ 1/1+ 1/10... You can even try out with But Last fiddled with by Raman on 2009-10-24 at 07:04 Reason: To fix up the TEX tag only... |
|
|
|
|
|
#18 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36·13 Posts |
For e, the efficient fraction just may be based on the fact that there's Leo Tolstoy year of birth, twice, then the angles of the right isosceles triangle (45,90,45), but we are not going to use the last part, so
(27+1828/9999)/10 = 271801/99990 ? Does CF sequence contain it? |
|
|
|
|
|
#19 |
|
Oct 2009
1012 Posts |
... An efficient integer representation of an irrational number is defined as two integers p/q which, when expressed as a decimal, gives at least as many significant digits as the sum of the digits in p and in q. ...
Finding an efficient representation for e is a little more challenging. While 2721/1001 (= 2.71828172) is accurate to more than one part in 9 million, it does not quite qualify as efficient, and, while 193/71 (= 2.71831) is borderline efficient, it is only accurate to about one part in 36,000. JB |
|
|
|
|
|
#20 | |
|
Dec 2008
you know...around...
29716 Posts |
Quote:
CF(e)___________=2,1,2,1,1,4,1,1,6,1,1,8,1,1,10,1,1,12,... CF(271801/99990)=2,1,2,1,1,4,1,1,6,1,1,8,1,1,5. |
|
|
|
|
|
|
#21 |
|
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
23·1,223 Posts |
I tweaked the formula such that the length of r and q work correctly.
So for a few chosen approximations (of pi) we have (the greater + the better) Code:
r q E 4 -0.93 3 -0.15 22 7 -0.10 333 106 -1.92 355 113 0.57 312689 99532 -0.46 |
|
|
|
|
|
#22 | |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36·13 Posts |
Quote:
49171/18089 = 2.7182818287357... (with Tolstoy still happy) |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Efficient Test | paulunderwood | Computer Science & Computational Number Theory | 5 | 2017-06-09 14:02 |
| k*b^n+/-c where b is an integer greater than 2 and c is an integer from 1 to b-1 | jasong | Miscellaneous Math | 5 | 2016-04-24 03:40 |
| Totally Awesome Graphical Representations of Data | Uncwilly | Lounge | 5 | 2015-10-05 01:13 |
| Most efficient way to LL | hj47 | Software | 11 | 2009-01-29 00:45 |
| Fischbach Representations. | Mr. P-1 | Puzzles | 5 | 2007-10-10 16:16 |