Mathematical functions power

Forums ProRealTime English forum ProBuilder support Mathematical functions power

  • This topic has 9 replies, 4 voices, and was last updated 6 years ago by avatarMaz.
Viewing 10 posts - 1 through 10 (of 10 total)
  • #30535

    Is there a Prorealtime POWER math function e.g.

    y = x^3  as in 4^3 = 64?

     

    #30539

    Unfortunately no, this is a already a query for new instruction in the users wish list: https://www.prorealcode.com/topic/centralization-of-queries-and-suggestions-on-prorealtime/

    The best you could do to get the result of this math function is by making a loop like this:

    Let me know if it’s clear for you.

    #30547

    Hi Nicolas

    Thanks for the prompt reply!

    I have found a mathematical equivalent if the Prorealtime LOG function (called Napierian log in the manual) is actually the common LN function:

    y = x^p = e^(p*LN(x))

    This could then be coded as:

    y = EXP(p*LOG(x))

    This works fine.

    W

     

    6 users thanked author for this post.
    #30680

    Thanks for your answer wessel 😉

    How did you know that ?

    1 user thanked author for this post.
    #30778

    I had to do a bit of math research…  Prorealtime could use this formula to create an easy power math function.

     

    B-)

    2 users thanked author for this post.
    #34416
    Maz

    facepalm

    #34426
    Maz

    I have a power function like this?

     

    1 user thanked author for this post.
    #34428
    Maz

    Here’s tanh (subsequently sinh and cosh)

     

     

    See above for powers

    2 users thanked author for this post.
    #34439

    Great job Maz!

    1 user thanked author for this post.
    avatar Maz
    #34483
    Maz

    You’re welomce; unfortunately it’s very slow but that’s all we have for now 🙂

Viewing 10 posts - 1 through 10 (of 10 total)

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