Elektrine lite

← Feed

@SmartmanApps@dotnet.social

2023-10-05 22:04 UTC

@dm319@fosstodon.org P.S. if you're working on something public-facing, and you fix it, do let me know! Currently the ONLY e-calculator I know of which handles brackets correctly is MathGPT - would love for there to be more! At a high level you need to do something like if you hit a ( which isn't preceded by an operator, then postfix a * to the coefficient and push that onto the stack, and then when you get to the ) you pop the stack and do the multiplication.

Replies (1)

  • @dm319@fosstodon.org 2023-10-06 14:54

    @SmartmanApps@dotnet.social No I don't have any involvement in calculator development. I'm very interested in how calculators calculate though!

    Open ##5026482