0.3.2 • Published 10 months ago

squoval v0.3.2

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
10 months ago

$$ \begin{align} x &= \mathrm{erf}\ \mathrm{atanh}\ \mathrm{cos}\ t \ y &= \mathrm{erf}\ \mathrm{atanh}\ \mathrm{sin}\ t \end{align} $$

Squoval

flatter and smoother rounded corners · web components

npm.io npm.io npm.io npm.io npm.io npm.io

npm i squoval
<script src="https://cdn.skypack.dev/squoval?min" type="module"></script>
<squoval-element></squoval-element>

proof notes

let us say that f(t) = erf(cot(t)) h(t) = erf t h'(t) = 2 e^(-z^2) / √π g(t) = cot t g'(t) = csc² t

the chain rule states that f'(x) = h'(g(t))g'(t) so f'(t) = (2 / √π) e^(-cot² t) csc² t

the product rule states that (uv)' = u'v + uv' so u' = (e^(-cot² t))' = -2 cot(t) csc²(t) e^(-cot² t)

u' = -2 cot(t) csc²(t) u

f⁽ⁿ⁾(t) ∝ u ∝ e^(-cot² t)

therefore f(t) is flat wherever e^(-cot² t) = 0

limit of e^(-cot² t) as t -> 0 = 0

limit of e^(-cot² t) as t -> nπ = 0

f(t) is asymptotically flat at nπ where n is an integer

0.3.0

10 months ago

0.2.1

10 months ago

0.2.0

10 months ago

0.3.2

10 months ago

0.2.3

10 months ago

0.3.1

10 months ago

0.2.2

10 months ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.31

2 years ago

0.0.30

2 years ago

0.0.29

2 years ago

0.0.28

2 years ago

0.0.27

2 years ago

0.0.26

2 years ago

0.0.25

2 years ago

0.0.24

2 years ago

0.0.23

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago