diff --git a/.hugo_build.lock b/.hugo_build.lock new file mode 100644 index 0000000..e69de29 diff --git a/content/_index.md b/content/_index.md index 333dec7..b7fe73e 100644 --- a/content/_index.md +++ b/content/_index.md @@ -13,5 +13,3 @@ I have written these notes for myself, I thought it would be cool to share them.
[How to solve any DE, a flow chart](Solve-any-DE.png)
-I'd like to add a search by tag feature. I'm also thinking of hosting the source code for all this on a git server. That way, people can contribute and fix my notes for me :P -It would also allow people to contribute or host their own notes, which would be pretty cool. (Side note: I am against sharing instructor materials without their approved consent.) \ No newline at end of file diff --git a/public/404.html b/public/404.html deleted file mode 100644 index 5a6bfc4..0000000 --- a/public/404.html +++ /dev/null @@ -1,396 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - My New Hugo Site - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - -
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -

404

-

Note not found

- -
-
- - - - - diff --git a/public/bernoulli-de-lec-3.html b/public/bernoulli-de-lec-3.html deleted file mode 100644 index c35f547..0000000 --- a/public/bernoulli-de-lec-3.html +++ /dev/null @@ -1,538 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - Bernoulli DE (lec 3) - My New Hugo Site - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - -
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Bernoulli’s equation:

-

$$\frac{ dy }{ dx } +P(x)y=Q(x)y^n \quad,\quad n\in\mathbb{R}$$

-

(I’m calling this -de_b_type1) It looks almost like a linear equation! In fact if n=0 it is by definition. We will see further that if n=1 you also still get a linear equation. -Bernoulli’s equations are important as you will see it in biology and in engineering.

-

If y is + then y(x)=0 is a solution to the equation: -$\frac{dy}{dx}+0=0\quad\Rightarrow \quad0=0$ -Let’s move the y to the LHS: -$y^{-n}\frac{ dy }{ dx }+P(x)y^{1-n}=Q(x)$ -notice that y(x)=0 is no longer a solution! It was lost due to dividing by zero. So from here on out we will have to remember to add it back in our final answers. -let $y^{1-n}=u$ -Differentiating this with respect to x gives us: -$(1-n)y^{-n}\frac{ dy }{ dx }=\frac{du}{dx}$

-
-

notice that when n=1 the above turns into a linear equation: -$0=\frac{ du }{ dx }$ -$y^{1-n}=u=0+C$ -1=C -Hold on I dont think I did the above correctly. Anyways. -So we consider that $n\ne 0,1$ for Bernoulli’s equations as we can solve those cases with earlier tools.

-
-

$y^{-n}\frac{ dy }{ dx }=\frac{ du }{ dx }{\frac{1}{1-n}}$ -substituting in we get: -$y^{-n}\frac{ dy }{ dx }+P(x)u=Q(x)=\frac{ du }{ dx }{\frac{1}{1-n}+P(x)u}$

-

and we get a linear equation again: (Handy formula if you wanna solve specific Bernoulli equations quick.) -$$\frac{1}{1-n}\frac{ du }{ dx }+P(x)=Q(x)\quad \Box$$

-
-

Examples of Bernoulli’s equation:

-

ex -de_b_type1 Find the general solution to: -$y'+y=(xy)^2$ -Looks like a Bernoulli equation because when we distribute the $^2$ we get $x^2y^2$ on the RHS. This also tells us that n=2 -$y'+y=x^2y^2$ -$y’y^{-2}+y^{-1}=x^2$

-
-

Note that we lost the y(x)=0 solution here, we will have to add it back in the end.

-
-

let $u=y^{1-n}=y^{-1}$ -Differentiating wrt. x we get: $\frac{du}{dx}=-y^{-2}{\frac{dy}{dx}}$ -$y^{-2}{\frac{dy}{dx}=-\frac{ du }{ dx }}$ -$y^{-2}{\frac{dy}{dx}+y^{-1}=-\frac{ du }{ dx }}+y^{-1}$ -${x^2=-\frac{ du }{ dx }}+y^{-1}$ -$x^2=-\frac{du}{dx}+u$ -$\frac{du}{dx}-u=-x^2$ -Yay we have a linear equation now! We can solve it using the techniques & formulas we learned for them. -let $P(x)=-1 \quad Q(x)=-x^2 \qquad I(x)=e^{\int -1 , dx}=e^{-x}$ -$u=-e^{x}\int e^{-x}x^2 , dx$ -LIATE log, inv, alg, trig, exp -$\int fg' , dx=fg-\int f’g , dx$ -let $f=x^2 \qquad f'=2x \qquad g'=e^{-x} \qquad g=-e^{-x}$ -$u=-e^{x}\left( x^2(-e^{-x})-\int 2x(-e^{-x}) , dx \right)$ -$u=-e^{x}\left( -x^2e^{-x}+2\int xe^{-x} , dx \right)$ -let $f=x \qquad f'=1 \qquad g'=e^{-x} \qquad g=-e^{-x}$ -$u=-e^x\left( -x^2e^{-x}+2\left( -xe^{-x}-\int -e^{-x} , dx \right) \right)$ -$\frac{1}{y}=-e^x\left( -x^2e^{-x}+2\left( -xe^{-x}-e^{-x} +C\right) \right)$ -$\frac{1}{y}=x^2+2(x+1+Ce^x)$ -$\frac{1}{y}=x^2+2x+2+Ce^x$ -The general solution to the DE is: -$y(x)=\frac{1}{x^2+2x+2+Ce^x}$ as well as $y(x)=0$

-
-

end of lecture 3

- - - - - - - -

Referenced in

