SKILL language predefined globals

Discussion in 'Cadence' started by analogsuperninja, Jan 31, 2009.

  1. Can someone direct me to a list of SKILL's predefined globals?

    For example, I'm not even sure how to calculate the area of a circle;
    "pi" is an "unbound variable". Surely the CIW knows the value of pi,
    right?
     
    analogsuperninja, Jan 31, 2009
    #1
  2. analogsuperninja

    erikwanta Guest

    You can use the defMathConstants function to define a symbol that you
    can use to access some predefined constants.
    defMathConstants('m)
    m
    m.PI
    3.141593
    m.??
    (SQRT_POINT_FIVE 0.7071068 SQRT_TWO 1.414214 TWO_OVER_SQRTPI
    1.128379 TWO_OVER_PI 0.6366198 ONE_OVER_PI 0.3183099
    PI_OVER_4 0.7853982 PI_OVER_2 1.570796 PI
    3.141593 LN10 2.302585 LN2 0.6931472
    LOG10E 0.4342945 LOG2E 1.442695 E
    2.718282 DBL_MIN 2.225074e-308 DBL_MAX 1.797693e+308
    INT_MIN -2147483648 INT_MAX 2147483647 SHRT_MIN
    -32768 SHRT_MAX 32767
    )
     
    erikwanta, Feb 1, 2009
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.