How to use the EXP() function

Forums ProRealTime English forum ProOrder support How to use the EXP() function

Last updated 1 week, 2 days ago by avatar Despair.

8 post(s)
  • #49166

    Hi Folks

    I am trying to achieve the following:

    BaseNumber = 2

    Exp1 = (BaseNumber)^1 (i.e. 2)

    Exp2 = (BaseNumber)^2 (i.e. 4)

    Exp3 = (BaseNumber)^3 (i.e. 8)

    How do I code it using the EXP() function in ProOrder???

     

    #49176

    I don’t really understand what you try to do. EXP() gives you e^(the number in the brackets). So your base number (from your example) is not 2 but e=2.178….

    #49209
    avatarAVT

    This formula is used like

    exp(2) : is 2×2 = 4

    exp(3) : is 3×3 = 9

    exp(a) can only do ^2, for your example you would idealy have a math formula syntax exp(b,e) which accepts b=base and e=exponent.

    But you could try whether exp( exp(2) ) works.

    #49210

    I’m sorry but what you describe is just the square of a number. EXP() gives you the exponential function! It is e^(x) and this is approx 2.178^(x). Look at the pic attached. Here you see e^1=e=2.178…

    Attachments:
    #49213

     

    1 user thanked author for this post.
    avatar AVT
    #49214

    (PS: added the return line just to display it in ProBuilder, but obviously if this is to include in a ProOrder piece of code you’d get rid of the return line)

    1 user thanked author for this post.
    avatar AVT
    #49215
    avatarAVT

    @despair that’s the Euler number (DE: die Eulersche Zahl, sowas wie Pi für Logarithmus) and that’s why Noobywan has log(basenumber).

    #49221

    That’s what I was saying… 🙂

8 post(s)

Create your free account now and post your request to benefit from the help of the community
Register or