How can I get result of calculations?
For display formulas can use "MTEditableMathLabel" but how can I get it's result ? for example if I enter label.mathList.stringValue 5^{2}, how can I get it's output.. Please help me out with suitable sample if possible. @kostub
If you are using Swift, you can do -
MTMathListBuilder.mathList(toString: uiView.mathList) where uiView is your MTEditableMathLabel.
Have you been able to prefill the editor with a math formula? I want to have a placeholder to show a formula example but can't seem to figure out how. @kostub
Thanks, @uguess-tamrakar . But using this "MTMathListBuilder.mathList(toString: uiView.mathList)" I am not getting result of calculation. Do you know how can I get calculation result of this?
Thanks, @uguess-tamrakar . But using this "MTMathListBuilder.mathList(toString: uiView.mathList)" I am not getting result of calculation. Do you know how can I get calculation result of this?
Huh, it seem you can use a AI API like ChatGPT or build math solver your own