Jump to content
Fórum Script Brasil
  • 0

[resolvido] Cálculo Com Raiz


tux_boy
 Share

Question

2 answers to this question

Recommended Posts

  • 0

No Help do Delphi econtramos

Raises Base to any power.

Unit

Math

Category

Arithmetic routines

function Power(Base, Exponent: Extended): Extended;

Description

Power raises Base to any power. For fractional exponents or exponents greater than MaxInt, Base must be greater than 0.

Descrição

Power raises Base to any power. Para expoentes fracionários ou expoentes maior que MaxInt, Base deve ser maior que 0.

Exemplo:

uses Math;

procedure TForm1.BitBtn1Click(Sender: TObject);
var result : real;
begin
  result := Power(32,1/5);  // Raiz 5ª de 32
  label1.Caption := floattostr(result);
end;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Forum Statistics

    • Total Topics
      150.2k
    • Total Posts
      647.4k
×
×
  • Create New...