Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Logarithmus Funktion (https://www.delphipraxis.net/146154-logarithmus-funktion.html)

Wolfgang Mix 14. Jan 2010 18:23

Re: Logarithmus Funktion
 
... und hier ein CodeSchippsel für ln mit ner Taylor-Reihe:

Delphi-Quellcode:
function my_ln (x:real):real;
Var i,n:integer; s,ds:real;
Begin
   s:=0;
   for i:=1 to steps do
   begin
      n:=2*i-1;
      ds:=(x-1)/(x+1);
      ds:=my_pow(ds,n)*1/n;
      s:=s+ds;
   end;
   my_ln:=s*2;
End;
Medium schrieb:
Zitat:

Da bin ich mal auf deine Schleife für e^-3,1415927 gespannt Wink
Was ist an der Zahl so spannend?


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:00 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz