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.

“map -1 1 to 0 1” gives no search results on Google

2 pointsby owenshen24about 5 years ago
I was looking for a way to map values from the range [-1,1] to [0,1], and, surprisingly, Google gives me no results. DDG gave me a useful stack exchange answer.<p>Very confused why this would happen. Anyone else have the same behavior?<p>screenshot link: https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;JKueUge

1 comment

Someoneabout 5 years ago
Google favors more natural language queries. Using <i>”map values from the range [-1,1] to [0,1]”</i> (the text you chose to tell us what you mean by <i>“map -1 1 to 0 1”</i>. That probably is telling) gives me <a href="https:&#x2F;&#x2F;math.stackexchange.com&#x2F;questions&#x2F;1567823&#x2F;how-can-i-map-a-1-to-1-range-into-0-1" rel="nofollow">https:&#x2F;&#x2F;math.stackexchange.com&#x2F;questions&#x2F;1567823&#x2F;how-can-i-m...</a> as top hit. That gives the answer <i>(x+1)&#x2F;2</i>, which, IMO, is the most natural way to do it.