Board index » delphi » Power Operators

Power Operators

In article <3uiu6v$...@caesar.wits.ac.za>,
Quote
Saul Tombuk <stom...@inyanga.cs.wits.ac.za> wrote:

:I have just started using  Borland's new language 'DELPHI' and I can't find a
:POWER operator. I often need to implement equations such as:
:y=x^0.5+x^3+x^1.5...etc

In fact what you are asking is not just a Delphi specific question
but generic to most if not all Pascals. You can find both the
trivial and a general solution in

 83677 Jul 5 11:46 ftp://garbo.uwasa.fi/pc/ts/tsfaqp25.zip
 tsfaqp25.zip Common Turbo Pascal Questions and Timo's answers

   All the best, Timo

....................................................................
Prof. Timo Salmi   Co-moderator of news:comp.archives.msdos.announce
Moderating at ftp:// & http://garbo.uwasa.fi archives  193.166.120.5
Department of Accounting and Business Finance  ; University of Vaasa
t...@uwasa.fi http://uwasa.fi/~ts BBS 961-3170972; FIN-65101,  Finland

 

Re:Power Operators


Hello

Help.........................

I have just started using  Borland's new language 'DELPHI' and I can't find a
POWER operator. I often need to implement equations such as:
y=x^0.5+x^3+x^1.5...etc

I wrote a power function using the LN and EXP functions, however I
was wondering how I can create a new power operator.

( I can't believe that a modern programming language cannot have a power
operator. )  

Any help would be greatly appreciated.

Please reply to this newsgroup or the email address below

Many thanks

Gavin Latsnitsky

--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==
Saul Tombuk -  stom...@inyanga.cs.wits.ac.za
"You know the world's in trouble when the it takes over a thousand laws to
implement the ten commandments" - Alfred E. Neuman.
--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==

Other Threads