Elektrine lite

← Feed

@SmartmanApps@dotnet.social

2023-10-05 22:01 UTC

@dm319@fosstodon.org As a Maths teacher, I've had it ALL thrown at me by people who refused to accept that they had their Maths wrong (you know, the Blue Check type people)! No, you'll get a different answer if you put a multiply outside the brackets, because you just broke a single, factorised term into 2 terms, and the (1+3) will get flipped into the numerator (which is how people get the wrong answer). 8/2(1+3)=8/(2+6)=8/8=1 8/2*(1+3)=8/2*4=4*4=16

Replies (3)

  • @SmartmanApps@dotnet.social 2023-10-05 22:04

    @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.

    Open ##5026481

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

    @SmartmanApps@dotnet.social Yes, get that you're turning a single term into two - I was asking about that specific 90s Sharp calculator!

    Open ##5026487

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

    @SmartmanApps@dotnet.social I think I've read through most of your thread, and I do see now the distinction around terms. You mention that you don't need there to be pronumerals within the brackets. But do you need to do the multiplication first and then add, or does it not matter? Any cases where it does matter?

    Open ##5026489