- - - - - -
-
- - - - - diff --git a/public/css/main.min.203106d73d4370d04c60441691746dd8e021e38bbbc83f65f636dc8ae886a9f3.css b/public/css/main.min.203106d73d4370d04c60441691746dd8e021e38bbbc83f65f636dc8ae886a9f3.css deleted file mode 100644 index fe9593e..0000000 --- a/public/css/main.min.203106d73d4370d04c60441691746dd8e021e38bbbc83f65f636dc8ae886a9f3.css +++ /dev/null @@ -1 +0,0 @@ -:root{--background: rgba(250, 248, 245, 1.0);--background-search: rgba(250, 248, 245, 1.0);--text-base-color: rgba(75, 53, 8, 1.00);--title-text-color: rgba(99, 90, 71, 1.00);--link-text-color: rgba(11, 53, 135, 1.0);--accent-text-color: rgba(115, 144, 201, 1.0);--selected-text-background-color: rgba(184, 133, 80, 0.32);--hashtag-text-color: rgba(255, 255, 255, 1.0);--hashtag-marker-text-color: rgba(255, 255, 255, 1.0);--hashtag-background-color: rgba(174, 147, 101, 0.7);--highlighter-marker-color: rgba(211, 255, 164, 1.00);--separator-color: rgba(233, 225, 211, 1.0);--note-table-cell-selected-color: rgba(244, 235, 221, 1.00);--note-table-cell-ribbon-color: rgba(175, 148, 101, 1.00);--dark-background-color: rgba(66, 35, 13, 1.00);--search-field-focused-color: #80ABD9}@charset "UTF-8";input{margin:0;padding:0;border:0;font:inherit;color:inherit;font-size:100%;vertical-align:baseline}*:focus{outline:none}textarea,input[type=search],input[type=text],input[type=button],input[type=submit]{-webkit-appearance:none;border-radius:0}::selection{background:var(--selected-text-background-color)}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}html{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}caption,th,td{text-align:left;font-weight:400;vertical-align:middle}q,blockquote{quotes:none}q:before,q:after,blockquote:before,blockquote:after{content:"";content:none}a img{border:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}*{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}html{font-size:87.5%;line-height:1.57143em}html{font-size:14px;line-height:1.6em;-webkit-text-size-adjust:100%}body{background:var(--background);color:var(--text-base-color);text-rendering:optimizeLegibility;font-family:avenirnext-regular}a{color:var(--link-text-color);text-decoration:none}h1{font-family:avenirnext-medium;color:var(--title-text-color);font-size:1.6em;line-height:1.3em;margin-bottom:.78571em}h2{font-family:avenirnext-medium;color:var(--title-text-color);font-size:1.3em;line-height:1em;margin-bottom:.62857em}h3{font-family:avenirnext-medium;color:var(--title-text-color);font-size:1.15em;line-height:1em;margin-bottom:.47143em}p{margin-bottom:1.57143em;hyphens:auto}hr{height:1px;border:0;background-color:#dedede;margin:-1px auto 1.57143em}ul,ol{margin-bottom:.31429em}ul ul,ul ol,ol ul,ol ol{margin-bottom:0}ol{counter-reset:ol_counter}ol li:before{content:counter(ol_counter)".";counter-increment:ol_counter;color:var(--accent-text-color);text-align:right;display:inline-block;min-width:1em;margin-right:.5em}b,strong{font-family:avenirnext-bold}i,em{font-family:avenirnext-italic}code{font-family:menlo-regular}.text-overflow-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sf_code_string,.sf_code_selector,.sf_code_attr-name,.sf_code_char,.sf_code_builtin,.sf_code_inserted{color:#d33905}.sf_code_comment,.sf_code_prolog,.sf_code_doctype,.sf_code_cdata{color:#838383}.sf_code_number,.sf_code_boolean{color:#0e73a2}.sf_code_keyword,.sf_code_atrule,.sf_code_rule,.sf_code_attr-value,.sf_code_function,.sf_code_class-name,.sf_code_class,.sf_code_regex,.sf_code_important,.sf_code_variable,.sf_code_interpolation{color:#0e73a2}.sf_code_property,.sf_code_tag,.sf_code_constant,.sf_code_symbol,.sf_code_deleted{color:#1b00ce}.sf_code_macro,.sf_code_entity,.sf_code_operator,.sf_code_url{color:#920448}.note-wrapper{max-width:46em;margin:0 auto;padding:1.57143em 3.14286em}.note-wrapper.spotlight-preview{overflow-x:hidden}u{text-decoration:none;background-image:linear-gradient(to bottom,rgba(0,0,0,0) 50%,var(--accent-text-color) 50%);background-repeat:repeat-x;background-size:2px 2px;background-position:0 1.05em}s{color:#878787}p{margin-bottom:.1em}hr{margin-bottom:.7em;margin-top:.7em}ul li{text-indent:-.35em}ul li:before{content:"•";color:var(--accent-text-color);display:inline-block;margin-right:.3em}ul ul{margin-left:1.25714em}ol li{text-indent:-1.45em}ol ol{margin-left:1.25714em}blockquote{display:block;margin-left:-1em;padding-left:.8em;border-left:.2em solid var(--accent-text-color)}.todo-list ul{margin-left:1.88571em}.todo-list li{text-indent:-1.75em}.todo-list li:before{content:"";display:static;margin-right:0}.todo-checkbox{text-indent:-1.7em}.todo-checkbox svg{margin-right:.3em;position:relative;top:.2em}.todo-checkbox svg #check{display:none}.todo-checkbox.todo-checked #check{display:inline}.todo-checkbox.todo-checked+.todo-text{text-decoration:line-through;color:#878787}.code-inline{display:inline;background:#fff;border:solid 1px #dedede;padding:.2em .5em;font-size:.9em}.code-multiline{display:block;background:#fff;border:solid 1px #dedede;padding:.7em 1em;font-size:.9em;overflow-x:auto}.hashtag{display:inline-block;color:var(--hashtag-text-color);background:var(--hashtag-background-color);padding:0 .5em;border-radius:1em;text-indent:0}.hashtag a{color:var(--hashtag-text-color)}.address a{color:#545454;background-image:linear-gradient(to bottom,rgba(0,0,0,0) 50%,#0da35e 50%);background-repeat:repeat-x;background-size:2px 2px;background-position:0 1.05em}.address svg{position:relative;top:.2em;display:inline-block;margin-right:.2em}.color-preview{display:inline-block;width:1em;height:1em;border:solid 1px rgba(0,0,0,.3);border-radius:50%;margin-right:.1em;position:relative;top:.2em;white-space:nowrap}.color-code{margin-right:.2em;font-family:menlo-regular;font-size:.9em}.color-hash{opacity:.4}.ordered-list-number{color:var(--accent-text-color);text-align:right;display:inline-block;min-width:1em}.arrow svg{position:relative;top:.08em;display:inline-block;margin-right:.15em;margin-left:.15em}.arrow svg #rod{stroke:#545454}.arrow svg #point{fill:#545454}mark{color:inherit;display:inline;padding:.2em .5em;background-color:var(--highlighter-marker-color)}img{max-width:100%;height:auto}li>p{display:inline-block;margin-left:16px}hr{background:var(--divider-color);margin-top:2.6em;margin-bottom:12px}h4{font-family:avenirnext-medium;color:var(--title-text-color);font-size:1.05em;margin-bottom:.47143em}*+p,*+ul,*+ol,*+blockquote{margin-top:1.6em}svg+ul,svg+ol{margin-top:0}*+h2,*+h3,*+h4{margin-top:2.8em}h1,h2,h3,h4,h5,h6{position:relative}h1:before,h2:before,h3:before,h4:before,h5:before,h6:before{position:absolute;left:-2.2em;color:var(--heading-indicator);font-size:12px}h1:before{content:"H1"}h2:before{content:"H2"}h3:before{content:"H3"}h4:before{content:"H4"}h5:before{content:"H5"}h6:before{content:"H6"}.note-wrapper{margin-top:2em}.highlighted{background:var(--selected-text-background-color)}.hashtag{cursor:pointer;margin-bottom:4px;position:relative;margin-right:2px}.hashtag:before{content:"#"}*+table{margin-top:12px}table{border-radius:4px;border:1px solid var(--separator-color);border-collapse:inherit;overflow:hidden;width:100%}table th{font-family:avenir-medium,avenirltstd-medium}table td,table th{padding:.3em .8em}table tr:nth-child(odd){background-color:var(--selected-text-inactive-background-color)}pre,p code,li code{border:1px solid var(--separator-color);padding:10px;font-size:12px;background:#fff;overflow:hidden}li code,p code{padding:2px}li img{width:122px}.thumbnail{width:122px;height:76px;border:1px solid var(--separator-color);object-fit:cover}.turbolinks-progress-bar{visibility:hidden}.chroma{color:#42486d;background-color:#fff}.chroma .x{}.chroma .err{}.chroma .lntd{vertical-align:top;padding:0;margin:0;border:0}.chroma .lntable{border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block}.chroma .hl{display:block;width:100%;background-color:#ffc}.chroma .lnt{margin-right:.4em;padding:0 .4em;color:#7f7f7f}.chroma .ln{margin-right:.4em;padding:0 .4em;color:#7f7f7f}.chroma .k{color:#ee8a87}.chroma .kc{color:#ee8a87}.chroma .kd{color:#6974dd;font-weight:700}.chroma .kn{color:#ee8a87}.chroma .kp{color:#ee8a87}.chroma .kr{color:#6974dd;font-weight:700}.chroma .kt{color:#6974dd;font-weight:700}.chroma .n{color:#42486d}.chroma .na{color:#e7b70a}.chroma .nb{color:#6974dd;font-style:italic}.chroma .bp{}.chroma .nc{color:#e7b70a}.chroma .no{}.chroma .nd{}.chroma .ni{}.chroma .ne{}.chroma .nf{color:#4090cc;font-weight:700}.chroma .fm{}.chroma .nl{color:#6974dd;font-style:italic}.chroma .nn{}.chroma .nx{}.chroma .py{}.chroma .nt{color:#ee8a87}.chroma .nv{color:#42486d}.chroma .vc{color:#6974dd;font-style:italic}.chroma .vg{color:#6974dd;font-style:italic}.chroma .vi{color:#6974dd;font-style:italic}.chroma .vm{}.chroma .l{}.chroma .ld{}.chroma .s{color:#4a9777}.chroma .sa{color:#4a9777}.chroma .sb{color:#4a9777}.chroma .sc{color:#4a9777}.chroma .dl{color:#4a9777}.chroma .sd{color:#4a9777}.chroma .s2{color:#4a9777}.chroma .se{color:#4a9777}.chroma .sh{color:#4a9777}.chroma .si{color:#4a9777}.chroma .sx{color:#4a9777}.chroma .sr{color:#4a9777}.chroma .s1{color:#4a9777}.chroma .ss{color:#4a9777}.chroma .m{color:#ea846a}.chroma .mb{color:#ea846a}.chroma .mf{color:#ea846a}.chroma .mh{color:#ea846a}.chroma .mi{color:#ea846a}.chroma .il{color:#ea846a}.chroma .mo{color:#ea846a}.chroma .o{color:#4090cc}.chroma .ow{color:#ee8a87}.chroma .p{color:#4090cc}.chroma .c{color:#95a2af}.chroma .ch{color:#95a2af}.chroma .cm{color:#95a2af}.chroma .c1{color:#95a2af}.chroma .cs{color:#95a2af}.chroma .cp{color:#ee8a87}.chroma .cpf{color:#ee8a87}.chroma .g{}.chroma .gd{color:#8b080b}.chroma .ge{text-decoration:underline}.chroma .gr{}.chroma .gh{font-weight:700}.chroma .gi{font-weight:700}.chroma .go{color:#44475a}.chroma .gp{}.chroma .gs{}.chroma .gu{font-weight:700}.chroma .gt{}.chroma .gl{text-decoration:underline}.chroma{}.chroma .w{} \ No newline at end of file diff --git a/public/homogenous-de-lec-2.html b/public/homogenous-de-lec-2.html deleted file mode 100644 index f051ac6..0000000 --- a/public/homogenous-de-lec-2.html +++ /dev/null @@ -1,593 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - Homogenous DE (lec 2) - My New Hugo Site - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - -
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

#start of lecture 2

-

2 new tricks: homogenous and linear DE

-

Homogenous equations:

-

$\frac{dy}{dt}=f\left( \frac{y}{t} \right)$ (I’m calling this de_h_type1) -let $u=\frac{y}{t}$ $y=tu \quad \frac{dy}{dt}=u+t\frac{du}{dt}$ -so $\frac{dy}{dt}=f(u)=u+t{\frac{du}{dt}}$ -The homogenous equation has been converted into a separable DE! -$\frac{du}{dt}=\frac{f(u)-u}{t}$ -$\frac{du}{f(u)-u}=\frac{dt}{t}$

-

Another way you can write a homogenous equation:

-

$\frac{dy}{dx}=G(ax+by)\quad \text{where a, b }\in \mathbb{R}$ (I’m calling this de_h_type2) -Then, let $u=ax+by$ -$\frac{du}{dx}=a+b{\frac{dy}{dx}}$ -$\frac{dy}{dx}=\frac{1}{b}{\frac{du}{dx}}-\frac{a}{b}=G(u)$ -Again, the homogenous equation has been converted to a separable DE! -$dx=\frac{du}{b{G(u)+\frac{a}{b}}}$ -Just integrate both sides as usual and you’re chilling.

-

Examples of homogenous equations:

-

-

ex -de_h_type1:$\frac{dy}{dx}=\frac{{x+y}}{x-y} \quad x>y\quad\text{This condition is added so the denominator}\ne 0$

-

but $\frac{{x+y}}{x-y}\ne f(\frac{y}{x})$… Or is it? How can this be written as a homogenous equation? -divide the top and bottom by x: -$\frac{dy}{dx}=\frac{{1+\frac{y}{x}}}{1-\frac{y}{x}}$ -Yay! now it’s a function of $\frac{y}{x}$ -let $u=\frac{y}{x} \quad \frac{dy}{dx}=u+x{\frac{du}{dx}}$ -$\frac{dy}{dx}=\frac{1+u}{1-u}=u+x{\frac{du}{dx}}$ -$\frac{dx({f(u)-u})}{x}=du$ -$\frac{dx}{x}=\frac{du}{{f(u)-u}}$

-
-

That’s odd, why is it not $\frac{du}{f(u)-u}=\frac{x}{dx}$? I got this by moving the top over. -(it’s because you must move all multiplicative factors when using this technique of moving the top. Be careful!)

-
-

$\int\frac{dx}{x}=\int\frac{du}{{f(u)-u}}$ -$\ln\mid x\mid=\int \frac{du}{\frac{{1+u}}{1-u}-u}$ -$\ln\mid x\mid=\int \frac{du}{\frac{{1+u-u+u^2}}{1-u}}$ -$\ln\mid x\mid=\int \frac{1-u}{{1+u^2}}du$

-
-

let $1+u^2=v \quad dv=2udu$ -$=\int \frac{{1-u}}{v} , du$ Gah, doesn’t work. I didn’t notice I could split the integral up first.

-
-

$\ln\mid x\mid=\int \frac{1}{{1+u^2}},du-\int \frac{u}{1+u^2} , du=\arctan\left( \frac{y}{x} \right)+C-I_{0}$ -for $I_{0}$ let $v=1+u^2 \quad dv=2udu$ -$I_{0}=\int \frac{u}{v} , \frac{dv}{2u}=\frac{1}{2}\int \frac{dv}{v}=\frac{1}{2}\ln(1+u^2)$

-
-

^Note no abs value needed in the $\ln()$ as $1+u^2$ is always +

-
-

$\ln\mid x\mid=\arctan\left( \frac{y}{x} \right)+C-\frac{1}{2}\ln(1+u^2)$ -$\ln\mid x\mid=\arctan\left( \frac{y}{x} \right)+C-\frac{1}{2}\ln\left( 1+\frac{y^2}{x^2} \right)$ -$\mid x\mid=e^{\arctan(\frac{y}{x})+C-\ln(\sqrt{ 1+y^2/x^2 })}$ -$x=\frac{e^{\arctan(y/x)}A}{\sqrt{ 1+\frac{y^2}{x^2} }}$ -$x\sqrt{ 1+\frac{y^2}{x^2}} ={e^{\arctan(y/x)}A}$ -So the final general solution to the problem is:

-

$$\sqrt{ x^2+y^2 }=e^{\arctan\left( \frac{y}{x} \right)}A$$

-
-

-

ex -de_h_type2: $$(2x-2y-1)dx+(x-y+1)dy=0$$ -Can we write it in the form $\frac{dy}{dx}=G(ax+by)$? -$(x-y+1)dy=-(2x-2y-1)dx$ -$\frac{dy}{dx}=\frac{{2y+1-2x}}{x-y+1}$ -factor out a -2? -$\frac{dy}{dx}=-2\frac{{x-y-\frac{1}{2}}}{x-y+1}$ -Yep! looks like a -de_h_type2 -let $u=x-y$ -$\frac{du}{dx}=1-\frac{dy}{dx}$ -$1-\frac{du}{dx}=\frac{dy}{dx}=-2\frac{{x-y-\frac{1}{2}}}{x-y+1}$

-
-

Obviously we don’t work with x and y as I was entailing above, substitute $u=x-y$ in you silly goose.

-
-

$1-\frac{du}{dx}=-2\frac{{u-\frac{1}{2}}}{u+1}$ -$\frac{du}{dx}=2\frac{{u-\frac{1}{2}}}{u+1}+1$ -$\frac{du}{dx}=\frac{2u-1}{u+1}+1$ -$\frac{du}{dx}=\frac{{2u-1+u+1}}{u+1}$ -$\frac{du}{dx}=\frac{3u}{u+1}$ -$\frac{(u+1)du}{3u}=dx$ -$\int \frac{(u+1)du}{3u}=\int dx$

-
-

$\int \frac{du}{3}+\frac{1}{3}\int \frac{du}{u}=\ln\mid x\mid+C$ -Ah, I made a mistake. $\int dx \ne \ln\mid x\mid+C$

-
-

$\int \frac{du}{3}+\frac{1}{3}\int \frac{du}{u}=x+C$

-
-

Okay, now that we have integrated, we can start talking in terms of x and y again

-
-

$\frac{x-y}{3}+\frac{1}{3}\ln\mid x-y\mid = x+C$ -$x-y+\ln\mid x-y\mid=3x+C$ -$\ln\mid x-y\mid=C+y+2x$ < this is where he moved the C to the left -$\mid x-y\mid=e^Ce^ye^{2x}$ -$x-y=Ae^ye^{2x}$ -$A(x-y)=e^{y+2x}$

-
-

I know that above step looks illegal, but the prof did this (indirectly, he moved C to the LHS in a prior step without regarding it’s sign). I wonder what happens if A was 0 though? Do we get divide by zero errors? Thinking about it more, we are changing $x-y=0$ to $e^{y+2x}=0$ when $A=0$ The first one has a solution (y=x) the second loses that solution because of ln(0) issues (gives a function that’s undefined for all x). when checking y(x)=x in the DE, it is a valid solution. So it is an illegal step! Because we lost a valid solution. I’ll have to check with the prof. -Interestingly, if we act like $e^{y+2x}=0$ is defined, we get $\frac{dy}{dx}=-2$

-
-

Proof: -$\lim_{ n \to 0 }e^{y+2x}=n$ -$\lim_{ n \to 0 }\ln(n)=y+2x$ -$\lim_{ n \to 0 }\frac{d}{dx}\ln(n)=0=\frac{dy}{dx}+2$ -$\frac{dy}{dx}=-2$

-
-
-

so from $\frac{dy}{dx}=-2\frac{{x-y-\frac{1}{2}}}{x-y+1}$ we get: -$-2=-2\frac{{x-y-\frac{1}{2}}}{x-y+1}$ -$x-y+1=x-y-\frac{1}{2}$ -$1=-\frac{1}{2}$ -So what does this all mean? I honestly have no idea. I think it means we assumed that $e^{y+2x}=0$ is defined and because we arrived at a contradiction, our assumption was wrong. That didn’t really get us to show if it was a valid solution or not like I imagined.

-

We can rearrange to our liking, but we have found the general solution to the DE:

-

$$x-y=Ae^{2x+y}$$

-
- - - - - - - -

Referenced in

- - - - - -
-
- - - - - diff --git a/public/index.html b/public/index.html deleted file mode 100644 index d235817..0000000 --- a/public/index.html +++ /dev/null @@ -1,460 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - My New Hugo Site - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - -
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

This is the main index

-

I have written these notes for myself, I thought it would be cool to share them. These notes may be inaccurate, incomplete, or incoherent. No warranty is expressed or implied. Reader assumes all risk and liabilities.

-

Seperable DE (lec 1)

-

Homogenous DE (lec 2)

-

Linear DE (lec 2&3)

-

Bernoulli DE (lec 3)

- - - -
-
- - - - - diff --git a/public/index.json b/public/index.json deleted file mode 100644 index 3eb2958..0000000 --- a/public/index.json +++ /dev/null @@ -1,178 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {"index":[{"permalink":"/lec-4.html","summary":"two new equations Linear coefficients equations …","tags":["\n#ex"," #de_LC_type1","\n#end"],"thumbnail":"","title":"(lec 4)"},{"permalink":"/bernoulli-de-lec-3.html","summary":"Bernoulli\u0026rsquo;s equation: $$\\frac{ dy }{ dx } +P(x)y=Q(x)y^n …","tags":[" #de_b_type1)","\n#ex"," #de_b_type1","\n#end"],"thumbnail":"","title":"Bernoulli DE (lec 3)"},{"permalink":"/homogenous-de-lec-2.html","summary":"#start of lecture 2\n2 new tricks: homogenous and linear DE Homogenous …","tags":[" #de_h_type1)"," #de_h_type2)"," #ex"," #de_h_type1"," #de_h_type2"],"thumbnail":"","title":"Homogenous DE (lec 2)"},{"permalink":"/linear-de-lec-23.html","summary":"The world is non-linear, many solutions, many paths to the solution. …","tags":[" #de_L_type1)"," #de_L_type2)"," #remember","\n#end"," #start","\n#ex"," #de_L_type2"," #de_L_type1"," #IVP"],"thumbnail":"","title":"Linear DE (lec 2\u00263)"},{"permalink":"/seperable-de-lec-1.html","summary":"#start of lecture 1\nIntro (Newton example): Newton example where we …","tags":[" #de_s_type1)","\n#ex"," #IVP"," #de_s_type1","\n#end"],"thumbnail":"","title":"Seperable DE (lec 1)"},{"permalink":"/things-to-remember.html","summary":"This is an incomplete list. I\u0026rsquo;m trying to add to it as I go. …","tags":[" #remember"],"thumbnail":"","title":"Things to remember"}],"tags":["de_b_type1","de_b_type1)","de_h_type1","de_h_type1)","de_h_type2","de_h_type2)","de_L_type1","de_L_type1)","de_L_type2","de_L_type2)","de_LC_type1","de_s_type1","de_s_type1)","end","ex","IVP","remember","start"]} - - - diff --git a/public/js/main.min.2dd2f7073384163751d1886bcb921097bc2af8ec60cb37deebf49f61a0eca5c3.js b/public/js/main.min.2dd2f7073384163751d1886bcb921097bc2af8ec60cb37deebf49f61a0eca5c3.js deleted file mode 100644 index 8c23bf6..0000000 --- a/public/js/main.min.2dd2f7073384163751d1886bcb921097bc2af8ec60cb37deebf49f61a0eca5c3.js +++ /dev/null @@ -1,70 +0,0 @@ -(function(){var t=this;(function(){(function(){this.Turbolinks={supported:function(){return null!=window.history.pushState&&null!=window.requestAnimationFrame&&null!=window.addEventListener}(),visit:function(t,r){return e.controller.visit(t,r)},clearCache:function(){return e.controller.clearCache()},setProgressBarDelay:function(t){return e.controller.setProgressBarDelay(t)}}}).call(this)}).call(t);var e=t.Turbolinks;(function(){(function(){var t,r,n,o=[].slice;e.copyObject=function(t){var e,r,n;r={};for(e in t)n=t[e],r[e]=n;return r},e.closest=function(e,r){return t.call(e,r)},t=function(){var t,e;return t=document.documentElement,null!=(e=t.closest)?e:function(t){var e;for(e=this;e;){if(e.nodeType===Node.ELEMENT_NODE&&r.call(e,t))return e;e=e.parentNode}}}(),e.defer=function(t){return setTimeout(t,1)},e.throttle=function(t){var e;return e=null,function(){var r;return r=1<=arguments.length?o.call(arguments,0):[],null!=e?e:e=requestAnimationFrame(function(n){return function(){return e=null,t.apply(n,r)}}(this))}},e.dispatch=function(t,e){var r,o,i,s,a,u;return a=null!=e?e:{},u=a.target,r=a.cancelable,o=a.data,i=document.createEvent("Events"),i.initEvent(t,!0,r===!0),i.data=null!=o?o:{},i.cancelable&&!n&&(s=i.preventDefault,i.preventDefault=function(){return this.defaultPrevented||Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),s.call(this)}),(null!=u?u:document).dispatchEvent(i),i},n=function(){var t;return t=document.createEvent("Events"),t.initEvent("test",!0,!0),t.preventDefault(),t.defaultPrevented}(),e.match=function(t,e){return r.call(t,e)},r=function(){var t,e,r,n;return t=document.documentElement,null!=(e=null!=(r=null!=(n=t.matchesSelector)?n:t.webkitMatchesSelector)?r:t.msMatchesSelector)?e:t.mozMatchesSelector}(),e.uuid=function(){var t,e,r;for(r="",t=e=1;36>=e;t=++e)r+=9===t||14===t||19===t||24===t?"-":15===t?"4":20===t?(Math.floor(4*Math.random())+8).toString(16):Math.floor(15*Math.random()).toString(16);return r}}).call(this),function(){e.Location=function(){function t(t){var e,r;null==t&&(t=""),r=document.createElement("a"),r.href=t.toString(),this.absoluteURL=r.href,e=r.hash.length,2>e?this.requestURL=this.absoluteURL:(this.requestURL=this.absoluteURL.slice(0,-e),this.anchor=r.hash.slice(1))}var e,r,n,o;return t.wrap=function(t){return t instanceof this?t:new this(t)},t.prototype.getOrigin=function(){return this.absoluteURL.split("/",3).join("/")},t.prototype.getPath=function(){var t,e;return null!=(t=null!=(e=this.requestURL.match(/\/\/[^\/]*(\/[^?;]*)/))?e[1]:void 0)?t:"/"},t.prototype.getPathComponents=function(){return this.getPath().split("/").slice(1)},t.prototype.getLastPathComponent=function(){return this.getPathComponents().slice(-1)[0]},t.prototype.getExtension=function(){var t,e;return null!=(t=null!=(e=this.getLastPathComponent().match(/\.[^.]*$/))?e[0]:void 0)?t:""},t.prototype.isHTML=function(){return this.getExtension().match(/^(?:|\.(?:htm|html|xhtml))$/)},t.prototype.isPrefixedBy=function(t){var e;return e=r(t),this.isEqualTo(t)||o(this.absoluteURL,e)},t.prototype.isEqualTo=function(t){return this.absoluteURL===(null!=t?t.absoluteURL:void 0)},t.prototype.toCacheKey=function(){return this.requestURL},t.prototype.toJSON=function(){return this.absoluteURL},t.prototype.toString=function(){return this.absoluteURL},t.prototype.valueOf=function(){return this.absoluteURL},r=function(t){return e(t.getOrigin()+t.getPath())},e=function(t){return n(t,"/")?t:t+"/"},o=function(t,e){return t.slice(0,e.length)===e},n=function(t,e){return t.slice(-e.length)===e},t}()}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.HttpRequest=function(){function r(r,n,o){this.delegate=r,this.requestCanceled=t(this.requestCanceled,this),this.requestTimedOut=t(this.requestTimedOut,this),this.requestFailed=t(this.requestFailed,this),this.requestLoaded=t(this.requestLoaded,this),this.requestProgressed=t(this.requestProgressed,this),this.url=e.Location.wrap(n).requestURL,this.referrer=e.Location.wrap(o).absoluteURL,this.createXHR()}return r.NETWORK_FAILURE=0,r.TIMEOUT_FAILURE=-1,r.timeout=60,r.prototype.send=function(){var t;return this.xhr&&!this.sent?(this.notifyApplicationBeforeRequestStart(),this.setProgress(0),this.xhr.send(),this.sent=!0,"function"==typeof(t=this.delegate).requestStarted?t.requestStarted():void 0):void 0},r.prototype.cancel=function(){return this.xhr&&this.sent?this.xhr.abort():void 0},r.prototype.requestProgressed=function(t){return t.lengthComputable?this.setProgress(t.loaded/t.total):void 0},r.prototype.requestLoaded=function(){return this.endRequest(function(t){return function(){var e;return 200<=(e=t.xhr.status)&&300>e?t.delegate.requestCompletedWithResponse(t.xhr.responseText,t.xhr.getResponseHeader("Turbolinks-Location")):(t.failed=!0,t.delegate.requestFailedWithStatusCode(t.xhr.status,t.xhr.responseText))}}(this))},r.prototype.requestFailed=function(){return this.endRequest(function(t){return function(){return t.failed=!0,t.delegate.requestFailedWithStatusCode(t.constructor.NETWORK_FAILURE)}}(this))},r.prototype.requestTimedOut=function(){return this.endRequest(function(t){return function(){return t.failed=!0,t.delegate.requestFailedWithStatusCode(t.constructor.TIMEOUT_FAILURE)}}(this))},r.prototype.requestCanceled=function(){return this.endRequest()},r.prototype.notifyApplicationBeforeRequestStart=function(){return e.dispatch("turbolinks:request-start",{data:{url:this.url,xhr:this.xhr}})},r.prototype.notifyApplicationAfterRequestEnd=function(){return e.dispatch("turbolinks:request-end",{data:{url:this.url,xhr:this.xhr}})},r.prototype.createXHR=function(){return this.xhr=new XMLHttpRequest,this.xhr.open("GET",this.url,!0),this.xhr.timeout=1e3*this.constructor.timeout,this.xhr.setRequestHeader("Accept","text/html, application/xhtml+xml"),this.xhr.setRequestHeader("Turbolinks-Referrer",this.referrer),this.xhr.onprogress=this.requestProgressed,this.xhr.onload=this.requestLoaded,this.xhr.onerror=this.requestFailed,this.xhr.ontimeout=this.requestTimedOut,this.xhr.onabort=this.requestCanceled},r.prototype.endRequest=function(t){return this.xhr?(this.notifyApplicationAfterRequestEnd(),null!=t&&t.call(this),this.destroy()):void 0},r.prototype.setProgress=function(t){var e;return this.progress=t,"function"==typeof(e=this.delegate).requestProgressed?e.requestProgressed(this.progress):void 0},r.prototype.destroy=function(){var t;return this.setProgress(1),"function"==typeof(t=this.delegate).requestFinished&&t.requestFinished(),this.delegate=null,this.xhr=null},r}()}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.ProgressBar=function(){function e(){this.trickle=t(this.trickle,this),this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement()}var r;return r=300,e.defaultCSS=".turbolinks-progress-bar {\n position: fixed;\n display: block;\n top: 0;\n left: 0;\n height: 3px;\n background: #0076ff;\n z-index: 9999;\n transition: width "+r+"ms ease-out, opacity "+r/2+"ms "+r/2+"ms ease-in;\n transform: translate3d(0, 0, 0);\n}",e.prototype.show=function(){return this.visible?void 0:(this.visible=!0,this.installStylesheetElement(),this.installProgressElement(),this.startTrickling())},e.prototype.hide=function(){return this.visible&&!this.hiding?(this.hiding=!0,this.fadeProgressElement(function(t){return function(){return t.uninstallProgressElement(),t.stopTrickling(),t.visible=!1,t.hiding=!1}}(this))):void 0},e.prototype.setValue=function(t){return this.value=t,this.refresh()},e.prototype.installStylesheetElement=function(){return document.head.insertBefore(this.stylesheetElement,document.head.firstChild)},e.prototype.installProgressElement=function(){return this.progressElement.style.width=0,this.progressElement.style.opacity=1,document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()},e.prototype.fadeProgressElement=function(t){return this.progressElement.style.opacity=0,setTimeout(t,1.5*r)},e.prototype.uninstallProgressElement=function(){return this.progressElement.parentNode?document.documentElement.removeChild(this.progressElement):void 0},e.prototype.startTrickling=function(){return null!=this.trickleInterval?this.trickleInterval:this.trickleInterval=setInterval(this.trickle,r)},e.prototype.stopTrickling=function(){return clearInterval(this.trickleInterval),this.trickleInterval=null},e.prototype.trickle=function(){return this.setValue(this.value+Math.random()/100)},e.prototype.refresh=function(){return requestAnimationFrame(function(t){return function(){return t.progressElement.style.width=10+90*t.value+"%"}}(this))},e.prototype.createStylesheetElement=function(){var t;return t=document.createElement("style"),t.type="text/css",t.textContent=this.constructor.defaultCSS,t},e.prototype.createProgressElement=function(){var t;return t=document.createElement("div"),t.className="turbolinks-progress-bar",t},e}()}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.BrowserAdapter=function(){function r(r){this.controller=r,this.showProgressBar=t(this.showProgressBar,this),this.progressBar=new e.ProgressBar}var n,o,i;return i=e.HttpRequest,n=i.NETWORK_FAILURE,o=i.TIMEOUT_FAILURE,r.prototype.visitProposedToLocationWithAction=function(t,e){return this.controller.startVisitToLocationWithAction(t,e)},r.prototype.visitStarted=function(t){return t.issueRequest(),t.changeHistory(),t.loadCachedSnapshot()},r.prototype.visitRequestStarted=function(t){return this.progressBar.setValue(0),t.hasCachedSnapshot()||"restore"!==t.action?this.showProgressBarAfterDelay():this.showProgressBar()},r.prototype.visitRequestProgressed=function(t){return this.progressBar.setValue(t.progress)},r.prototype.visitRequestCompleted=function(t){return t.loadResponse()},r.prototype.visitRequestFailedWithStatusCode=function(t,e){switch(e){case n:case o:return this.reload();default:return t.loadResponse()}},r.prototype.visitRequestFinished=function(t){return this.hideProgressBar()},r.prototype.visitCompleted=function(t){return t.followRedirect()},r.prototype.pageInvalidated=function(){return this.reload()},r.prototype.showProgressBarAfterDelay=function(){return this.progressBarTimeout=setTimeout(this.showProgressBar,this.controller.progressBarDelay)},r.prototype.showProgressBar=function(){return this.progressBar.show()},r.prototype.hideProgressBar=function(){return this.progressBar.hide(),clearTimeout(this.progressBarTimeout)},r.prototype.reload=function(){return window.location.reload()},r}()}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.History=function(){function r(e){this.delegate=e,this.onPageLoad=t(this.onPageLoad,this),this.onPopState=t(this.onPopState,this)}return r.prototype.start=function(){return this.started?void 0:(addEventListener("popstate",this.onPopState,!1),addEventListener("load",this.onPageLoad,!1),this.started=!0)},r.prototype.stop=function(){return this.started?(removeEventListener("popstate",this.onPopState,!1),removeEventListener("load",this.onPageLoad,!1),this.started=!1):void 0},r.prototype.push=function(t,r){return t=e.Location.wrap(t),this.update("push",t,r)},r.prototype.replace=function(t,r){return t=e.Location.wrap(t),this.update("replace",t,r)},r.prototype.onPopState=function(t){var r,n,o,i;return this.shouldHandlePopState()&&(i=null!=(n=t.state)?n.turbolinks:void 0)?(r=e.Location.wrap(window.location),o=i.restorationIdentifier,this.delegate.historyPoppedToLocationWithRestorationIdentifier(r,o)):void 0},r.prototype.onPageLoad=function(t){return e.defer(function(t){return function(){return t.pageLoaded=!0}}(this))},r.prototype.shouldHandlePopState=function(){return this.pageIsLoaded()},r.prototype.pageIsLoaded=function(){return this.pageLoaded||"complete"===document.readyState},r.prototype.update=function(t,e,r){var n;return n={turbolinks:{restorationIdentifier:r}},history[t+"State"](n,null,e)},r}()}.call(this),function(){e.HeadDetails=function(){function t(t){var e,r,n,s,a,u;for(this.elements={},n=0,a=t.length;a>n;n++)u=t[n],u.nodeType===Node.ELEMENT_NODE&&(s=u.outerHTML,r=null!=(e=this.elements)[s]?e[s]:e[s]={type:i(u),tracked:o(u),elements:[]},r.elements.push(u))}var e,r,n,o,i;return t.fromHeadElement=function(t){var e;return new this(null!=(e=null!=t?t.childNodes:void 0)?e:[])},t.prototype.hasElementWithKey=function(t){return t in this.elements},t.prototype.getTrackedElementSignature=function(){var t,e;return function(){var r,n;r=this.elements,n=[];for(t in r)e=r[t].tracked,e&&n.push(t);return n}.call(this).join("")},t.prototype.getScriptElementsNotInDetails=function(t){return this.getElementsMatchingTypeNotInDetails("script",t)},t.prototype.getStylesheetElementsNotInDetails=function(t){return this.getElementsMatchingTypeNotInDetails("stylesheet",t)},t.prototype.getElementsMatchingTypeNotInDetails=function(t,e){var r,n,o,i,s,a;o=this.elements,s=[];for(n in o)i=o[n],a=i.type,r=i.elements,a!==t||e.hasElementWithKey(n)||s.push(r[0]);return s},t.prototype.getProvisionalElements=function(){var t,e,r,n,o,i,s;r=[],n=this.elements;for(e in n)o=n[e],s=o.type,i=o.tracked,t=o.elements,null!=s||i?t.length>1&&r.push.apply(r,t.slice(1)):r.push.apply(r,t);return r},t.prototype.getMetaValue=function(t){var e;return null!=(e=this.findMetaElementByName(t))?e.getAttribute("content"):void 0},t.prototype.findMetaElementByName=function(t){var r,n,o,i;r=void 0,i=this.elements;for(o in i)n=i[o].elements,e(n[0],t)&&(r=n[0]);return r},i=function(t){return r(t)?"script":n(t)?"stylesheet":void 0},o=function(t){return"reload"===t.getAttribute("data-turbolinks-track")},r=function(t){var e;return e=t.tagName.toLowerCase(),"script"===e},n=function(t){var e;return e=t.tagName.toLowerCase(),"style"===e||"link"===e&&"stylesheet"===t.getAttribute("rel")},e=function(t,e){var r;return r=t.tagName.toLowerCase(),"meta"===r&&t.getAttribute("name")===e},t}()}.call(this),function(){e.Snapshot=function(){function t(t,e){this.headDetails=t,this.bodyElement=e}return t.wrap=function(t){return t instanceof this?t:"string"==typeof t?this.fromHTMLString(t):this.fromHTMLElement(t)},t.fromHTMLString=function(t){var e;return e=document.createElement("html"),e.innerHTML=t,this.fromHTMLElement(e)},t.fromHTMLElement=function(t){var r,n,o,i;return o=t.querySelector("head"),r=null!=(i=t.querySelector("body"))?i:document.createElement("body"),n=e.HeadDetails.fromHeadElement(o),new this(n,r)},t.prototype.clone=function(){return new this.constructor(this.headDetails,this.bodyElement.cloneNode(!0))},t.prototype.getRootLocation=function(){var t,r;return r=null!=(t=this.getSetting("root"))?t:"/",new e.Location(r)},t.prototype.getCacheControlValue=function(){return this.getSetting("cache-control")},t.prototype.getElementForAnchor=function(t){try{return this.bodyElement.querySelector("[id='"+t+"'], a[name='"+t+"']")}catch(e){}},t.prototype.getPermanentElements=function(){return this.bodyElement.querySelectorAll("[id][data-turbolinks-permanent]")},t.prototype.getPermanentElementById=function(t){return this.bodyElement.querySelector("#"+t+"[data-turbolinks-permanent]")},t.prototype.getPermanentElementsPresentInSnapshot=function(t){var e,r,n,o,i;for(o=this.getPermanentElements(),i=[],r=0,n=o.length;n>r;r++)e=o[r],t.getPermanentElementById(e.id)&&i.push(e);return i},t.prototype.findFirstAutofocusableElement=function(){return this.bodyElement.querySelector("[autofocus]")},t.prototype.hasAnchor=function(t){return null!=this.getElementForAnchor(t)},t.prototype.isPreviewable=function(){return"no-preview"!==this.getCacheControlValue()},t.prototype.isCacheable=function(){return"no-cache"!==this.getCacheControlValue()},t.prototype.isVisitable=function(){return"reload"!==this.getSetting("visit-control")},t.prototype.getSetting=function(t){return this.headDetails.getMetaValue("turbolinks-"+t)},t}()}.call(this),function(){var t=[].slice;e.Renderer=function(){function e(){}var r;return e.render=function(){var e,r,n,o;return n=arguments[0],r=arguments[1],e=3<=arguments.length?t.call(arguments,2):[],o=function(t,e,r){r.prototype=t.prototype;var n=new r,o=t.apply(n,e);return Object(o)===o?o:n}(this,e,function(){}),o.delegate=n,o.render(r),o},e.prototype.renderView=function(t){return this.delegate.viewWillRender(this.newBody),t(),this.delegate.viewRendered(this.newBody)},e.prototype.invalidateView=function(){return this.delegate.viewInvalidated()},e.prototype.createScriptElement=function(t){var e;return"false"===t.getAttribute("data-turbolinks-eval")?t:(e=document.createElement("script"),e.textContent=t.textContent,e.async=!1,r(e,t),e)},r=function(t,e){var r,n,o,i,s,a,u;for(i=e.attributes,a=[],r=0,n=i.length;n>r;r++)s=i[r],o=s.name,u=s.value,a.push(t.setAttribute(o,u));return a},e}()}.call(this),function(){var t,r,n=function(t,e){function r(){this.constructor=t}for(var n in e)o.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},o={}.hasOwnProperty;e.SnapshotRenderer=function(e){function o(t,e,r){this.currentSnapshot=t,this.newSnapshot=e,this.isPreview=r,this.currentHeadDetails=this.currentSnapshot.headDetails,this.newHeadDetails=this.newSnapshot.headDetails,this.currentBody=this.currentSnapshot.bodyElement,this.newBody=this.newSnapshot.bodyElement}return n(o,e),o.prototype.render=function(t){return this.shouldRender()?(this.mergeHead(),this.renderView(function(e){return function(){return e.replaceBody(),e.isPreview||e.focusFirstAutofocusableElement(),t()}}(this))):this.invalidateView()},o.prototype.mergeHead=function(){return this.copyNewHeadStylesheetElements(),this.copyNewHeadScriptElements(),this.removeCurrentHeadProvisionalElements(),this.copyNewHeadProvisionalElements()},o.prototype.replaceBody=function(){var t;return t=this.relocateCurrentBodyPermanentElements(),this.activateNewBodyScriptElements(),this.assignNewBody(),this.replacePlaceholderElementsWithClonedPermanentElements(t)},o.prototype.shouldRender=function(){return this.newSnapshot.isVisitable()&&this.trackedElementsAreIdentical()},o.prototype.trackedElementsAreIdentical=function(){return this.currentHeadDetails.getTrackedElementSignature()===this.newHeadDetails.getTrackedElementSignature()},o.prototype.copyNewHeadStylesheetElements=function(){var t,e,r,n,o;for(n=this.getNewHeadStylesheetElements(),o=[],e=0,r=n.length;r>e;e++)t=n[e],o.push(document.head.appendChild(t));return o},o.prototype.copyNewHeadScriptElements=function(){var t,e,r,n,o;for(n=this.getNewHeadScriptElements(),o=[],e=0,r=n.length;r>e;e++)t=n[e],o.push(document.head.appendChild(this.createScriptElement(t)));return o},o.prototype.removeCurrentHeadProvisionalElements=function(){var t,e,r,n,o;for(n=this.getCurrentHeadProvisionalElements(),o=[],e=0,r=n.length;r>e;e++)t=n[e],o.push(document.head.removeChild(t));return o},o.prototype.copyNewHeadProvisionalElements=function(){var t,e,r,n,o;for(n=this.getNewHeadProvisionalElements(),o=[],e=0,r=n.length;r>e;e++)t=n[e],o.push(document.head.appendChild(t));return o},o.prototype.relocateCurrentBodyPermanentElements=function(){var e,n,o,i,s,a,u;for(a=this.getCurrentBodyPermanentElements(),u=[],e=0,n=a.length;n>e;e++)i=a[e],s=t(i),o=this.newSnapshot.getPermanentElementById(i.id),r(i,s.element),r(o,i),u.push(s);return u},o.prototype.replacePlaceholderElementsWithClonedPermanentElements=function(t){var e,n,o,i,s,a,u;for(u=[],o=0,i=t.length;i>o;o++)a=t[o],n=a.element,s=a.permanentElement,e=s.cloneNode(!0),u.push(r(n,e));return u},o.prototype.activateNewBodyScriptElements=function(){var t,e,n,o,i,s;for(i=this.getNewBodyScriptElements(),s=[],e=0,o=i.length;o>e;e++)n=i[e],t=this.createScriptElement(n),s.push(r(n,t));return s},o.prototype.assignNewBody=function(){return document.body=this.newBody},o.prototype.focusFirstAutofocusableElement=function(){var t;return null!=(t=this.newSnapshot.findFirstAutofocusableElement())?t.focus():void 0},o.prototype.getNewHeadStylesheetElements=function(){return this.newHeadDetails.getStylesheetElementsNotInDetails(this.currentHeadDetails)},o.prototype.getNewHeadScriptElements=function(){return this.newHeadDetails.getScriptElementsNotInDetails(this.currentHeadDetails)},o.prototype.getCurrentHeadProvisionalElements=function(){return this.currentHeadDetails.getProvisionalElements()},o.prototype.getNewHeadProvisionalElements=function(){return this.newHeadDetails.getProvisionalElements()},o.prototype.getCurrentBodyPermanentElements=function(){return this.currentSnapshot.getPermanentElementsPresentInSnapshot(this.newSnapshot)},o.prototype.getNewBodyScriptElements=function(){return this.newBody.querySelectorAll("script")},o}(e.Renderer),t=function(t){var e;return e=document.createElement("meta"),e.setAttribute("name","turbolinks-permanent-placeholder"),e.setAttribute("content",t.id),{element:e,permanentElement:t}},r=function(t,e){var r;return(r=t.parentNode)?r.replaceChild(e,t):void 0}}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var o in e)r.call(e,o)&&(t[o]=e[o]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},r={}.hasOwnProperty;e.ErrorRenderer=function(e){function r(t){var e;e=document.createElement("html"),e.innerHTML=t,this.newHead=e.querySelector("head"),this.newBody=e.querySelector("body")}return t(r,e),r.prototype.render=function(t){return this.renderView(function(e){return function(){return e.replaceHeadAndBody(),e.activateBodyScriptElements(),t()}}(this))},r.prototype.replaceHeadAndBody=function(){var t,e;return e=document.head,t=document.body,e.parentNode.replaceChild(this.newHead,e),t.parentNode.replaceChild(this.newBody,t)},r.prototype.activateBodyScriptElements=function(){var t,e,r,n,o,i;for(n=this.getScriptElements(),i=[],e=0,r=n.length;r>e;e++)o=n[e],t=this.createScriptElement(o),i.push(o.parentNode.replaceChild(t,o));return i},r.prototype.getScriptElements=function(){return document.documentElement.querySelectorAll("script")},r}(e.Renderer)}.call(this),function(){e.View=function(){function t(t){this.delegate=t,this.htmlElement=document.documentElement}return t.prototype.getRootLocation=function(){return this.getSnapshot().getRootLocation()},t.prototype.getElementForAnchor=function(t){return this.getSnapshot().getElementForAnchor(t)},t.prototype.getSnapshot=function(){return e.Snapshot.fromHTMLElement(this.htmlElement)},t.prototype.render=function(t,e){var r,n,o;return o=t.snapshot,r=t.error,n=t.isPreview,this.markAsPreview(n),null!=o?this.renderSnapshot(o,n,e):this.renderError(r,e)},t.prototype.markAsPreview=function(t){return t?this.htmlElement.setAttribute("data-turbolinks-preview",""):this.htmlElement.removeAttribute("data-turbolinks-preview")},t.prototype.renderSnapshot=function(t,r,n){return e.SnapshotRenderer.render(this.delegate,n,this.getSnapshot(),e.Snapshot.wrap(t),r)},t.prototype.renderError=function(t,r){return e.ErrorRenderer.render(this.delegate,r,t)},t}()}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.ScrollManager=function(){function r(r){this.delegate=r,this.onScroll=t(this.onScroll,this),this.onScroll=e.throttle(this.onScroll)}return r.prototype.start=function(){return this.started?void 0:(addEventListener("scroll",this.onScroll,!1),this.onScroll(),this.started=!0)},r.prototype.stop=function(){return this.started?(removeEventListener("scroll",this.onScroll,!1),this.started=!1):void 0},r.prototype.scrollToElement=function(t){return t.scrollIntoView()},r.prototype.scrollToPosition=function(t){var e,r;return e=t.x,r=t.y,window.scrollTo(e,r)},r.prototype.onScroll=function(t){return this.updatePosition({x:window.pageXOffset,y:window.pageYOffset})},r.prototype.updatePosition=function(t){var e;return this.position=t,null!=(e=this.delegate)?e.scrollPositionChanged(this.position):void 0},r}()}.call(this),function(){e.SnapshotCache=function(){function t(t){this.size=t,this.keys=[],this.snapshots={}}var r;return t.prototype.has=function(t){var e;return e=r(t),e in this.snapshots},t.prototype.get=function(t){var e;if(this.has(t))return e=this.read(t),this.touch(t),e},t.prototype.put=function(t,e){return this.write(t,e),this.touch(t),e},t.prototype.read=function(t){var e;return e=r(t),this.snapshots[e]},t.prototype.write=function(t,e){var n;return n=r(t),this.snapshots[n]=e},t.prototype.touch=function(t){var e,n;return n=r(t),e=this.keys.indexOf(n),e>-1&&this.keys.splice(e,1),this.keys.unshift(n),this.trim()},t.prototype.trim=function(){var t,e,r,n,o;for(n=this.keys.splice(this.size),o=[],t=0,r=n.length;r>t;t++)e=n[t],o.push(delete this.snapshots[e]);return o},r=function(t){return e.Location.wrap(t).toCacheKey()},t}()}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.Visit=function(){function r(r,n,o){this.controller=r,this.action=o,this.performScroll=t(this.performScroll,this),this.identifier=e.uuid(),this.location=e.Location.wrap(n),this.adapter=this.controller.adapter,this.state="initialized",this.timingMetrics={}}var n;return r.prototype.start=function(){return"initialized"===this.state?(this.recordTimingMetric("visitStart"),this.state="started",this.adapter.visitStarted(this)):void 0},r.prototype.cancel=function(){var t;return"started"===this.state?(null!=(t=this.request)&&t.cancel(),this.cancelRender(),this.state="canceled"):void 0},r.prototype.complete=function(){var t;return"started"===this.state?(this.recordTimingMetric("visitEnd"),this.state="completed","function"==typeof(t=this.adapter).visitCompleted&&t.visitCompleted(this),this.controller.visitCompleted(this)):void 0},r.prototype.fail=function(){var t;return"started"===this.state?(this.state="failed","function"==typeof(t=this.adapter).visitFailed?t.visitFailed(this):void 0):void 0},r.prototype.changeHistory=function(){var t,e;return this.historyChanged?void 0:(t=this.location.isEqualTo(this.referrer)?"replace":this.action,e=n(t),this.controller[e](this.location,this.restorationIdentifier),this.historyChanged=!0)},r.prototype.issueRequest=function(){return this.shouldIssueRequest()&&null==this.request?(this.progress=0,this.request=new e.HttpRequest(this,this.location,this.referrer),this.request.send()):void 0},r.prototype.getCachedSnapshot=function(){var t;return!(t=this.controller.getCachedSnapshotForLocation(this.location))||null!=this.location.anchor&&!t.hasAnchor(this.location.anchor)||"restore"!==this.action&&!t.isPreviewable()?void 0:t},r.prototype.hasCachedSnapshot=function(){return null!=this.getCachedSnapshot()},r.prototype.loadCachedSnapshot=function(){var t,e;return(e=this.getCachedSnapshot())?(t=this.shouldIssueRequest(),this.render(function(){var r;return this.cacheSnapshot(),this.controller.render({snapshot:e,isPreview:t},this.performScroll),"function"==typeof(r=this.adapter).visitRendered&&r.visitRendered(this),t?void 0:this.complete()})):void 0},r.prototype.loadResponse=function(){return null!=this.response?this.render(function(){var t,e;return this.cacheSnapshot(),this.request.failed?(this.controller.render({error:this.response},this.performScroll),"function"==typeof(t=this.adapter).visitRendered&&t.visitRendered(this),this.fail()):(this.controller.render({snapshot:this.response},this.performScroll),"function"==typeof(e=this.adapter).visitRendered&&e.visitRendered(this),this.complete())}):void 0},r.prototype.followRedirect=function(){return this.redirectedToLocation&&!this.followedRedirect?(this.location=this.redirectedToLocation,this.controller.replaceHistoryWithLocationAndRestorationIdentifier(this.redirectedToLocation,this.restorationIdentifier),this.followedRedirect=!0):void 0},r.prototype.requestStarted=function(){var t;return this.recordTimingMetric("requestStart"),"function"==typeof(t=this.adapter).visitRequestStarted?t.visitRequestStarted(this):void 0},r.prototype.requestProgressed=function(t){var e;return this.progress=t,"function"==typeof(e=this.adapter).visitRequestProgressed?e.visitRequestProgressed(this):void 0},r.prototype.requestCompletedWithResponse=function(t,r){return this.response=t,null!=r&&(this.redirectedToLocation=e.Location.wrap(r)),this.adapter.visitRequestCompleted(this)},r.prototype.requestFailedWithStatusCode=function(t,e){return this.response=e,this.adapter.visitRequestFailedWithStatusCode(this,t)},r.prototype.requestFinished=function(){var t;return this.recordTimingMetric("requestEnd"),"function"==typeof(t=this.adapter).visitRequestFinished?t.visitRequestFinished(this):void 0},r.prototype.performScroll=function(){return this.scrolled?void 0:("restore"===this.action?this.scrollToRestoredPosition()||this.scrollToTop():this.scrollToAnchor()||this.scrollToTop(),this.scrolled=!0)},r.prototype.scrollToRestoredPosition=function(){var t,e;return t=null!=(e=this.restorationData)?e.scrollPosition:void 0,null!=t?(this.controller.scrollToPosition(t),!0):void 0},r.prototype.scrollToAnchor=function(){return null!=this.location.anchor?(this.controller.scrollToAnchor(this.location.anchor),!0):void 0},r.prototype.scrollToTop=function(){return this.controller.scrollToPosition({x:0,y:0})},r.prototype.recordTimingMetric=function(t){var e;return null!=(e=this.timingMetrics)[t]?e[t]:e[t]=(new Date).getTime()},r.prototype.getTimingMetrics=function(){return e.copyObject(this.timingMetrics)},n=function(t){switch(t){case"replace":return"replaceHistoryWithLocationAndRestorationIdentifier";case"advance":case"restore":return"pushHistoryWithLocationAndRestorationIdentifier"}},r.prototype.shouldIssueRequest=function(){return"restore"===this.action?!this.hasCachedSnapshot():!0},r.prototype.cacheSnapshot=function(){return this.snapshotCached?void 0:(this.controller.cacheSnapshot(),this.snapshotCached=!0)},r.prototype.render=function(t){return this.cancelRender(),this.frame=requestAnimationFrame(function(e){return function(){return e.frame=null,t.call(e)}}(this))},r.prototype.cancelRender=function(){return this.frame?cancelAnimationFrame(this.frame):void 0},r}()}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.Controller=function(){function r(){this.clickBubbled=t(this.clickBubbled,this),this.clickCaptured=t(this.clickCaptured,this),this.pageLoaded=t(this.pageLoaded,this),this.history=new e.History(this),this.view=new e.View(this),this.scrollManager=new e.ScrollManager(this),this.restorationData={},this.clearCache(),this.setProgressBarDelay(500)}return r.prototype.start=function(){return e.supported&&!this.started?(addEventListener("click",this.clickCaptured,!0),addEventListener("DOMContentLoaded",this.pageLoaded,!1),this.scrollManager.start(),this.startHistory(),this.started=!0,this.enabled=!0):void 0},r.prototype.disable=function(){return this.enabled=!1},r.prototype.stop=function(){return this.started?(removeEventListener("click",this.clickCaptured,!0),removeEventListener("DOMContentLoaded",this.pageLoaded,!1),this.scrollManager.stop(),this.stopHistory(),this.started=!1):void 0},r.prototype.clearCache=function(){return this.cache=new e.SnapshotCache(10)},r.prototype.visit=function(t,r){var n,o;return null==r&&(r={}),t=e.Location.wrap(t),this.applicationAllowsVisitingLocation(t)?this.locationIsVisitable(t)?(n=null!=(o=r.action)?o:"advance",this.adapter.visitProposedToLocationWithAction(t,n)):window.location=t:void 0},r.prototype.startVisitToLocationWithAction=function(t,r,n){var o;return e.supported?(o=this.getRestorationDataForIdentifier(n),this.startVisit(t,r,{restorationData:o})):window.location=t},r.prototype.setProgressBarDelay=function(t){return this.progressBarDelay=t},r.prototype.startHistory=function(){return this.location=e.Location.wrap(window.location),this.restorationIdentifier=e.uuid(),this.history.start(),this.history.replace(this.location,this.restorationIdentifier)},r.prototype.stopHistory=function(){return this.history.stop()},r.prototype.pushHistoryWithLocationAndRestorationIdentifier=function(t,r){return this.restorationIdentifier=r,this.location=e.Location.wrap(t),this.history.push(this.location,this.restorationIdentifier)},r.prototype.replaceHistoryWithLocationAndRestorationIdentifier=function(t,r){return this.restorationIdentifier=r,this.location=e.Location.wrap(t),this.history.replace(this.location,this.restorationIdentifier)},r.prototype.historyPoppedToLocationWithRestorationIdentifier=function(t,r){var n;return this.restorationIdentifier=r,this.enabled?(n=this.getRestorationDataForIdentifier(this.restorationIdentifier),this.startVisit(t,"restore",{restorationIdentifier:this.restorationIdentifier,restorationData:n,historyChanged:!0}),this.location=e.Location.wrap(t)):this.adapter.pageInvalidated()},r.prototype.getCachedSnapshotForLocation=function(t){var e;return null!=(e=this.cache.get(t))?e.clone():void 0},r.prototype.shouldCacheSnapshot=function(){return this.view.getSnapshot().isCacheable();},r.prototype.cacheSnapshot=function(){var t,r;return this.shouldCacheSnapshot()?(this.notifyApplicationBeforeCachingSnapshot(),r=this.view.getSnapshot(),t=this.lastRenderedLocation,e.defer(function(e){return function(){return e.cache.put(t,r.clone())}}(this))):void 0},r.prototype.scrollToAnchor=function(t){var e;return(e=this.view.getElementForAnchor(t))?this.scrollToElement(e):this.scrollToPosition({x:0,y:0})},r.prototype.scrollToElement=function(t){return this.scrollManager.scrollToElement(t)},r.prototype.scrollToPosition=function(t){return this.scrollManager.scrollToPosition(t)},r.prototype.scrollPositionChanged=function(t){var e;return e=this.getCurrentRestorationData(),e.scrollPosition=t},r.prototype.render=function(t,e){return this.view.render(t,e)},r.prototype.viewInvalidated=function(){return this.adapter.pageInvalidated()},r.prototype.viewWillRender=function(t){return this.notifyApplicationBeforeRender(t)},r.prototype.viewRendered=function(){return this.lastRenderedLocation=this.currentVisit.location,this.notifyApplicationAfterRender()},r.prototype.pageLoaded=function(){return this.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()},r.prototype.clickCaptured=function(){return removeEventListener("click",this.clickBubbled,!1),addEventListener("click",this.clickBubbled,!1)},r.prototype.clickBubbled=function(t){var e,r,n;return this.enabled&&this.clickEventIsSignificant(t)&&(r=this.getVisitableLinkForNode(t.target))&&(n=this.getVisitableLocationForLink(r))&&this.applicationAllowsFollowingLinkToLocation(r,n)?(t.preventDefault(),e=this.getActionForLink(r),this.visit(n,{action:e})):void 0},r.prototype.applicationAllowsFollowingLinkToLocation=function(t,e){var r;return r=this.notifyApplicationAfterClickingLinkToLocation(t,e),!r.defaultPrevented},r.prototype.applicationAllowsVisitingLocation=function(t){var e;return e=this.notifyApplicationBeforeVisitingLocation(t),!e.defaultPrevented},r.prototype.notifyApplicationAfterClickingLinkToLocation=function(t,r){return e.dispatch("turbolinks:click",{target:t,data:{url:r.absoluteURL},cancelable:!0})},r.prototype.notifyApplicationBeforeVisitingLocation=function(t){return e.dispatch("turbolinks:before-visit",{data:{url:t.absoluteURL},cancelable:!0})},r.prototype.notifyApplicationAfterVisitingLocation=function(t){return e.dispatch("turbolinks:visit",{data:{url:t.absoluteURL}})},r.prototype.notifyApplicationBeforeCachingSnapshot=function(){return e.dispatch("turbolinks:before-cache")},r.prototype.notifyApplicationBeforeRender=function(t){return e.dispatch("turbolinks:before-render",{data:{newBody:t}})},r.prototype.notifyApplicationAfterRender=function(){return e.dispatch("turbolinks:render")},r.prototype.notifyApplicationAfterPageLoad=function(t){return null==t&&(t={}),e.dispatch("turbolinks:load",{data:{url:this.location.absoluteURL,timing:t}})},r.prototype.startVisit=function(t,e,r){var n;return null!=(n=this.currentVisit)&&n.cancel(),this.currentVisit=this.createVisit(t,e,r),this.currentVisit.start(),this.notifyApplicationAfterVisitingLocation(t)},r.prototype.createVisit=function(t,r,n){var o,i,s,a,u;return i=null!=n?n:{},a=i.restorationIdentifier,s=i.restorationData,o=i.historyChanged,u=new e.Visit(this,t,r),u.restorationIdentifier=null!=a?a:e.uuid(),u.restorationData=e.copyObject(s),u.historyChanged=o,u.referrer=this.location,u},r.prototype.visitCompleted=function(t){return this.notifyApplicationAfterPageLoad(t.getTimingMetrics())},r.prototype.clickEventIsSignificant=function(t){return!(t.defaultPrevented||t.target.isContentEditable||t.which>1||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)},r.prototype.getVisitableLinkForNode=function(t){return this.nodeIsVisitable(t)?e.closest(t,"a[href]:not([target]):not([download])"):void 0},r.prototype.getVisitableLocationForLink=function(t){var r;return r=new e.Location(t.getAttribute("href")),this.locationIsVisitable(r)?r:void 0},r.prototype.getActionForLink=function(t){var e;return null!=(e=t.getAttribute("data-turbolinks-action"))?e:"advance"},r.prototype.nodeIsVisitable=function(t){var r;return(r=e.closest(t,"[data-turbolinks]"))?"false"!==r.getAttribute("data-turbolinks"):!0},r.prototype.locationIsVisitable=function(t){return t.isPrefixedBy(this.view.getRootLocation())&&t.isHTML()},r.prototype.getCurrentRestorationData=function(){return this.getRestorationDataForIdentifier(this.restorationIdentifier)},r.prototype.getRestorationDataForIdentifier=function(t){var e;return null!=(e=this.restorationData)[t]?e[t]:e[t]={}},r}()}.call(this),function(){!function(){var t,e;if((t=e=document.currentScript)&&!e.hasAttribute("data-turbolinks-suppress-warning"))for(;t=t.parentNode;)if(t===document.body)return console.warn("You are loading Turbolinks from a - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - -
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

two new equations

-

Linear coefficients equations

-

$$(a_{1}x+b_{1}y+c_{1})dx+(a_{2}x+b_{2}y+c_{2})dy=0 \qquad a_{1},b_{1},c_{1},a_{2},b_{2},c_{2}\in \mathbb{R}$$ -imagine $c_{1},c_{2}=0$ It becomes a homogenous equation!

-

so can we make them 0? -let $x=u+k$ -$y=v+l$ -where $k,l$ are constants -$(a_{1}u+b_{1}vK+\underbrace{\cancel{ c_{1}+a_{1}k+b_{1}l } }_{ 0 })du+(a_{2}u+b_{2}v+\underbrace{ \cancel{ c_{2}+a_{2}k+b_{2}l } }_{ 0 })dv=0$ -$a_{1}k+b_{1}l=-c_1$ -$a_{2}k+b_{2}l=-c_{2}$ -if $\det(a_{1},b_{1},a_{2},b_{2})\ne 0$ turn into homogenous -if $\det(\dots)=0 \Rightarrow$ equation of type $\frac{ dy }{ dx }=G(ax+by)$ (also homogenous)

-

Example

-

ex de_LC_type1 -$$(-3x+y+6)dx+(x+y+2)dy=0$$ -let $x=u+k$ -$y=v+l$ -$(-3u+v+6-3k+l)du+(u+v+2+k+l)dv=0$ -we want $6-3k+l$ and $2+k+l$ to equal 0 -so: -$-3k+l=-6$ -$k+l=-2$ -$det(-3,1,1,1)=-4$ //he can call it a dinosaur if he wanted to :D -solving gives us: -$k=1,l=-3$ -so $x=u+1 \quad y=v-3$ -$(-3u+v)du+(u+v)dv=0$ //Beutiful1! it’s homogenous now -$\frac{ dv }{ du }=\frac{{3u-v}}{u+v}=\frac{{3-\frac{v}{u}}}{1+\frac{v}{u}}$ -$\frac{v}{u}=w \quad v=uw \quad \frac{ dv }{ du }=w+u\frac{ dw }{ du }$ -$w+u\frac{ dw }{ du }=\frac{{3-w}}{1+w}$ This is the equation we have to solve -$u\frac{ dw }{ du }=\frac{{3-2w-w^2}}{1+w}$ -$-\frac{{w+1}}{w^2+2w-3}dw=\frac{du}{u}$ -$\int-\frac{{w+1}}{w^2+2w-3}dw=\int\frac{du}{u}$ -let $z=w^2+2w-3$ -$dz=2(w+1)dw$ -$\frac{1}{2}\int \frac{dz}{z}=\ln\mid u\mid^{-1}$ -$\ln\mid z\mid^{1/2}-\ln\mid u\mid^{-1}=C$ -$\ln(\mid z\mid^{1/2}\mid u\mid)=C$ -$\mid z\mid^{1/2}u=e^C$ -$\mid z\mid u^2=e^{2C}$ -$zu^2=A$ -$\left( \left( \frac{v}{u} \right)^2+\frac{2v}{u}-3 \right)u^2=A$ -remember $u=x-1 \quad v=y+3$ -$$\left( \left( \frac{{y+3}}{x-1} \right)^2+\frac{2(y+3)}{x-1}-3 \right)(x-1)^2=A$$ -you can “simplify” it to: $(y+3)^2+2(y+3)(x-1)-3(x-1)^2=A$

-
-

Exact equations

-

two variable equations -$dF=\frac{ \partial F }{ \partial x }dx+\frac{ \partial F }{ \partial y }dy=0$ suppose it equals to zero (as shown in the equation) you get a horizontal plane (a constant) -so $F(x,y)=C$ -the solution to these exact equations is given by $F()$ but how do we get F from the derivatives? -Equation of the form: $$M(x,y)dx=N(x,y)dy=0$$ -is called exact if $M(x,y)=\frac{ \partial F }{ \partial x }$ and $N(x,y)=\frac{ \partial F }{ \partial y }$ for some function $F(x,y)$ -then differentiating we get: -$\frac{ \partial M }{ \partial y }=\frac{ \partial^{2} F }{ \partial y\partial x }$ -$\frac{ \partial N }{ \partial x }=\frac{ \partial^{2} F }{ \partial x\partial y }$ Order of going in x then y vs y then x doesn’t matter as it lands you on the same point (idk how this is related yet) -Exact equation$\Rightarrow \frac{ \partial M }{ \partial y }=\frac{ \partial N }{ \partial x }$ if it’s continuous (?) -also: Exact equation$\Leftarrow \frac{ \partial M }{ \partial y }=\frac{ \partial N }{ \partial x }$ -Test for exactness: -exact $\iff \frac{ \partial M }{ \partial y }=\frac{ \partial N }{ \partial x }$ (this can be proved, but it wasnt proved in class) -end of lecture 4

- - - - - - - -

Referenced in

- - - - - -
-
- - - - - diff --git a/public/linear-de-lec-23.html b/public/linear-de-lec-23.html deleted file mode 100644 index 8650a9c..0000000 --- a/public/linear-de-lec-23.html +++ /dev/null @@ -1,553 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - Linear DE (lec 2&3) - My New Hugo Site - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - -
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

The world is non-linear, many solutions, many paths to the solution. It’s why linear equations play so nice. We just look down it’s path and we will know that it’s a straight line for eternity.

-

Linear equation:

-

$$a(x)\frac{ dy }{ dx }+b(x)y=f(x)$$ (I’m calling this de_L_type1) -if we assume $b(x)=a'(x)$ it kinda starts to look like a product rule -$a(x)y'+a'(x)y=f(x)=(ay)'$ -$ay=\int f(x) , dx$ yay! We can find the solutions to y.

-

we can rewrite the linear equation in what’s called standard form: -$$\frac{ dy }{ dx }+P(x)y=Q(x)$$ (I’m calling this de_L_type2) -we will define a function $\mu(x)$ called the integration factor, also expressed as $I(x)$ -Multiply both sides by $\mu(x)$ -$\mu(x) \frac{ dy }{ dx }+\underbrace{ \mu(x)P(x) }_{ \mu'(x) }y=\mu(x)Q(x)$ -Like shown above we imagine if $\mu(x) P(x)=\mu'(x)$ as it starts to look like the product rule again. -$(\mu y)'=\mu(x)Q(x)$ -This is nice as now we can integrate both sides as usual and get a solution for y. -$y=\frac{1}{\mu(x)}\int \mu(x)Q(x) , dx$ remember -But what is $\mu(x)$? How do we find it? -In order for $\mu(x) P(x)=\mu'(x)$ to be true, $\frac{ d\mu }{ dx }=\mu(x)P(x)\Rightarrow \frac{ d\mu }{ \mu }=P(x)dx\Rightarrow\int \frac{d\mu}{\mu}=\int P(x) , dx\Rightarrow\ \ln\mid \mu\mid=\int P(x) , dx$

-
-

I’m not sure why the professor allows the absolute value to be dropped in the following step, I think he said that he argues all solutions can be found even if we focus only where $\mu$ is +, idk.

-
-

finally we get that $\mu(x)=I(x)=e^{\int P(x) , dx}\quad \Box$ remember

-
-

end of lecture 2 -start of lecture 3

-

Examples of linear equations:

-

ex -de_L_type2 Find the general solution to the equation:

-

$$(1+\sin(x))y'+2\cos(x)y=\tan(x)$$

-

let $a(x)=1+sin(x)\qquad b(x)=2\cos(x)$ -we can see that $b(x)\ne a'(x)$ :( so we cant use -de_L_type1 -let’s rearrange it into standard form: -$y'+\frac{{2\cos(x)}}{1+\sin(x)}=\frac{\tan(x)}{1+\sin(x)}$ -$P(x):=\frac{2\cos(x)}{1+\sin(x)} \qquad Q(x)=\frac{\tan(x)}{1+\sin(x)}$ -then $I(x)=e^{\int {2\cos(x)}/(1+\sin(x)), dx}$ -let $u=1+\sin(x) \qquad du=\cos(x)dx$ -$I(x)=e^{\int \frac{2\cos(x)}{u} , \frac{du}{\cos(x)}}$ -$I(x)=e^{2\ln\mid u\mid}$ -$I(x)=\mid u\mid^2$ -$I(x)=\mid1+\sin(x)\mid^2$ -$I(x)=(1+\sin(x))^2$ -$y=\frac{1}{I(x)}\int I(x)Q(x) , dx$ -$y=\frac{1}{(1+\sin(x))^2}\int (\frac{(1+\sin(x))^2\tan(x)}{1+\sin(x)} , dx$ -$y=\frac{1}{(1+\sin(x))^2}\int \tan(x)+\frac{\sin^2(x)}{\cos(x)} , dx$ -$y=\frac{1}{(1+\sin(x))^2}(\ln\mid sec(x)\mid+\int \frac{\sin^2(x)}{\cos(x)} , dx)$

-
-

using u substitution doesnt work for the second integral because I got $\int\frac{\sin(x)}{u}du \qquad u=\cos(x)$ -could try using $\sin^2(x)=\frac{{1-\cos(2x)}}{2}$ but looks hard with the 2x term, -let’s try using $\sin^2(x)=1-\cos^2(x)$ instead. (also because I also remember this is what we used in class)

-
-

$y=\frac{1}{(1+\sin(x))^2}(\ln\mid sec(x)\mid+\int \frac{1-\cos^2(x)}{\cos(x)} , dx)$

-

$y=\frac{1}{(1+\sin(x))^2}(\ln\mid sec(x)\mid+\ln\mid sec(x)+\tan(x)\mid+\int -\cos(x) , dx)$ -Albeit a bit ugly, we have found the general solution to the DE: -$$y=\frac{1}{(1+\sin(x))^2}(\ln\mid sec(x)\mid+\ln\mid sec(x)+\tan(x)\mid-\sin(x)+C)$$

-
-

ex -IVP -de_L_type2

-

$$y'+\tan(x)y=\cos^2(x) \qquad y\left( \frac{\pi}{4} \right)=\frac{1}{2}$$

-

Looks like a linear equation with an initial value. -$P(x)=\tan(x) \qquad Q(x)=\cos^2(x) \qquad I(x)=e^{\int \tan(x) , dx}$ -$I(x)=e^{\ln\mid sec(x)\mid}$ -$I(x)=\mid sec(x)\mid$ -$I(x)=sec(x)$

-
-

The prof simply drops the absolute value. I don’t understand why. Sigma asf tbh. I think it’s because he said linear DE are nice because their solutions are unique with an IVP, non linear equations are not necessarily unique. So if we find one solution we know that we found the only solution possible.

-
-

$y=\cos(x)\int sec(x)\cos^2(x) , dx$ -$y=\cos(x)\int \cos(x) , dx$ -$y=cos(x)(sin(x)+C)$ -Now we issue the initial value: -$\frac{1}{2}=\cos\left( \frac{\pi}{4} \right)\sin\left( \frac{\pi}{4}+C) \right)$ -$\frac{\frac{1}{2}}{\frac{1}{\sqrt{ 2 }}}=\frac{\sqrt{ 2 }}{2}=\frac{1}{\sqrt{ 2 }}=\sin\left( \frac{\pi}{4} \right)$ -$C=0$ -By plugging in C=0 in the general solution we get the solution to the IVP, as stated earlier, there can only be one solution to a linear IVP DE:

-

$$y=\cos(x)\sin(x)$$

-
- - - - - - - -

Referenced in

- - - - - -
-
- - - - - diff --git a/public/manifest.json b/public/manifest.json deleted file mode 100644 index 286c5fb..0000000 --- a/public/manifest.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "display": "standalone" -} \ No newline at end of file diff --git a/public/seperable-de-lec-1.html b/public/seperable-de-lec-1.html deleted file mode 100644 index 102eb5a..0000000 --- a/public/seperable-de-lec-1.html +++ /dev/null @@ -1,519 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - Seperable DE (lec 1) - My New Hugo Site - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - -
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

#start of lecture 1

-

Intro (Newton example):

-

Newton example where we find the equations to describe a falling object using differential equations (DE’s) -We know $F=ma$ -$F=m\frac{dv}{dt}=mg-kv$ we account for air resistance here. We can approximate the force of air resistance is proportional to the speed times a constant. -We can rearrange and solve it as it is a separable DE: -$\frac{dv}{mg-kv}=\frac{dt}{m}$ -integrating both sides: -$\int \frac{dv}{mg-kv}=\frac{t}{m}+C$ -let $u=mg-kv \quad du=-kdv$ -$\int \frac{dv}{mg-kv}=\int \frac{du}{-k*u}=\frac{1}{-k}\ln\mid mg-kv\mid=\frac{t}{m}+C$ -Very cool, but I want the velocity as a function of time, isolate v -$\ln\mid mg-kv\mid=-\frac{kt}{m}+C$ -$\mid mg-kv\mid=e^{\frac{-kt}{m}+C}=e^{\frac{-kt}{m}}e^C$ -$e^C$ is a + constant, the absolute value will multiply the inside expression by -1 when the inside is negative, so we can replace the $e^C$ constant with an arbitrary constant A that can be + or - -$mg-kv=Ae^{\frac{-kt}{m}}$ -so, the general solution is $v(t)=\frac{1}{k}(mg-Ae^{\frac{-kt}{m}})$

-

Separable DE:

-
$\frac{dy}{dx}=f(y)g(x) \rightarrow \frac{dy}{f(y)}=g(x)dx\quad where\quad f(y)\ne0$
-(I'm calling this <a class="hashtag" onclick="focusTag(this)">de_s_type1)</a>
-
-

ex: $\frac{dy}{dt}=\frac{1-t^2}{y^2}$ -$y^2dy=dt(1-t^2)$ -integrating both sides yields: -$\frac{y^3}{3}=t-\frac{t^3}{3}+C$ -$y=(3t-t^3+C)^\frac{1}{3}$

-

Initial value problem (IVP):

-
A Differential equation with provided initial conditions.
-
-

ex -IVP de_s_type1 -ex: $\frac{dy}{dx}=2x\cos^2(y), \quad y(0)=\frac{\pi}{4}$ -$\frac{dy}{\cos^2(y)}=2xdx$ -integrate both sides yields: -$\int \frac{dy}{\cos^2(y)}=\tan(y)+C=x^2$ -plug in $y(0)=\frac{\pi}{4}$ -$\tan\left( \frac{\pi}{4} \right)+C=0$ -$1+C=0$ -$C=-1$ -So, the answer is: $y=\arctan(x^2+1)$

-

end of Lecture 1

- - - - - - - -

Referenced in

- - - - - -
-
- - - - - diff --git a/public/sitemap.xml b/public/sitemap.xml deleted file mode 100644 index fa75762..0000000 --- a/public/sitemap.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - /lec-4.html - 0 - - - - / - 0 - - - - /bernoulli-de-lec-3.html - 0 - - - - /homogenous-de-lec-2.html - 0 - - - - /linear-de-lec-23.html - 0 - - - - /seperable-de-lec-1.html - 0 - - - - /things-to-remember.html - 0 - - - - /tags.html - - - diff --git a/public/tags.html b/public/tags.html deleted file mode 100644 index 40af189..0000000 --- a/public/tags.html +++ /dev/null @@ -1,405 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - My New Hugo Site - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - -
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - -
-

Tags

-
- - - - - - -
-
- - - - - diff --git a/public/tags/index.xml b/public/tags/index.xml deleted file mode 100644 index 9118717..0000000 --- a/public/tags/index.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - Tags on My New Hugo Site - /tags.html - Recent content in Tags on My New Hugo Site - Hugo -- gohugo.io - en-us - - diff --git a/public/things-to-remember.html b/public/things-to-remember.html deleted file mode 100644 index 93b756e..0000000 --- a/public/things-to-remember.html +++ /dev/null @@ -1,504 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - Things to remember - My New Hugo Site - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - -
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

This is an incomplete list. I’m trying to add to it as I go.

-

everything with the -remember tag as well as the representations of the various DE, they start with <a class=“hashtag” onclick=“focusTag(this)">de_

-

Also remember the following:

-

derivatives of trigs

-

$\frac{d}{dx}\tan(x)=sec^2(x)$ -$\frac{d}{dx}sec(x)=sec(x)\tan(x)$ -…

-

integrals of trigs

-

$\int \tan(x) , dx=\ln\mid \sec(x)\mid+C$ -$\int sec(x) , dx=\ln\mid sec(x)+\tan(x)\mid+C$ -…

-

integration by parts

-

LIATE log, inv trig, algebraic, trig, exp -set u to the first in the list above -$\int u(x)v'(x) , dx=uv-\int u'(x)v(x) , dx$

- - - - - - - -

Referenced in

- - - - - -
-
- - - - - diff --git a/resources/_gen/assets/scss/css/style.scss_f120a3f402b106f64b18d498afd3d82e.content b/resources/_gen/assets/scss/css/style.scss_f120a3f402b106f64b18d498afd3d82e.content new file mode 100644 index 0000000..e617b7a --- /dev/null +++ b/resources/_gen/assets/scss/css/style.scss_f120a3f402b106f64b18d498afd3d82e.content @@ -0,0 +1,458 @@ +@charset "UTF-8"; +input { + margin: 0; + padding: 0; + border: 0; + font: inherit; + color: inherit; + font-size: 100%; + vertical-align: baseline; } + +*:focus { + outline: none; } + +textarea, +input[type="search"], +input[type="text"], +input[type="button"], +input[type="submit"] { + -webkit-appearance: none; + border-radius: 0; } + +::selection { + background: var(--selected-text-background-color); } + +/** + Bear base styles + (Retrieved from official app, all credits belong to Bear Team) +*/ +html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font: inherit; + font-size: 100%; + vertical-align: baseline; } + +html { + line-height: 1; } + +ol, ul { + list-style: none; } + +table { + border-collapse: collapse; + border-spacing: 0; } + +caption, th, td { + text-align: left; + font-weight: normal; + vertical-align: middle; } + +q, blockquote { + quotes: none; } + +q:before, q:after, blockquote:before, blockquote:after { + content: ""; + content: none; } + +a img { + border: none; } + +article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { + display: block; } + +* { + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + box-sizing: border-box; } + +html { + font-size: 87.5%; + line-height: 1.57143em; } + +html { + font-size: 14px; + line-height: 1.6em; + -webkit-text-size-adjust: 100%; } + +body { + background: var(--background); + color: var(--text-base-color); + text-rendering: optimizeLegibility; + font-family: "AvenirNext-Regular"; } + +a { + color: var(--link-text-color); + text-decoration: none; } + +h1 { + font-family: "AvenirNext-Medium"; + color: var(--title-text-color); + font-size: 1.6em; + line-height: 1.3em; + margin-bottom: .78571em; } + +h2 { + font-family: "AvenirNext-Medium"; + color: var(--title-text-color); + font-size: 1.3em; + line-height: 1em; + margin-bottom: .62857em; } + +h3 { + font-family: "AvenirNext-Medium"; + color: var(--title-text-color); + font-size: 1.15em; + line-height: 1em; + margin-bottom: .47143em; } + +p { + margin-bottom: 1.57143em; + hyphens: auto; } + +hr { + height: 1px; + border: 0; + background-color: #dedede; + margin: -1px auto 1.57143em auto; } + +ul, ol { + margin-bottom: .31429em; } + +ul ul, ul ol, ol ul, ol ol { + margin-bottom: 0px; } + +ol { + counter-reset: ol_counter; } + +ol li:before { + content: counter(ol_counter) "."; + counter-increment: ol_counter; + color: var(--accent-text-color); + text-align: right; + display: inline-block; + min-width: 1em; + margin-right: 0.5em; } + +b, strong { + font-family: "AvenirNext-Bold"; } + +i, em { + font-family: "AvenirNext-Italic"; } + +code { + font-family: "Menlo-Regular"; } + +.text-overflow-ellipsis { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } + +.sf_code_string, .sf_code_selector, .sf_code_attr-name, .sf_code_char, .sf_code_builtin, .sf_code_inserted { + color: #D33905; } + +.sf_code_comment, .sf_code_prolog, .sf_code_doctype, .sf_code_cdata { + color: #838383; } + +.sf_code_number, .sf_code_boolean { + color: #0E73A2; } + +.sf_code_keyword, .sf_code_atrule, .sf_code_rule, .sf_code_attr-value, .sf_code_function, .sf_code_class-name, .sf_code_class, .sf_code_regex, .sf_code_important, .sf_code_variable, .sf_code_interpolation { + color: #0E73A2; } + +.sf_code_property, .sf_code_tag, .sf_code_constant, .sf_code_symbol, .sf_code_deleted { + color: #1B00CE; } + +.sf_code_macro, .sf_code_entity, .sf_code_operator, .sf_code_url { + color: #920448; } + +.note-wrapper { + max-width: 75em; + margin: 0px auto; + padding: 1.57143em 3.14286em; } + +.note-wrapper.spotlight-preview { + overflow-x: hidden; } + +u { + text-decoration: none; + background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, var(--accent-text-color) 50%); + background-repeat: repeat-x; + background-size: 2px 2px; + background-position: 0 1.05em; } + +s { + color: #878787; } + +p { + margin-bottom: 0.1em; } + +hr { + margin-bottom: 0.7em; + margin-top: 0.7em; } + +ul li { + text-indent: -0.35em; } + +ul li:before { + content: "•"; + color: var(--accent-text-color); + display: inline-block; + margin-right: 0.3em; } + +ul ul { + margin-left: 1.25714em; } + +ol li { + text-indent: -1.45em; } + +ol ol { + margin-left: 1.25714em; } + +blockquote { + display: block; + margin-left: -1em; + padding-left: 0.8em; + border-left: 0.2em solid var(--accent-text-color); } + +.todo-list ul { + margin-left: 1.88571em; } + +.todo-list li { + text-indent: -1.75em; } + +.todo-list li:before { + content: ""; + display: static; + margin-right: 0px; } + +.todo-checkbox { + text-indent: -1.7em; } + +.todo-checkbox svg { + margin-right: 0.3em; + position: relative; + top: 0.2em; } + +.todo-checkbox svg #check { + display: none; } + +.todo-checkbox.todo-checked #check { + display: inline; } + +.todo-checkbox.todo-checked + .todo-text { + text-decoration: line-through; + color: #878787; } + +.code-inline { + display: inline; + background: white; + border: solid 1px #dedede; + padding: 0.2em 0.5em; + font-size: 0.9em; } + +.code-multiline { + display: block; + background: white; + border: solid 1px #dedede; + padding: 0.7em 1em; + font-size: 0.9em; + overflow-x: auto; } + +.hashtag { + display: inline-block; + color: var(--hashtag-text-color); + background: var(--hashtag-background-color); + padding: 0.0em 0.5em; + border-radius: 1em; + text-indent: 0; } + +.hashtag a { + color: var(--hashtag-text-color); } + +.address a { + color: #545454; + background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, #0da35e 50%); + background-repeat: repeat-x; + background-size: 2px 2px; + background-position: 0 1.05em; } + +.address svg { + position: relative; + top: 0.2em; + display: inline-block; + margin-right: 0.2em; } + +.color-preview { + display: inline-block; + width: 1em; + height: 1em; + border: solid 1px rgba(0, 0, 0, 0.3); + border-radius: 50%; + margin-right: 0.1em; + position: relative; + top: 0.2em; + white-space: nowrap; } + +.color-code { + margin-right: 0.2em; + font-family: "Menlo-Regular"; + font-size: 0.9em; } + +.color-hash { + opacity: 0.4; } + +.ordered-list-number { + color: var(--accent-text-color); + text-align: right; + display: inline-block; + min-width: 1em; } + +.arrow svg { + position: relative; + top: 0.08em; + display: inline-block; + margin-right: 0.15em; + margin-left: 0.15em; } + +.arrow svg #rod { + stroke: #545454; } + +.arrow svg #point { + fill: #545454; } + +mark { + color: inherit; + display: inline; + padding: 0.2em 0.5em; + background-color: var(--highlighter-marker-color); } + +img { + max-width: 100%; + height: auto; } + +/** + Custom styles +*/ +li > p { + display: inline-block; + margin-left: 16px; } + +hr { + background: var(--divider-color); + margin-top: 2.6em; + margin-bottom: 12px; } + +h4 { + font-family: "AvenirNext-Medium"; + color: var(--title-text-color); + font-size: 1.05em; + margin-bottom: .47143em; } + +* + p, +* + ul, +* + ol, +* + blockquote { + /*margin-top: 1.6em;*/ } + +svg + ul, +svg + ol { + margin-top: 0; } + +* + h2, +* + h3, +* + h4 { + margin-top: 2.8em; } + +h1, h2, h3, h4, h5, h6 { + position: relative; } + +h1:before, +h2:before, +h3:before, +h4:before, +h5:before, +h6:before { + position: absolute; + left: -2.2em; + color: var(--heading-indicator); + font-size: 12px; } + +h1:before { + content: "H1"; } + +h2:before { + content: "H2"; } + +h3:before { + content: "H3"; } + +h4:before { + content: "H4"; } + +h5:before { + content: "H5"; } + +h6:before { + content: "H6"; } + +.note-wrapper { + margin-top: 2em; } + +.highlighted { + background: var(--selected-text-background-color); } + +.hashtag { + cursor: pointer; + margin-bottom: 4px; + position: relative; + margin-right: 2px; } + +.hashtag:before { + content: "#"; } + +* + table { + margin-top: 12px; } + +table { + border-radius: 4px; + border: 1px solid var(--separator-color); + border-collapse: inherit; + overflow: hidden; + width: 100%; } + +table th { + font-family: "Avenir-Medium", "AvenirLTStd-Medium"; } + +table td, +table th { + padding: 0.3em 0.8em; } + +table tr:nth-child(odd) { + background-color: var(--selected-text-inactive-background-color); } + +pre, +p code, +li code { + border: 1px solid var(--separator-color); + padding: 10px; + font-size: 12px; + background: white; + overflow: hidden; } + +li code, +p code { + padding: 2px; } + +li img { + width: 122px; } + +.thumbnail { + width: 122px; + height: 76px; + border: 1px solid var(--separator-color); + object-fit: cover; } + +.turbolinks-progress-bar { + visibility: hidden; } diff --git a/resources/_gen/assets/scss/css/style.scss_f120a3f402b106f64b18d498afd3d82e.json b/resources/_gen/assets/scss/css/style.scss_f120a3f402b106f64b18d498afd3d82e.json new file mode 100644 index 0000000..28c014b --- /dev/null +++ b/resources/_gen/assets/scss/css/style.scss_f120a3f402b106f64b18d498afd3d82e.json @@ -0,0 +1 @@ +{"Target":"css/style.css","MediaType":"text/css","Data":{}} \ No newline at end of file diff --git a/static/gitea-logo.svg b/static/gitea-logo.svg new file mode 100644 index 0000000..afeeacb --- /dev/null +++ b/static/gitea-logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/zettels/layouts/_default/list.html b/themes/zettels/layouts/_default/list.html index 5c78241..c8f7c15 100644 --- a/themes/zettels/layouts/_default/list.html +++ b/themes/zettels/layouts/_default/list.html @@ -2,7 +2,4 @@

Back to Sasserisop homepage

{{ .Title }}

{{ partial "content.html" . }} - - - {{ end }} diff --git a/themes/zettels/layouts/index.html b/themes/zettels/layouts/index.html index b0a3cbc..8028a05 100644 --- a/themes/zettels/layouts/index.html +++ b/themes/zettels/layouts/index.html @@ -1,4 +1,6 @@ {{ define "main" }}

Back to Sasserisop homepage

{{ partial "content.html" . }} +

Check out the source in this Gitea repository

+ {{ end }}