Announcement

Collapse
No announcement yet.

wie kann man mit Delphi die 10. Wurzel aus einer Zahl ziehen?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • wie kann man mit Delphi die 10. Wurzel aus einer Zahl ziehen?

    wie kann man mit Delphi die 10. Wurzel aus einer Zahl ziehen?
    <br>
    Diese Frage sagt eigentlich schon alles.
    wie Man normale Wurzel zieht ( 'sqrt(Zahl)' ) is Mir klar, aber ich will die 10. [9., 8., n.] Wurzel ziehen. Geht das?
    <br>
    Mfg, Christian.
    If it's there and you can see it – it's REAL
    If it's there and you can't see it – it's TRANSPARENT
    If it's not there and you can see it – it's VIRTUAL
    If it's not there and you can't see it – it's GONE!

  • #2
    Hi, Also aus der Schule weiß ich noch das man
    anstatt mit SQRT(Zahl) auch folgende Formel verwenden kann:
    Zahl HOCH (1/2)! Das Heißt deine Zahl HOCH (1/10) entspricht der 10'en Wurzel deiner Zahl! ;-

    Comment


    • #3
      Danke,
      aber wie geht das mit delphi?
      Muss ich da ne schleife machen?
      &#10
      If it's there and you can see it – it's REAL
      If it's there and you can't see it – it's TRANSPARENT
      If it's not there and you can see it – it's VIRTUAL
      If it's not there and you can't see it – it's GONE!

      Comment


      • #4
        Hi!

        Das müßte mit der funktion Power gehen. Die hat folgenden Aufbau:
        Power(Basis, Exponent). Rückgabewert der Funktion ist glaub ich Double. Schau besser mal in der Hilfe nach. Bei dir sollte das dann so aussehen:

        Ergebnis:= Power(Zahl, (1/10)); { Für die 10'te Wurzel }

        Allgemein kann man sagen:

        Ergebnis:= Power(Zahl, (1/n)); { Für die n'te Wurzel aus derZahl }

        Hoffe das hilft dir weiter!

        Gruß

        Carste

        Comment


        • #5
          Danke, das hat mir sehr geholfen.
          Gruss, Christia
          If it's there and you can see it – it's REAL
          If it's there and you can't see it – it's TRANSPARENT
          If it's not there and you can see it – it's VIRTUAL
          If it's not there and you can't see it – it's GONE!

          Comment

          Working...
          X