programming.dev

Brak, (edited ) to memes in 6÷2(1+2)
@Brak@hexbear.net avatar

i didn’t fully understand the article, but it was really interesting reading summaries & side discussions in the comments here!

i enjoy content like this that demonstrates how math is at its heart a useful tool for conceptualizing things vs some kind of immutable force.

panicnow, to memes in 6÷2(1+2)

This is a very nice piece that had so much information I did not know. Toward the top of the article I was wishing for footnotes, references or something that would indicate it was not just your opinion, but as I got further into the piece you provided so many great references. I thought the calculator manuals were particularly accessible and convincing. Thanks for a great read!

dgmib, to memes in 6÷2(1+2)

You state that the ambiguity comes from the implicit multiplication and not the use of the obelus.

I.e. That 6 ÷ 2 x 3 is not ambiguous

What is your source for your statement that there is an accepted convention for the priority of the iinline obelus or solidus symbol?

As far as I’m aware, every style guide states that a fraction bar (preferably) or parentheses should be used to resolve the ambiguity when there are additional operators to the right of a solidus, and that an obelus should never be used.

Which therefore would make it the division expressed with an obelus that creates the ambiguity, and not the implicit multiplication.

(Rest of the post is great)

wischi, (edited )

In this case it’s actually the absence of sources. I couldn’t find a single credible source that states that ÷ has somehow a different operator priority than / or that :

The only things there are a lot of are social media comments claiming that without any source.

My guess is that this comes from a misunderstanding that the obelus sign is forbidden in a lot of standards. But that’s because it can be confused with other symbols and operations and not because the order of operations is somehow unclear.

dgmib,

What is your source for the priority of the / operator?

i.e. why do you say 6 / 2 * 3 is unambiguous?

Every source I’ve seen states that multiplication and division are equal priority operations. And one should clarify, either with a fraction bar (preferably) or parentheses if the order would make a difference.

wischi, (edited )

Same priority operations are solved from left to right. There is not a single credible calculator that would evaluate “6 / 2 * 3” to anything else but 9.

But I challenge you to show me a calculator that says otherwise. In the blog are about 2 or 3 dozend calculators referenced by name all of them say the same thing. Instead of a calculator you can also name a single expert in the field who would say that 6 / 2 * 3 is anything but 9.

dgmib,

Will you accept wolfram alpha as credible source?

mathworld.wolfram.com/Solidus.html

Special care is needed when interpreting the meaning of a solidus in in-line math because of the notational ambiguity in expressions such as a/bc. Whereas in many textbooks, “a/bc” is intended to denote a/(bc), taken literally or evaluated in a symbolic mathematics languages such as the Wolfram Language, it means (a/b)×c. For clarity, parentheses should therefore always be used when delineating compound denominators.

wischi,

Did you read the blog post? I also quoted the exact same thing.

Aussiemandeus, (edited ) to memes in 6÷2(1+2)
@Aussiemandeus@aussie.zone avatar

I guess if you wrote it out with a different annotation it would be

‎ ‎ 6

-‐--------‐--------------

2(1+2)

=

6

-‐--------‐--------------

2×3

=

6

–‐--------‐--------------

6

=1

I hate the stupid things though

velox_vulnus,

Markdown fucked your comment. Use escape symbols.

Aussiemandeus,
@Aussiemandeus@aussie.zone avatar

Escape symbols?

onion, (edited )

Lemmy interprets some symbols as formatting commands, for example putting a # at the start of a line turns it into a header:

header

You can tell it to not do that by putting a backslash before the symbol:

# not a header

The backslash is called the escape symbol.

Aussiemandeus,
@Aussiemandeus@aussie.zone avatar

Cheers mate

velox_vulnus, (edited )

Never mind, here’s another better way to do this:

^6^⁄2(1+2) ⇒ ^6^⁄2*3 ⇒ ^6^⁄6 ⇒ 1

Works on the web page, but looks weird on some mobile app. Markdown is a fucking mess. Some implementation has MathJax support, some have special syntaxes.

Rustmilian, (edited )
@Rustmilian@lemmy.world avatar

Lemmy* markdown is a fuckin mess. It’s way better elsewhere. & <>

Aussiemandeus,
@Aussiemandeus@aussie.zone avatar

Yeah connect for lemmy didn’t sort the out very well.

Brak,
@Brak@hexbear.net avatar

oooh this looks very pretty on hexbear, thanks friend!

Aussiemandeus,
@Aussiemandeus@aussie.zone avatar

I guess if you wrote it out with a different annotation it would be

‎ 6

–‐--------‐-------------- 2(1+2)

= 6 –‐--------‐-------------- 2×3

= 6 –‐--------‐-------------- 6

=1

I hate the stupid things though

0x4E4F, to linux in why does the poster image of c/linux have 3.8mb?

It’s grainy. Grain always takes a lot in size.

Taleya, to risa in Sneaking more Babylon 5 references into risa, please ignore

What is this, some deep space franchise??

EmoDuck, to memes in Fedposting
dan, to programmer_humor in GoOn
@dan@upvote.au avatar

This reminds me of something I saw online maybe 20 years ago now. Someone created a torrent with a name like “every IP address ever (hacking tool)” and uploaded it to Suprnova, which ended up having thousands of people seeding it. It was just a text file with every IPv4 from 0.0.0.0 to 255.255.255.255 😂

coloredgrayscale,

Heard about that too! Is there an updated version for ipv6?

jeffhykin, to programmer_humor in Oh yea, that's the good stuff **huffs glue**

If you think that’s good, then you’re gonna love this “simplified” real code posted as a real issue on one of my Github repos.

Edit: updated link to address the stack-trace comment

originalucifer, to newcommunities in Software Gore - A community for sharing software malfunctions
@originalucifer@moist.catsweat.com avatar

im not sure why but the first thing that popped into my head was:

'say 404 one more time'

tetris11, to programmer_humor in The classic font size exploit
@tetris11@lemmy.ml avatar

It very well might be a real exploit. Lemmy was briefly taken down by an XS attack using the emoji library… so who knows, maybe a 3000% smiley face is all that is needed

Fogle,

I think there a lot of phone scammers that use font size to hide all the shit they’re doing. Like they make shit so small so that the old people can’t see anything

simple, to programmer_humor in Merge then review

Having to go through the process of merging hurts morale and slows performance. Give everyone on your team the right to force push to master.

tubaruco, to memes in Puede ser una buena foto de perfil??????

mi opinan es that is not a meme

craftyindividual,

Needs more seasoning, or maybe some text.

unreachable, to memes in every time
@unreachable@lemmy.world avatar

a wild superboy appears

Axxi, (edited ) to mildlyinteresting in Brick

Brick worms… You see, #THIS# is why we can’t have nice things!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #