Go Back   Science Forums > Physical Sciences Forums > Physics and Mathematics
Reply
 
LinkBack Thread Tools
Old 11-04-2008   #21 (permalink)
freeztar's Avatar
M.C. Grillmeister

Moderator
Editor
Basic Subscription
Sponsor

Location:
ATL, GA, USA
Latest blog entry:
 
freeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond repute
 



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

Quote:
Originally Posted by Don Blazys View Post
To: Freeztar,

Thanks for the information. It's important that at least one mathematician/computer whizz here at hypography be able to determine the root of the expression:

sin(x^(1/2))-ln(ln(x))

which is approximately x= 6.2207156287788...

to as many decimal places as possible, because a similar calculation is necessary in my formula. The better the approximation, the more primes will be generated in order of magnitude! It's really amazing!

Don.
You can probably get what you need by using Maxima. I've only tinkered with it, but found it unintuitive and haven't pursued it since.

It's free, so it's worth a shot if you have some time on your hands and don't mind learning how to use it.


----------------
Hypography Science Forums Moderator
---
"There are no passengers on Spaceship Earth. We are all crew." - Marshall McLuhan

"We must not forget that when radium was discovered no one knew that it would prove useful in hospitals. The work was one of pure science. And this is a proof that scientific work must not be considered from the point of view of the direct usefulness of it." - Marie Curie
Reply With Quote
Old 11-05-2008   #22 (permalink)
Don Blazys's Avatar
Questioning


 



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

To: Freeztar,

Thanks again, I will try to get the one of the computer teachers at my school to help get me started, but in order for other Hypographers to duplicate and verify my results, they will also have to aquire the capability to determine such roots to as many decimal places as possible.

Don.
Reply With Quote
Old 11-05-2008   #23 (permalink)
Pyrotex's Avatar
Slaying Bad Memes

Moderator
Editor

Location:
Houston, Texas
Latest blog entry:
 
Pyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond reputePyrotex has a reputation beyond repute
Send a message via MSN to Pyrotex
 



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

Quote:
Originally Posted by Don Blazys View Post
...Meanwhile, can anyone beat my measly 13 decimal place calculation in my previous post?...
Yup!

