Log Function in mendix

0
n = ln(1/(1-(Pv*R)/P))/ln(1+R) How to add ln function in microflows
asked
2 answers
0

Hello Mahesh,

 

You can try the math module from the marketplace https://marketplace.mendix.com/link/component/112522.

Alternatively you can build your log logic in a java action utilizing Java math classes; and send these values as parameters to this action in a microflow.

Let me know if this helps.

 

Regards,

Shreyas

answered
0

image.png

Based on my formula in separated formula into 2 steps and add everything in string at the end i pass that value in java action but it throws error

[ln(-0.0000000002138563469932250260840754268221113)divln(0.09054166666666666666666666666666667)] checking ...[ln(-0.0000000002138563469932250260840754268221113)divln(0.09054166666666666666666666666666667)] lexical error 

Encountered " <IDENTIFIER> "divln "" at line 1, column 51.Was expecting one of:    <EOF>     "+" ...    "-" ...    "*" ...    "/" ...    "^" ...    "^^" ...    "#" ...    "!" ...    "%" ...    <EQ> ...    <NEQ> ...    "<" ...    "<=" ...    ">" ...    ">=" ...    <OR> ...    <AND> ...    "-->" ...    "<--" ...    "-/>" ...    "</-" ...    <NAND> ...    "<->" ...    <NOR> ...    <BITWISE> ...    "(+)" ...    [ln(-0.0000000002138563469932250260840754268221113)divln(0.09054166666666666666666666666666667)] errors were found.

answered