Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Exponents in Turbo Pascal

  1. Dec 9, 2003 #1
    I'm doing a projext for school and I need to know how to use the ^ operator or if it even exists i looked everywhere and couldent find it.
     
  2. jcsd
  3. Dec 9, 2003 #2

    dduardo

    User Avatar
    Staff Emeritus

  4. Dec 9, 2003 #3
    thanks
     
  5. Dec 9, 2003 #4

    chroot

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Pascal, IIRC, doesn't have an exponentiation operator, but it does have built-in exp() and ln() functions, which can be composed as:

    exp(y*LN(x))

    which is the same as xy.

    - Warren
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Exponents in Turbo Pascal
  1. Please help pascal (Replies: 1)

  2. Pascal question (Replies: 9)

  3. Pascal question2 (Replies: 0)

  4. Turbo Debugger (Replies: 1)

Loading...