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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Where do you do quick back of envelope calculations?

7 点作者 adamlangsner超过 5 年前
Before Apple killed the Dashboard in Catalina. I had this widget called FormulaCalc that I loved.<p>It was very basic, screenshot below. It had two long text fields on top of each other. You&#x27;d enter a mathematical expression in JS in the top field (e.g. &quot;3 + 4 &#x2F; ( 5 * 0.9 + pi) + pow(2, 4)&quot; ) and as you typed it would auto-generate the result in the bottom field in real time. I would have several instances of this widget in my dashboard so I could quickly and easily do simple calculations or do multipart calculations, copying the result from one widget into the input field of another.<p>I&#x27;d use it constantly for things like measuring stuff for frontend work, doing some rough analytics from db queries, or even just back of envelope budgeting &#x2F; tax stuff. Using it was so automatic and immediate that it became such an essential tool.<p>Screenshot: http:&#x2F;&#x2F;www.mindlessflash.com&#x2F;formula_calc.png<p>Since I upgraded my OS I&#x27;ve been using the evaluator in Spotlight and the calculator app on my phone and it&#x27;s not as good because you can only work with one formula at a time. So I guess I have two questions:<p>1. How do you do rough calculations day to day, what tools do you use and are you happy with them?<p>2. Do you know of any products &#x2F; solutions that are similar to the dashboard widget I described above?

7 条评论

perilunar超过 5 年前
On the back of an envelope?<p>Seriously: with a pen, a scrap of paper, and a calculator.<p>If I want to keep the calculation I&#x27;ll copy it to a plain text document or to a spreadsheet, or copy it to a notebook.<p>Also, if you have a browser open, you can just type equations into the console (using JS syntax):<p><pre><code> &gt; 3 + 4 &#x2F; ( 5 * 0.9 + Math.PI) + Math.pow(2, 4) &lt; 19.52345108949519 </code></pre> Edit: or just open Terminal, type &#x27;python&#x27;, and use in interactive mode:<p><pre><code> &gt;&gt;&gt; import math &gt;&gt;&gt; 3 + 4 &#x2F; ( 5 * 0.9 + math.pi) + math.pow(2, 4) 19.52345108949519</code></pre>
评论 #21702109 未加载
Wowfunhappy超过 5 年前
Formula Calc sounds great, where can I download it? I&#x27;m enjoying life on legacy OS X versions over here! 8)<p>Edit: Answering my own question: <a href="https:&#x2F;&#x2F;www.apple.com&#x2F;downloads&#x2F;dashboard&#x2F;calculate_convert&#x2F;formulacalc.html" rel="nofollow">https:&#x2F;&#x2F;www.apple.com&#x2F;downloads&#x2F;dashboard&#x2F;calculate_convert&#x2F;...</a>
评论 #21693334 未加载
cepp超过 5 年前
Not exactly what you were asking for, but I really like Soulver [1]. It&#x27;s a natural-language-ish calculator. The interface is similar to a REPL where you can name&#x2F;recall and evaluate. The only downside is it&#x27;s a bit pricey at $30.<p>[1] <a href="https:&#x2F;&#x2F;soulver.app" rel="nofollow">https:&#x2F;&#x2F;soulver.app</a>
评论 #21701589 未加载
ToFab123超过 5 年前
I use wolframalpha.com<p>Here is the result of the equation from the OP <a href="https:&#x2F;&#x2F;www.wolframalpha.com&#x2F;input&#x2F;?i=3+%2B+4+%2F+%28+5+*+0.9+%2B+pi%29+%2B+pow%282%2C+4%29" rel="nofollow">https:&#x2F;&#x2F;www.wolframalpha.com&#x2F;input&#x2F;?i=3+%2B+4+%2F+%28+5+*+0....</a>
评论 #21693990 未加载
omarhaneef超过 5 年前
Excel. If there was a faster loading &quot;tiny spreadsheet&quot; that would just pop open, I would love it.
评论 #21693309 未加载
bananicorn超过 5 年前
Since I&#x27;m mostly in the terminal, I just pop up a Lua prompt and do the calculation there - any repl will do, honestly :)
kody超过 5 年前
Like a few others here, I typically use an interactive Python console.