dicio-android icon indicating copy to clipboard operation
dicio-android copied to clipboard

Calculator Functions

Open moriel5 opened this issue 2 years ago • 4 comments

I can see that there some basic mathematics comprehension integrated, but what are the limits?

For example, could you throw algebraic formulae and expect an answer?

So far, I tried throwing intermediate multiplication (powers, worked fine) and division (square root, was ignored or misunderstood), however I would like to know what the limits are, so as to be able to push them farther.

Also, whenever I speak, "2" and "4" are recognized as "to" and "for", respectively.

moriel5 avatar Dec 22 '21 18:12 moriel5

For example, could you throw algebraic formulae and expect an answer?

No, the calculator is not intended for that at the moment. Currently it only understands + - * / ^, and it doesn't even take parenthesis into consideration. Understanding voice user input and converting it into a formula might be too difficult and ambiguous, so only the basic operations are supported. I would not oppose, though, implementing a calculator with more options that pops up in the output screen whenever the user invokes the calculator.

Also, whenever I speak, "2" and "4" are recognized as "to" and "for", respectively.

That's a known issue, but unfortunately there is not much that can be done since this is a problem of the voice recognizer, Vosk.

Stypox avatar Dec 23 '21 16:12 Stypox

Thanks, I do wonder what could be added while still remaining relatively basic (I would argue that square root, and possibly also cube root (the inverse of powers that are not 2) may fit that criteria).

Unrelated rant: GBoard's autocorrect is annoying in newer versions (changing "or" to "it", "fit" to "for", amongst other changes while swiping), so some of my posts are edited after the fact to account for that.

moriel5 avatar Dec 23 '21 22:12 moriel5

I would argue that square root, and possibly also cube root (the inverse of powers that are not 2) may fit that criteria

Yeah, that seems reasonable

Stypox avatar Dec 30 '21 14:12 Stypox

Presently, Dicio ignores square roots: 20230514_113322_temp

JapanYoshi avatar May 14 '23 02:05 JapanYoshi