f(x)=e^x
1 unit to the left, you’re left with g(x)=e^(x+1)
(Fig. A). This transformation is pretty simple; the new line is 1 unit away. However, it’s only 1 unit away horizontally. Vertically, it varies depending on the x value. The vertical difference at x=-1 is a lot smaller than the vertical difference at x=1.
On this recent #hack-night, @carrot and I set out to transform f(x)
so that at any point along f(x)
, the distance to the closest point on g(x)
is equal to 1. Essentially, g(x)
is 1 unit away throughout, not horizontally (Fig. B).
This proved to be quite difficult. There were a lot of quadratics that needed solving, and we also had to use the pythagorean theorem to get some distances. He can probably explain the math behind it a lot better than I can.
Anyways, here are a few links if you want to try it out:
• Exponential Functions - www.desmos.com/calculator/euke7u53si
• Quadratic Functions - www.desmos.com/calculator/jekjpm1mj0
• Linear Functions - www.desmos.com/calculator/oljptwxhji
• Circles - www.desmos.com/calculator/uedqiqjjxk (I think)git add -p
only covers changes, not new files, so the async frame remained untracked. TIL! That explains why it only worked locally :no-thoughts-head-empty: to find out.
Feel free to take a look at the code at
gist.github.com/YodaLightsabr/a4924816e0c7bd45b15d1c8aebfc582a.
Try to guess the salt I used if you’d like.()|()
:peefest:onclick
prop and it will automatically handle the click for you!conflict
package name, because that just so happens to be what my almost finished framework is called, and the conflict
package has been empty for 3 years, now with a deprecation message of “lol” :peefest:this
scope.npm link
, how to make exports like module/export
, and making cli tools with package.json’s bin.replconfig
. ReplAwake handles the rest! You can add more at any time right from within Replit.
You can see it at
:github: GitHub: github.com/yodalightsabr/replawake
:replit: Live Version: replawake.yodacode.repl.co
:fork: Start an instance: replit.com/github/yodalightsabr/replawake# header, * list item, etc
) into a formatted notepad that automatically saves.npm install -g sidecast
npm install node-fetch@2.6.1
because I didn’t add a package.json.