Do your calculations in the computer language PERL. It comes with a math package that performs all calcs to 60 (that's sixty) decimal places.

Pyro


----------------
Hypography Forums Moderator
-- - - - - -
What concerns me is not the way things are, but rather the way people think things are.
Epictetus, Greek Philosopher
The map is NOT the territory.
Korzybski, Polish-American Philosopher
Reply With Quote
Old 11-05-2008   #24 (permalink)
modest's Avatar
Creating

Moderator

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 Pyrotex View Post
Do your calculations in the computer language PERL. It comes with a math package that performs all calcs to 60 (that's sixty) decimal places.
A book that might help with this: Mastering Algorithms with Perl

A relevant preview:

Quote:
Originally Posted by Book Preview
A root of a function y=f(x) is the x value at which y is zero. In this section, we'll look at how to find roots of functions, via both closed-form solutions that generate exact answers for polynomials and iterative methods that creep up on the roots of any function.

The first step in solving an equation is determining what type of equation you have. If you have only a single polynomial (for instance, you want to find where -5x^2+3x+7 is equal to 9), you can express that as -5x^2+3x-2=0 and use the technique in Section 16.2.1 later in this chapter to find the value of x for which this is true, as long as the polynomial has no exponent higher than 3.

If you have a higher-degree polynomial, or a nonlinear equation, use the Newton method described in Section 16.2.2.

If you have multiple linear equations, use Gaussian elimination, described in Section 7.12 in Chapter 7. There are many optimizations that you can make if your equations fit certain criteria, but that's beyond the scope of this book. Consult any of the sources in Section A.4 in Appendix A for more detail.

If you have multiple nonlinear equations, use the multidimensional Newton method described in Section 16.2.3 later in this chapter.

-source
~modest


----------------
Reply With Quote
Old 11-06-2008   #25 (permalink)
Qfwfq's Avatar
Exhausted Gondolier

Administrator

Location:
Floating On An Ocean Of Hydrogen
 
Qfwfq has a brilliant futureQfwfq has a brilliant futureQfwfq has a brilliant futureQfwfq has a brilliant futureQfwfq has a brilliant futureQfwfq has a brilliant futureQfwfq has a brilliant futureQfwfq has a brilliant future
 



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

Actually Don's case is of one variable so neither Gauss-Seidel nor Newton-Raphson are necessary. I think the best bet is to use Newton's method; the derivative isn't all that wicked; unless I've made one of my terrible blunders it's:

f(x)=\sin x^{\frac12}-\ln\ln x

f'(x)=\frac{\cos x^{\frac12}}{2x^{\frac12}}-\frac{1}{x\ln x}

Now to reach 60 decimal places, starting from the value already estimated, prolly takes quite a lot of iterations and, since consecutive values will certainly be within the convergence basin, it might be worthwile using an alteration of Newton's method which I have tried in the past but I'm not sure which would be computationally less intensive. It depends on the weight of one extra ln and subtraction against an extra multiplication and three extra divisions; if the natural logarithm is lightweight enough in perl the trick could be faster.


----------------
Inutil insegnà al mus, si piart timp, in plui si infastidìs la bestie.

Hypography Forum PITA...... er, Administrator.

Last edited by Qfwfq; 11-06-2008 at 03:05 AM..
Reply With Quote
Old 11-06-2008   #26 (permalink)
CraigD's Avatar
Creating

Administrator
Editor

Location:
Silver Spring, MD, USA
 
CraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond repute
 



Not Ranked  0 score     
Smile A promise and a teaser

Quote:
Originally Posted by Qfwfq View Post
If you really find it important to improve precision on that computation you could always contruct an ad hoc numeric type or use a language which handles higher precision, perhaps Craig's favourite language would suit the purpose.
All of my favorite hand-made calculators are exact precision integer and rational number based, but I could cobble together trig and logarithm approximating functions to some defined precision pretty quickly, and solve

\sin x^{\frac12}-\ln\ln x = 0

Using a simple binary search. An answer to a couple of thousand decimal digits precision shouldn’t be too hard.

I’ve lotsa work today, and play plans for tonight, but hopefully can post a result late tonight or tomorrow. As a teaser, here’s an approximation of \sin 2 using a common infinite series,

\sin x = x - \frac{x^3}{3!} +\frac{x^5}{5!} - \frac{x^7}{7!} + \dots

Code:
ZL HPM
s X=2
s A=0,(B,C)=X,(D,E)=1 F CT=1:1 D RD(.I,C,D),RA(.A,A,I),RM(.C,C,B),RM(.C,C,B),RA(.E,E,1),RM(.D,D,E),RA(.E,E,1),RM(.D,D,"-"_E) W CT,". ",A," =~",@A,! R R
1. 2/1 =~2
2. 2/31 =~.6666666666666666667
3. 14/151 =~.933333333333333333
4. 286/3151 =~.9079365079365079365
5. 2578/28351 =~.9093474426807760141
6. 141782/1559251 =~.9092961359628026295
7. 5529506/60810751 =~.9092974515196737419
8. 580598114/6385128751 =~.9092974264614476255
...
31. 53824986296478094273294897582567285743149004618784793429340024238/59194037845657181864228121483295877940276107097847234991455078125 =~.9092974268256816954
31 iterations gives about 65 digits precision.


----------------
Moderator: Computers and Technology; Medical Science; Science Projects and Homework; Philosophy of Science; Physics and Mathematics; Environmental Studies
Reply With Quote
Old 11-06-2008   #27 (permalink)
freeztar's Avatar
M.C. Grillmeister

Moderator
Editor
Basic Subscription
Sponsor

Location:
ATL, GA, USA
Latest blog entry:
 
freeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond reputefreeztar has a reputation beyond repute
 



Not Ranked  0 score     
Re: A promise and a teaser

Quote:
Originally Posted by CraigD View Post
An answer to a couple of thousand decimal digits precision shouldn’t be too hard.
I suggest you see a doctor, Craig. It sounds like you have the MUMPS!


----------------
Hypography Science Forums Moderator
---
"There are no passengers on Spaceship Earth. We are all crew." - Marshall McLuhan

"We must not forget that when radium was discovered no one knew that it would prove useful in hospitals. The work was one of pure science. And this is a proof that scientific work must not be considered from the point of view of the direct usefulness of it." - Marie Curie
Reply With Quote
Old 11-06-2008   #28 (permalink)
Don Blazys's Avatar
Questioning


 



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

This is exciting!

Don.
Reply With Quote
Old 11-07-2008   #29 (permalink)
modest's Avatar
Creating

Moderator

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
Old 11-07-2008   #30 (permalink)
Don Blazys's Avatar
Questioning


 



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

To: Modest,

Hopefully, CraigD will be able to verify your calculation. Even if it's good to only 20 or 30 decimal places, that would still be a significant improvement over my ability to make these types of calculations, and your participation would therefore help greatly towards presenting empirical evidence that my formula will indeed generate the entire (endless) sequence of primes, in order of magnitude, using only the constants pi and e!

Don.
Reply With Quote
Reply

Bookmarks

Tags
mathematics


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bloodline of the Holy Grail Book Reviews RedX Books, movies, games 0 10-04-2008 07:23 PM
The holy grail of nano technology, assemble structures from the atom up!!! Gardamorg Physics and Mathematics 38 09-06-2008 05:45 PM
The holy grail amidst Watercooler 7 02-03-2008 06:29 PM
King Arthur, Arthurian Legends, & The Holy Grail maikeru Books, movies, games 2 10-27-2007 08:28 AM
The Holy Grail- ingredients for the best potting mix (gardening Forums) Michaelangelica Environmental Studies 0 10-22-2007 08:46 PM

» Advertisement
» Current Poll
Should Hypography have a forum dedicated to Plant Sciences?
Yes - 69.57%
16 Votes
No - 13.04%
3 Votes
Maybe - 17.39%
4 Votes
Total Votes: 23
You may not vote on this poll.


All times are GMT -8. The time now is 01:14 AM.

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.
Search Engine Optimization by vBSEO 3.3.2
Copyright © 2000-2009 Hypography
Part of the Hypography - Science for Everyone Network