33
1
0
1
2
3
13
4
3
2
4
3
[-] SmartmanApps@programming.dev 1 points 2 years ago

I think I learned powers take priority over the “-”

Yes, Exponents is the 2nd-highest precedence (after Brackets) - BEDMAS.

[-] SmartmanApps@programming.dev 1 points 2 years ago

Only way to get 1 is to violate left to right on multiplication and division

Actually the only way to get 16 is to ignore one of more rules of Maths - sometimes it's Terms, sometimes it's The Distributive Law, but always something. If you follow all the rules of Maths you get 1.

[-] SmartmanApps@programming.dev 1 points 2 years ago

2+2 first because P. That’s 4.

P is 2(2+2)=(2x2+2x2)=(4+4)=8

Then 8/2 because it’s left of 4(4).

If you do 8/2 when you still have brackets, then you just did division before brackets and disobeyed order of operations rules. You also broke the rule of Terms, since 2(4) is a single term.

Don’t take my word for it.

I see you didn't read my thread then. I have a section on calculators, which points out that WolframAlpha does it wrong. i.e. they also break the rule of Terms.

[-] SmartmanApps@programming.dev 1 points 2 years ago

Read the damn article.

Read it. Was even worse than I was expecting! Did you not notice that a blog about the alleged ambiguity in order of operations actually disobeyed order of operations in a deliberately ambiguous example? I wrote 5 fact check posts about it starting here - you're welcome.

[-] SmartmanApps@programming.dev 1 points 2 years ago

Let me know if you ever decide to read the article instead of arguing against an imagined opponent

Read it, wasn't imagined. In fact it was even worse than I thought it would be! Did you not notice about how a blog about the alleged ambiguity in order of operations actually disobeyed order of operations in a deliberately ambiguous example? I wrote 5 Fact check posts, starting here - you're welcome.

[-] SmartmanApps@programming.dev 1 points 2 years ago

It's totally clear. It's a number divided by a factorised term, as per The Distributive Law and Terms.

[-] SmartmanApps@programming.dev 1 points 2 years ago

It's the first, as per The Distributive Law and Terms. It could only ever be the second if the 6/2 was in brackets. i.e. (6/2)(1+2).

[-] SmartmanApps@programming.dev 1 points 2 years ago

Indeed it was already solved more than 100 years ago. The issue isn't that it's "ambiguous" - it isn't - it's that people have forgotten what they were taught (students don't get this wrong - only adults). i.e. The Distributive Law and Terms.

[-] SmartmanApps@programming.dev 1 points 2 years ago

I finally fixed up the MAUI/VS upgrade issues, recloned, added my code back in one part at a time, and the bug came back so I've now narrowed down where the issue is - it happens when I try to use a HorizontalStackLayout in my TitleView on Windows. This code absolutely was working in 8.0.3, and still works on Android in 8.0.6. (I haven't tried 8.0.7 yet cos I wanted to keep everything exactly the same as before whilst I added code back in seeing if the issue came back). Anyone have any ideas about this one?

[-] SmartmanApps@programming.dev 1 points 2 years ago

I finally fixed up the MAUI/VS upgrade issues, recloned, added my code back in one part at a time, and the bug came back so I've now narrowed down where the issue is - it happens when I try to use a HorizontalStackLayout in my TitleView on Windows. This code absolutely was working in 8.0.3, and still works on Android in 8.0.6. (I haven't tried 8.0.7 yet cos I wanted to keep everything exactly the same as before whilst I added code back in seeing if the issue came back). Anyone have any ideas about this one?

[-] SmartmanApps@programming.dev 1 points 2 years ago

It's not at all like building a separate app. All the back-end code is identical - all you have to do is make the mobile version not take up as much screen-space, and that's not much work. e.g. on desktop I use icon and text, but on mobile icon only.

[-] SmartmanApps@programming.dev 1 points 2 years ago

Yeah, the wording isn't clear, and some people are talking about switches and some people are talking about buttons. I work with MAUI, and in MAUI a "ToggleButton" is called a Switch, so there's no confusion there, but the OP specifically said a button which toggles. i.e. a button which has 2 states instead of just one. A play button which turns into a pause button when you press it and vice-versa. I think the OP may have been confused between switches and buttons themselves - which are indeed labelled in opposite ways to each other (switch - current state, button - state that it will cause to happen when pressed) - which led to the question.

view more: ‹ prev next ›

SmartmanApps

0 post score
0 comment score
joined 2 years ago
MODERATOR OF