exponential function

Hello,

I'd like to know how to make for example:

3^3 + (-2)^2 + 5^1 + 5

in delphi?

In Visual basic, I need only to put the
"^" and everything is resolved..

but in Delphi, it doesn't work...

Comments

  • : Hello,
    :
    : I'd like to know how to make for example:
    :
    : 3^3 + (-2)^2 + 5^1 + 5
    :
    : in delphi?
    :
    : In Visual basic, I need only to put the
    : "^" and everything is resolved..
    :
    : but in Delphi, it doesn't work...

    As far as I know the only way to do that is with the Power function. So you could use:

    Power(3, 3) + Power(-2, 2) + Power(5, 1) + 5

    I think that's the way it goes anyway...I didnt bother opening up the help file to see for sure.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion