TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Math4devs.com: List of mathematical symbols with their JavaScript equivalent

51 pointsby fagnerbrack6 months ago

4 comments

shireboy6 months ago
This is pretty cool. As a self-taught developer with a non-CS major, my math limited out at college algebra 2. I recently did Brilliant.org calculus just to try to make better sense of various CS papers, and I thought at the time I could probably understand some of the concepts in code better than standard mathematics notation. Something like this definitely helps me understand the math symbols better. I could see taking it to the next level and adding other languages and symbols.
评论 #42190901 未加载
joeframbach6 months ago
1. Floor operator is `⌊n⌋`.<p>2. Exponentiation implementation depends on the size of the power. For very small powers normally they are represented as their reciprocal, then operated on within the exponent.<p><pre><code> y = b ** (1&#x2F;x) </code></pre> for very large x is rewritten as<p><pre><code> y = Math.exp(Math.log(b) &#x2F; x)</code></pre>
Rendello6 months ago
I like this a lot. I&#x27;ve been going through HS-level math with Math Academy and I&#x27;m always intrigued when I see these symbols in advanced calculations elsewhere online.<p>I recently learned the syntax for half-open intervals. It&#x27;s so frustrating that I can&#x27;t bear to type it out. This is relevant: <a href="https:&#x2F;&#x2F;xkcd.com&#x2F;859&#x2F;" rel="nofollow">https:&#x2F;&#x2F;xkcd.com&#x2F;859&#x2F;</a>
评论 #42189299 未加载
sxp6 months ago
Do programmers use those weird font ligatures in practice? E.g, Rendering `a != b` as `a≠b`. I&#x27;ve only seen them used by people who want to show how far they can push coding style away from the standard monospace low ASCII, but haven&#x27;t seen any good justification for them.
评论 #42189260 未加载
评论 #42192596 未加载
评论 #42197475 未加载
评论 #42192111 未加载
评论 #42194228 未加载