Board index » delphi » how can i use power in pascal ?

how can i use power in pascal ?

hi

how can i find the result of 0.25 powered by 0.38  in pascal?

cheers

 

Re:how can i use power in pascal ?


Quote
KOSOLMONTREE <Kajohnsak.Kosolmont...@ncl.ac.uk> wrote:
>how can i find the result of 0.25 powered by 0.38  in pascal?

When raising to a real power like that, base^power, use exp(
power * ln(base))

For integer powers there are better ways.

Jud McCranie

Re:how can i use power in pascal ?


In article <8jt06i$s8...@ucsnew1.ncl.ac.uk>,
Quote
KOSOLMONTREE  <Kajohnsak.Kosolmont...@ncl.ac.uk> wrote:

:how can i find the result of 0.25 powered by 0.38  in pascal?

E.g. by looking how it is done in the FAQ

 165966 Jan 8 2000 ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip
 tsfaqp.zip Common Turbo Pascal Questions and Timo's answers, linked

   All the best, Timo

--
Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives 193.166.120.5
Department of Accounting and Business Finance  ; University of Vaasa
mailto:t...@uwasa.fi <http://www.uwasa.fi/~ts/>  ; FIN-65101,  Finland
Timo's  FAQ  materials  at   http://www.uwasa.fi/~ts/http/tsfaq.html

Other Threads