iink SDK on Device

Modify the math.solver.angle-unit to rad

 

To work in radians you must modify the math.solver.angle-unit to rad. However, I made corresponding modifications, as shown below, and the test is still wrong, with the same error as before.

image


image

1 Comment

Hello,


Thank you for contacting us.


There are a few issues with above configuration:

  • The math solver configuration block, must be outside the "raw-content" block
  • the angle unit key is math.solver.angle-unit (not anglesUnit)
  • The math.solver.fraction-mode key has been renamed to math.solver.number-format since iink 3.2. Its possible values are unchanged.


Please refer to below example:


{
  "raw-content": {
    "configuration": {
      "analyzer": {
        "bundle": "raw-content2",
        "name": "standard"
      },
      "math": {
        "bundle": "math2",
        "name": "standard"
      }
    },
    "classification": {
      "types": [ "text", "shape", "math", "drawing" ]
    },
    "recognition": {
      "types": [ "text", "shape", "math" ]
    },

      ...


  },
  "math": {
      "solver": {
          "options": "algebraic",
          "angle-unit": "rad",
          "number-format": "decimal",
          "numerical-computation": [ "at-right-of-equal-sign", "at-question-mark" ],
          "enable-syntactic-correction": false,
          "display-implicit-multiply": false,
          "auto-variable-management": {
              "enable": true,
              "scoping-policy": "closest"
          }
      }
  }
}



For the whole list of configuration keys and value, please refer to https://developer.myscript.com/docs/interactive-ink/4.1/reference/configuration/


Best regards,


Gwenaëlle


1 person likes this
Login or Signup to post a comment