AutoHotkey Community

It is currently May 27th, 2012, 6:53 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: September 22nd, 2011, 9:55 pm 
Offline

Joined: November 24th, 2008, 7:22 pm
Posts: 73
For what it's worth, there is an error in the AHK nth root function here:
http://rosettacode.org/wiki/Nth_root#AutoHotkey

The square root of 2 is not 1.

Not sure if anyone wants to fix it; I didn't have time to study it when I found it.

Relayer


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 23rd, 2011, 8:07 pm 
Offline

Joined: September 6th, 2011, 5:42 pm
Posts: 25
Code:
    x1 := 1
    x2 := A / n
please check :
Code:
    x1 := A
    x2 := A / n


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 23rd, 2011, 8:31 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8667
Location: Salem, MA
did a quick test and fixed the Rosettacode page based on AndhiT's input.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 23rd, 2011, 9:06 pm 
... updated the output :wink:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 23rd, 2011, 9:08 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8667
Location: Salem, MA
:oops:

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group