Support » Plugin: Calculated Fields Form » problems with exponent equation

  • Resolved Chaoswolf

    (@mediaoase)


    I have a problem with the following equation.

    (C / P)^p * 10^6 / 60 * n

    C = fieldname 10
    upper-case P = fieldname 11
    lower-case p = fieldname 5
    n = fieldname 12

    this is the written code:

    pow(fieldname10/fieldname11,fieldname5) * pow(10, 6)/60*fieldname12

    The result shoud be 806,89 but the result of cff is 453874719.45563513 what is wrong here?

    Thanks in advance!

    • This topic was modified 4 months ago by Chaoswolf.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @mediaoase

    Let me know the values you are entering.

    Best regards.

    Thread Starter Chaoswolf

    (@mediaoase)

    how silly of me…

    P = 5,53
    C = 1,67
    p = 3
    n = 750

    thanks for the fast answer!

    Plugin Author codepeople

    (@codepeople)

    Hello @mediaoase

    The mathematical result of the equation:

    (1.67 / 5.53)^3 * 10^6 / 60 * 750

    is 344257.993014905

    You can check it with a calculator or Excel. And it is the same result calculated by our plugin:

    Best regards.

    Thread Starter Chaoswolf

    (@mediaoase)

    oh so sorry… there were missing brackets… how embrassing

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.