#### Howdy, Stranger!

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

# exponential function

Member Posts: 61
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...

• Member Posts: 1,621
: 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.
• USAMember Posts: 0

_________ ( http://forcoder.org ) free ebooks and video tutorials about ( Swift, Go, JavaScript, Ruby, C#, Perl, C++, MATLAB, PHP, R, PL/SQL, C, Visual Basic, Assembly, Scratch, Objective-C, Delphi, Java, Python, Visual Basic .NET ML, D, Lisp, FoxPro, Prolog, Transact-SQL, LabVIEW, Alice, Dart, COBOL, Logo, Hack, Ada, Erlang, Crystal, Apex, Bash, Fortran, VBScript, Lua, Scala, ABAP, Kotlin, Clojure, Awk, Julia, SAS, Rust, F#, Scheme ) _____________