KerML 1.1b1 RTF Avatar
  1. OMG Issue

KERML11 — Functions missing (for SysPhSv2)

  • Key: KERML11-202
  • Status: open  
  • Source: NIST ( Mr. Conrad Bock)
  • Summary:

    KerML's missing some functions needed by SysPhSv2 to support equations written in the KerML/SysML expression language. They're taken from Modelica's operators, but the names in KerML could be different, of course.

    Numeric:

    • sign Result is one of {-1, 0, 1}
    • mod Modulo, including for reals, see below comparing to remainder
    • div Division rounded to next lower or equal integer, eg, div(13,6) = 2, see below comparing to related functions.
    • ceil Real rounded to next greatest or equal integer. Could include floor, for completeness.

    Trigonometry: tanh, atan2, sinh, cosh. Could be more, of course

    Logarithms: log, log10 Base e and 10.

    Derivative: der Differs from the others in requiring simulation to evaluate.

    Might need Modelica rem, if KerML's % operator (remainder) is not the same, eg,

      rem(3,1.4)  = 0.2
    
      rem(-3,1.4) = -0.2
    
      rem(3,-1.4) = 0.2
    

    compared to Modelica mod, eg

      mod(3,1.4)  = 0.2
    
      mod(-3,1.4) = 1.2
    
      mod(3,-1.4) = -1.2
    

    Assuming div defined as above (not mathematical division)

      div(x,y) * y + rem(x, y) = x
    
  • Reported: KerML 1.0b2 — Mon, 13 Jul 2026 14:40 GMT
  • Updated: Mon, 13 Jul 2026 15:09 GMT