Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Algorithms
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
Edited 23-Nov-12 21:40pm
v2
Comments
n.podbielski at 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 at 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 at 15-Nov-12 12:55pm
   
Actually it is (1 + sqrt(5))/2 (not sqrt(0.5))
n.podbielski at 16-Nov-12 8:49am
   
You are right. I don,t know how this happend. :)
YvesDaoust at 25-Feb-13 12:36pm
   
What is Alchemi ?
YvesDaoust at 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 at 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
0 Sergey Alexandrovich Kryukov 6,725
1 OriginalGriff 6,696
2 CPallini 5,315
3 George Jonsson 3,589
4 Gihan Liyanage 2,650


Advertise | Privacy | Mobile
Web04 | 2.8.140921.1 | Last Updated 24 Nov 2012
Copyright © CodeProject, 1999-2014
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