Board index » delphi » Cubed root
Sven Pran
![]() Delphi Developer |
Mon, 01 Feb 1999 03:00:00 GMT
|
Sven Pran
![]() Delphi Developer |
Mon, 01 Feb 1999 03:00:00 GMT
Cubed rootQuoteJason Wallace wrote: case X of Quote>0.0 : Y := Exp ( Ln( X) / 3.0 ); end should do the trick regards Sven |
Jason Wallac
![]() Delphi Developer |
Mon, 01 Feb 1999 03:00:00 GMT
Re:Cubed rootAttention Math Majors... A friend of mine was asking if anyone knew how to code a way to Jason |
Glen McAllist
![]() Delphi Developer |
Mon, 01 Feb 1999 03:00:00 GMT
Re:Cubed rootIn article <3212DBAC.2...@alcatel.no>, Sven Pran <Sven.P...@alcatel.no> wrote: Quote>Jason Wallace wrote: funky property of a cube root? Glenn McAllister |
Kevin Davids
![]() Delphi Developer |
Mon, 01 Feb 1999 03:00:00 GMT
Re:Cubed rootGlen McAllister wrote in a message appearing on comp.lang.pascal.delphi.components.misc: Quote>In article <3212DBAC.2...@alcatel.no>, Sven Pran <Sven.P...@alcatel.no> It will work in general, except for even numbered roots of negative -- |
Mark Edwar
![]() Delphi Developer |
Tue, 02 Feb 1999 03:00:00 GMT
Re:Cubed rootQuoteJason Wallace wrote: Quote>>case X of Quote>Does this technique extend to n'th roots? Or is it just some divided by N. You can have positive and negative values for the root (but I forget if that is only for the odd-values like 3,5,7, etc.) Basically, N-root of X equals Ln(X)/N Hope that helps. Mark Edwards |
Jonathan Coupe
![]() Delphi Developer |
Tue, 02 Feb 1999 03:00:00 GMT
Re:Cubed rootQuoteJason Wallace wrote: You didn't look hard enough. Since (x ** a) ** b = x ** (a * b), it follows that (x ** 1/3) ** 3 = x ** 1 = x So cube-root of x is Power (x, 1/3) Ain't that so? J. |
Steve Du
![]() Delphi Developer |
Tue, 02 Feb 1999 03:00:00 GMT
Re:Cubed rootIn article <3212DE1F.3...@DarkElf.reno.nv.us>, E...@DarkElf.reno.nv.us says... Quote
=steve |
Sundial Servic
![]() Delphi Developer |
Tue, 02 Feb 1999 03:00:00 GMT
Re:Cubed rootQuoteIn article <3214C0CC.2...@math.okstate.edu> David Ullrich <ullr...@math.okstate.edu> writes: The logarithm of X^2 is exactly twice the logarithm of X. Seriously folks, one of the nicest books on my shelves, besides the large I don't know if anyone has done a web-site on algorithms yet, but I'd sure /mr/ |
David Ullric
![]() Delphi Developer |
Tue, 02 Feb 1999 03:00:00 GMT
Re:Cubed rootQuoteMark Edwards wrote: is the aquare of the hypotenuse. (Would include comments of a more constructive nature but the -- ?his ?s ?avid ?llrich's ?ig ?ile |
John Beste
![]() Delphi Developer |
Tue, 02 Feb 1999 03:00:00 GMT
Re:Cubed rootNot quite, in case of a cubed root, this routine rightly gives you an Quote> snowl...@igs.net (Glen McAllister) wrote in article Quote> In article <3212DBAC.2...@alcatel.no>, Sven Pran <Sven.P...@alcatel.no> |
John Beste
![]() Delphi Developer |
Tue, 02 Feb 1999 03:00:00 GMT
Re:Cubed rootNot quite, if you stick n in the place of 3, you should check if (x < 0) Quote> snowl...@igs.net (Glen McAllister) wrote in article Quote> In article <3212DBAC.2...@alcatel.no>, Sven Pran <Sven.P...@alcatel.no> |
Dallas Jon
![]() Delphi Developer |
Thu, 04 Feb 1999 03:00:00 GMT
Re:Cubed rootQuotesund...@primenet.com (Sundial Services) wrote: Quote
take a look at : http://paris.lcs.mit.edu/~bvelez/std-colls/cacm/index.html The page is an algorithm bibliography in the form of a one page 300K ------------------------------------------------------------ |
Sigitas Grebliuna
![]() Delphi Developer |
Mon, 08 Feb 1999 03:00:00 GMT
Re:Cubed rootJason Wallace <E...@DarkElf.reno.nv.us> wrote in article Quote> Attention Math Majors... begin Sqrt3 := Exp(Ln(X)/3); {Both functions defined in System} end; |
Rodney Wils
![]() Delphi Developer |
Fri, 12 Feb 1999 03:00:00 GMT
Re:Cubed rootQuoteIn article <4uvkcv$...@host.igs.net>, snowl...@igs.net (Glen McAllister) wrote: if (( N mod 2 ) = 1) and ( X < 0.0 ) then Also Note, Ln(-X) will produce an error result. -- |