Menu

Math Functions in Custom Operation Scripting

2016-08-30
2016-09-16
  • Robert C King

    Robert C King - 2016-08-30

    Dear All,

    I need to calculate natural logarithms in my script. I have included a reference to the math library (import math
    from System import Array), however function log() does not work. Please advise what I am doing wrong. Thanks for your help.

    Regards,
    Bob King

     
  • Gustavo León

    Gustavo León - 2016-08-30

    Hi Robert,

    try calling the log function like this:

    math.log()

     
  • Gustavo León

    Gustavo León - 2016-08-30

    another way to call the function is including just the log function reference like this:

    from math import log

    and then you can call the log function this way:

    log()

     
  • Robert C King

    Robert C King - 2016-09-16

    Dear Gustavo,

    Thank you for your advice. Works fine now.

    Regards,
    Bob