But what does it do if you have it evaluate 6 ÷ 2(1+2)?On the basis of a very quick look at my notes, I think that the following might (but no promises!) achieve "(6 / 2) * (1+2)" in APL ...
6 x 2 ÷ 1 + 2
But what does it do if you have it evaluate 6 ÷ 2(1+2)?On the basis of a very quick look at my notes, I think that the following might (but no promises!) achieve "(6 / 2) * (1+2)" in APL ...
6 x 2 ÷ 1 + 2
I don't think you can swap in and out of using BODMAS during expansion.How about 6÷2(1+2) expanded becomes 6÷2+4 which then becomes (under BODMAS) 3+4 = 7![]()
My point is that APL would not understand "6 ÷ 2(1+2)", one has to tell it exactly what one wants it to do, and that would involve making one's own decision (based on current BODMAS, old BODMAS or whatever) as to what that was. As far as I can make out, APL, like RPN, requires totally explicit instructions (i.e. completely defining the step-by-step evaluation of an expression), so all the deciding has to be done by the human who instructs it (or by a pre-processor which, again, will do precisely what a human has told it to do).But what does it do if you have it evaluate 6 ÷ 2(1+2)?
Decades years ago you could buy pocket calculators which could understand 6 ÷ 2(1+2).My point is that APL would not understand "6 ÷ 2(1+2)", one has to tell it exactly what one wants it to do, and that would involve making one's own decision (based on current BODMAS, old BODMAS or whatever) as to what that was. As far as I can make out, APL, like RPN, requires totally explicit instructions (i.e. completely defining the step-by-step evaluation of an expression), so all the deciding has to be done by the human who instructs it (or by a pre-processor which, again, will do precisely what a human has told it to do).
Yes.11 ?
I'm not sure one can call it an 'exact description' since, as we have seen, there are different sers of rules around (at least, over time) which lead to different interpretations as to how it should be interpreted. One could, of course, create a machine which had a unique understanding of what that expression meant, but humans would then have to be strict about speaking exactly that same language.6 ÷ 2(1+2) is an exact description, and there are rules to follow which allow it to be processed correctly.
Your experience/exposure is clearly much wider than mine, because I think that most/all languages with which I have any familiarity would require that explicit operator - and I think they would then all apply (modern) BODMAS.Plenty of other high level languages have no problem with 6 ÷ 2(1+2), although they might require an explicit operator before the (.
It didn't.AFIC my school taught me that:
a(b+c)=(b+c)*a or in this case that's 2(1+2)=(1+2)*2=(3)*2=6
also
a(b+c)=(ab)+(ac) or in this case that's 2(1+2)=(2*1)+(2*2)=(2)+(4)=6
When the hell did it change from this?
No. If the expression is written as given, without further clarification (using brackets) as to what we actual intend (i.e. what we have written is ambiguous), then the convention that has existed throughout our lives (and a lot longer) says that we have use the default rules (specified by BODMAS) to provide 'clarification', and that results in just one correct answer, namely 9. A calculation which results in any other answer is incorrect.So are we saying that at the moment we can prove (or at least demonstrate) this relatively simple calculation can be any of the following: 1, 4, 5, 6, 7, 9 or 11.
If they are taught and remember the correct rules, then it's straightforward. If they were, say, taught (or incorrectly remembered) that "9 times 7" was something other than 63, they would end up with all sorts of problems throughout life!No wonder the youngsters of today sick to playing on their phones, FIFA18 or Minecraft just has to be easier.
OK you've got me, unless you're talking octalYes.
IndeedIf they are taught and remember the correct rules, then it's straightforward.
Do children still get to learn the times table by rote any more ? I recall we all have to learn everything up to 12x12 - though I admit that a lot of the larger numbers have since gone away through lack of use. I also recall that we were not allowed calculators until fairly late on, for the obvious reason that if you only ever use a calculator then you'll never learn to do it without.If they were, say, taught (or incorrectly remembered) that "9 times 7" was something other than 63, they would end up with all sorts of problems throughout life!
There is that too.Everyone should probably also be taught that when writing expressions, they should do so in a manner that is totally unambiguous, without the need to rely upon any 'default rules' - in which case these 'confusions' would not exist.
In other words, you may well be thinking that:In other words, you may well be thinking that:
d / a * (b+c) = d * [a * (b+c)]
... which is NOT what is correct (per BODMAS, which is the convention we still use).
OK you've got me, unless you're talking octal
If you need to find a tradesperson to get your job done, please try our local search below, or if you are doing it yourself you can find suppliers local to you.
Select the supplier or trade you require, enter your location to begin your search.
Are you a trade or supplier? You can create your listing free at DIYnot Local