TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

1 / 0 = 0 (2018)

8 点作者 Aaronmacaron6 个月前

4 条评论

mathgladiator6 个月前
In my language, division isn't closed. The type of x/y is maybe<double> because when you do shenanigans of defining division as a different operator than multiplying by the multiplicative inverse, your code sucks.
salutis6 个月前
Meanwhile, in Lua:<p><pre><code> $ lua Lua 5.4.7 Copyright (C) 1994-2024 Lua.org, PUC-Rio &gt; 0&#x2F;0 nan &gt; 1&#x2F;0 inf</code></pre>
评论 #42169736 未加载
评论 #42169735 未加载
notepad0x906 个月前
Hear me out: while the process of dividing a number by zero is &quot;infinity&quot; or &quot;Nan&quot;, logically speaking, taking something and dividing into nothing, with the stipulation that a non-infinite method of doing so is found, will result in a zero.<p>I say that because essentially, the divisor &#x27;0&#x27; predetermines the outcome. it is impossible for anything to be divided into &quot;nothing&quot; pieces and result in something.<p>Dividing by 1 is similar, you can&#x27;t split an apple of size 1 into &quot;size 1&quot; sized pieces and get any less or more than a &quot;size 1&quot; apple. In a similar way, if you are able to split an apple of &quot;size 1&quot; into &quot;no apple&quot; slices, it is impossible by the bare rules of the logic of reality to get any less or more than &quot;no apple&quot;. You won&#x27;t get infinite apples, if you do, then the stipulation of the divisor &#x27;0&#x27; becomes incompatible. anything other than 0 is incompatible.<p>If the physical law of our inability to create or destroy matter or energy did not exist, we could probably prove this as true.<p>But destruction aside, here is a fun philosophical argument: If I take an apple and burn it until it can no longer be considered an apple, did I just divide that apple by 0?<p>(I&#x27;m just putting my reasoning out there, I know nothing of proper mathematics. Be gentle!)
评论 #42171425 未加载
hyperman16 个月前
What does pony gain by allowing it? Just the ability to continue in the face of an error?