Re: wurzel von 0,5
ja ich denke weil single = 1.5x10^-45 und 3.4x10^38 ist :)
|
Re: wurzel von 0,5
Zitat:
|
Re: wurzel von 0,5
hab ma noch schnell eine frage :)
Delphi-Quellcode:
= 2^2 oder?
e:=2
e/ln(2) |
Re: wurzel von 0,5
Nein das ist 2/ln(2).
ln(2) ist ungefähr 0,69 oder sowas wenn ich mich nicht täusche. Ich gehe davon aus das du keine Ahnung hast was ln ist oder? |
Re: wurzel von 0,5
doch Logarithmus eines Real-Ausdrucks
ich hab mir gedacht das es falsch ist aber ich hab es so gefunden gehabt wie mache ich den 2^2 |
Re: wurzel von 0,5
ln ist der Natürliche Logarithmus. Siehe: Eulerische Zahl und Logarithmus Naturalis
Für 2^2 gibt es Power oder IntPower (uses -> Math) Gruß Neutral General |
Re: wurzel von 0,5
Zitat:
Code:
empfehlen, anstatt einfach Math einzubinden ;) .
a^b = Exp(a * ln(b))
|
Re: wurzel von 0,5
zum Potenzieren gibts die Function Power in der Unit Math ;)
...zu spät... ;) |
Re: wurzel von 0,5
Zitat:
|
Re: wurzel von 0,5
was ist den eine ungültige gleitkomma operation?
Delphi-Quellcode:
so geb ich jetzt bei edit2.text eine 2 ein sagt er ungültiger gleitkomma........ var aa,d,dd,ab,cd,ba,bb, cc,c:string; a,b,y:integer; q,w,e,r,rw,t,z,u,i,o,p,x:single; ab:=edit4.text; q:=strtofloat(ab); cc:=edit2.text; //radius =w w:=strtofloat(cc); e:=w*(t*2); edit5.text:=FloatToStr(e);//4 kanten //_____ r:= sqrt (2*w*(w-(sqrt (w*2)-0.25*(e*2)))); edit6.text:=FloatToStr(r); //WURZEL(2*$B$2*($B$2-(WURZEL(POTENZ($B$2;2)-0,25*POTENZ(F4;2))))) r:= sqrt (2*w*(w-(sqrt (w*2)-0.25*(r*2)))); edit7.text:=FloatToStr(r); was is den da los |
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:30 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz