Mathematics With Delphi (Exp & Log)

14 05 2009

Setelah membuat program sederhana delphi dengan operasi matematika (Trigonometri dan Sqrt) selanjutnya pada tulisan kali ini akan di buat program delphi dengan operasi matematik Eksponensial dan Logaritma!

Eksponensial (Exp) :

var
  float : Double;
begin
  float := Ln(2);
  ShowMessage('Ln(2) = '+FloatToStr(float));

  float := Exp(float);
  ShowMessage('Exp(Ln(2)) = '+FloatToStr(float));
end;

Logarithm (Log) :

begin
  ShowMessage('Log10(1)  = '+FloatToStr(Log10(1)));
  ShowMessage('Log10(5)  = '+FloatToStr(Log10(5)));
  ShowMessage('Log10(10) = '+FloatToStr(Log10(10)));
end;

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: