|
-
May 18th, 2000, 06:51 PM
#1
Thread Starter
New Member
-
May 18th, 2000, 07:11 PM
#2
Fanatic Member
Code:
Public Function nSqr(ByVal number as Double, _
ByVal n as Double) as Double
nSqr = number ^ (1 / n)
End Function
'Usage:
Label1.Caption = nSqr(81, 4) 'returns 3
Label1.Caption = nSqr(27, 3) 'returns 3
Bit of rough code, but it should do the trick
Hope it helps 
[Edited by r0ach on 05-19-2000 at 02:13 PM]
r0ach™
Don't forget to rate the post
-
May 18th, 2000, 07:26 PM
#3
Hyperactive Member
Or...
Code:
Public Function NthRoot(num As Double, RootOrdinal As Double) As Double
NthRoot = Exp(Log(num) / RootOrdinal)
End Function

Dan
-
May 18th, 2000, 08:33 PM
#4
Thread Starter
New Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|