# Forums

Cloud Development Kit

## Math, CDK: Exponential forms interpreted as matrix

Sometimes, MyScript interprets an expression with exponential forms as a matrix expression. For most use cases, the matrix construct is not applicable. Is there a way to disable these?

Thanks for your bug report. Could you please give use some examples that cause the problem?
Vectors use the same prefix than matrixes, so it could be good to check what you write and what you expect exactly.
mathInput={userResources : [user_resource_name]}
http://doc.myscript.com/MyScriptCloud/3.0.0/myscript-cloud/reco-types.html#math

Best regards

Thank you for your reply. Here you can see a screen shot of the strokes and the recognized result (latex rendered by MathJax).
You are suggesting a solution using userResources. On the MyScript Cloud dashboard there is a 'resources' section, but there are no resources available. Do you have examples or documentation of how to create such a resources file?

regards, Martijn

Thanks for those details, it confirms our first hypothesis. Create a custom resource will be helpful in this case. Moreover you are right, the default resource is not available on the cloud portal.
In the meantime, we will send you a custom CDK math grammar file per email.
Select 'Resource' tab and upload the grammar file as shown below

You will then be able to add the parameter in your cloud request like userResources:test
{ "components": [{ "type": "stroke", "x": [....], "y": [...] }], "resultTypes": ["LATEX", "MATHML"], "columnarOperation": false, "userResources":["test"]}
Please let us know if it helps
Best regards

I was able to upload and use the resource file. The problem with the exponentials is resolved now.
Thank you very much for your help!

Best regards,
Martijn

Maybe you have not noticed yet that the custom resource tool is now available:
You will find detailed explanations in this post:
https://developer-support.myscript.com/support/discussions/topics/16000007809

Best regards