Click here to Skip to main content
13,146,739 members (80,200 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
Hi everyone!
I have a exercise about parallel computing. My exercise is about calculating Golden ratio with Alchemi, i have to find out nth digit of this number but i don't know how. Someone could help me!!!
(Sorry, my english is really bad (>.<)! )
Posted 15-Nov-12 0:47am
Updated 23-Nov-12 21:40pm
v2
Comments
n.podbielski 15-Nov-12 7:10am
   
What algorithm? It is a number (1+0.5^0.5)/2
http://en.wikipedia.org/wiki/Golden_ratio
silverhand1990 16-Nov-12 7:14am
   
If you want to have a Golden ratio with 1000 floating point numbers ? That's why i need an algorimth to calculate it. To calculating it, we have Newton Method but this Method cannot use in parallel computing...
Matt T Heffron 15-Nov-12 12:55pm
   
Actually it is (1 + sqrt(5))/2 (not sqrt(0.5))
n.podbielski 16-Nov-12 8:49am
   
You are right. I don,t know how this happend. :)
YvesDaoust 25-Feb-13 12:36pm
   
What is Alchemi ?
YvesDaoust 25-Feb-13 12:42pm
   
Your problem statement is incomplete. You first need to decide what method to use for the computation.
If the goal is just to practice parallel programming, you can pick any algorithm, even inefficient.
If the goal is to really accelerate the computation, then you need 1) to compute a huge number of decimals (otherwise it is not worth the trouble) and 2) to have a truly good sequential algorithm.
YvesDaoust 25-Feb-13 12:44pm
   
Do you need to find all N first digits, or just the Nth ?
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Please have a look into the following links

1. Calculate Golden ratio[^]
2.Golden ratio calculator[^]
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 24 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100