Problem with MathExpressionBlock

Aiko
Aiko Altair Community Member
edited October 2020 in Community Q&A

Hello,

 

i have a pretty confusing problem with the MathExpression Block. As you can see in the Screenshot, the Block computes a different value than the exact same expression in the oml command window.

 

What's the reason for this?

 

Screenshot

 

Best Regards

Aiko

Answers

  • robertavarela
    robertavarela New Altair Community Member
    edited May 2020

    I guess you should use tanh(u1/u2) instead of tanh(u(1)/u(2))

    image.png.0e5dba154e365ba67cfed52c12a1fa68.png

    Regards,

     

    Roberta

  • Aiko
    Aiko Altair Community Member
    edited May 2020

    Thanks, it works now! :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />

     

    Regards,

    Aiko