Go Back   Science Forums
View Single Post
Old 11-07-2008   #29 (permalink)
modest's Avatar
modest
Creating


Location:
U.S. Midwest
 
modest has a reputation beyond reputemodest has a reputation beyond reputemodest has a reputation beyond reputemodest has a reputation beyond reputemodest has a reputation beyond reputemodest has a reputation beyond reputemodest has a reputation beyond reputemodest has a reputation beyond reputemodest has a reputation beyond reputemodest has a reputation beyond reputemodest has a reputation beyond repute
 



Not Ranked  0 score     
Re: The Holy Grail Of Mathematics.

Quote:
Originally Posted by Don Blazys
This is exciting!
I agree

Using Qfwfq's derivative and newton's method (starting at 6.22) with perl at 100 digit accuracy I get:

6.220715628778645210593969670313416058685026190653 40698446526069757873158980184498130804275755047236 1

I'm out of my depth with this so this result should be verified. I'm also concerned and very confused that this converged after only 7 iterations. I wasn't expecting that at all. I used:
x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}\,\!
Algorithm:
Code:
use Math::BigFloat;

$n = 1;

my $x = Math::BigFloat->new(6.22 ,100);
my $half = Math::BigFloat->new(0.5 ,100);
my $one = Math::BigFloat->new(1 ,100);

while ($n < 10) {
    $xtohalf = $x->copy()->bpow($half);
    $logx = $x->copy()->blog();
    $loglogx = $logx->copy()->blog();
    $sinxtohalf = $xtohalf->copy()->bsin();
    $fx = $sinxtohalf->bsub($loglogx);
    $cosxtohalf = $xtohalf->copy()->bcos();
    $xtohalf2 = $xtohalf->copy()->bmul(2);
    $xlogx = $x->copy()->bmul($logx);
    $a = $cosxtohalf->bdiv($xtohalf2);
    $b = $one->copy()->bdiv($xlogx);
    $fpx = $a->bsub($b);
    $c = $fx->bdiv($fpx);
    $x->bsub($c);


print "iteration number $n: $x \n";
$n += 1;
    }
Output:
Code:
iteration number 1: 6.2207156179471774117867122228858042459075718269744372662836
23662266398210344786538184650666024140324
iteration number 2: 6.2207156287786452081126066015652927240261786788708637739507
49260445300617582198175750501665456398001
iteration number 3: 6.2207156287786452105939696703134160585548006057806747212612
23028733807513931628148855900138989610367
iteration number 4: 6.2207156287786452105939696703134160586850261906534069844652
60697578731589801486300349586510071804013
iteration number 5: 6.2207156287786452105939696703134160586850261906534069844652
60697578731589801844981308042757550472360
iteration number 6: 6.2207156287786452105939696703134160586850261906534069844652
60697578731589801844981308042757550472363
iteration number 7: 6.2207156287786452105939696703134160586850261906534069844652
60697578731589801844981308042757550472361
iteration number 8: 6.2207156287786452105939696703134160586850261906534069844652
60697578731589801844981308042757550472361
iteration number 9: 6.2207156287786452105939696703134160586850261906534069844652
60697578731589801844981308042757550472361
~modest


----------------
Reply With Quote
 
» Advertisement
» Current Poll
Who's the sexiest man alive? Johnny Depp or Robert Pattinson?
Johnny Depp - 27.27%
3 Votes
Robert Pattinson - 0%
0 Votes
Someone else (please specify) - 45.45%
5 Votes
I'm too macho to think a guy is sexy - 27.27%
3 Votes
Total Votes: 11
You may not vote on this poll.


All times are GMT -8. The time now is 09:42 PM.

Hypography?

Hypography [n.]: A combination of "hyperlink" and "bibliography" - ie, a list of links to electronic documents. Comparable to discography and bibliography, but not cartography.

We have been online since May 2000, and aim to be the best place to find and share science-related content of all kinds.

Share the love!

Please add more science to your life. Use our RSS feeds on your blog, your portal, or your favorite feedreader!


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000-2009 Hypography
Part of the Hypography - Science for Everyone Network