﻿<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://v.michm.ru/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://v.michm.ru/index.php?action=history&amp;feed=atom&amp;title=Wiki_%D0%A6%D0%B0%D1%80%D1%91%D0%B2</id>
		<title>Wiki Царёв - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://v.michm.ru/index.php?action=history&amp;feed=atom&amp;title=Wiki_%D0%A6%D0%B0%D1%80%D1%91%D0%B2"/>
		<link rel="alternate" type="text/html" href="http://v.michm.ru/index.php?title=Wiki_%D0%A6%D0%B0%D1%80%D1%91%D0%B2&amp;action=history"/>
		<updated>2026-05-23T20:24:10Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.19.23</generator>

	<entry>
		<id>http://v.michm.ru/index.php?title=Wiki_%D0%A6%D0%B0%D1%80%D1%91%D0%B2&amp;diff=48934&amp;oldid=prev</id>
		<title>Царёв Михаил: Новая страница: «Файл:TsarWiki.png = Математические формулы =  === Однородное линейное ду в частных производных…»</title>
		<link rel="alternate" type="text/html" href="http://v.michm.ru/index.php?title=Wiki_%D0%A6%D0%B0%D1%80%D1%91%D0%B2&amp;diff=48934&amp;oldid=prev"/>
				<updated>2024-10-28T11:52:31Z</updated>
		
		<summary type="html">&lt;p&gt;Новая страница: «&lt;a href=&quot;/index.php/%D0%A4%D0%B0%D0%B9%D0%BB:TsarWiki.png&quot; title=&quot;Файл:TsarWiki.png&quot;&gt;Файл:TsarWiki.png&lt;/a&gt; = Математические формулы =  === Однородное линейное ду в частных производных…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Файл:TsarWiki.png]]&lt;br /&gt;
= Математические формулы =&lt;br /&gt;
&lt;br /&gt;
=== Однородное линейное ду в частных производных 1-го порядка ===&lt;br /&gt;
: &amp;lt;math&amp;gt; \frac{\partial u}{\partial t} + t\frac{\partial u}{\partial x} = 0. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mathematically, to ensure that the spacing after evaluating &amp;lt;math&amp;gt;f(x_4)&amp;lt;/math&amp;gt; is proportional to the spacing prior to that evaluation, if &amp;lt;math&amp;gt;f(x_4)&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;f_{4a}&amp;lt;/math&amp;gt; and our new triplet of points is &amp;lt;math&amp;gt;x_1&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;x_2&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;x_4&amp;lt;/math&amp;gt;, then we want&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\frac{c}{a} = \frac{a}{b}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, if &amp;lt;math&amp;gt;f(x_4)&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;f_{4b}&amp;lt;/math&amp;gt; and our new triplet of points is &amp;lt;math&amp;gt;x_2&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;x_4&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;x_3&amp;lt;/math&amp;gt;, then we want&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\frac{c}{b - c} = \frac{a}{b}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Eliminating ''c'' from these two simultaneous equations yields&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\left(\frac{b}{a}\right)^2 - \frac{b}{a} = 1,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\frac{b}{a} = \varphi,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where φ is the [[golden ratio]]:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\varphi = \frac{1 + \sqrt{5}}{2} = 1.618033988\ldots&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The appearance of the golden ratio in the proportional spacing of the evaluation points is how this search [[algorithm]] gets its name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Химическая формула =&lt;br /&gt;
Получение [[метан]]а:&lt;br /&gt;
: &amp;lt;chem&amp;gt;2 NaOH + CH3COOH -&amp;gt; Na2CO3 + H2O + CH4 ^&amp;lt;/chem&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Программный код =&lt;br /&gt;
&amp;lt;source lang=&amp;quot;go&amp;quot;&amp;gt;&lt;br /&gt;
Структуры в Golang&lt;br /&gt;
&lt;br /&gt;
package main&lt;br /&gt;
import &amp;quot;fmt&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
type person struct{&lt;br /&gt;
    name string&lt;br /&gt;
    age int&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
func main() {&lt;br /&gt;
     &lt;br /&gt;
    var tom = person {name: &amp;quot;Tom&amp;quot;, age: 24}&lt;br /&gt;
    fmt.Println(tom.name)       // Tom&lt;br /&gt;
    fmt.Println(tom.age)        // 24&lt;br /&gt;
     &lt;br /&gt;
    tom.age = 38    // изменяем значение&lt;br /&gt;
    fmt.Println(tom.name, tom.age)      // Tom 38&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import math&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
invphi = (math.sqrt(5) - 1) / 2  # 1 / phi&lt;br /&gt;
invphi2 = (3 - math.sqrt(5)) / 2  # 1 / phi^2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
def gssrec(f, a, b, tol=1e-5, h=None, c=None, d=None, fc=None, fd=None):&lt;br /&gt;
    &amp;quot;&amp;quot;&amp;quot;Golden-section search, recursive.&lt;br /&gt;
&lt;br /&gt;
    Given a function f with a single local minimum in&lt;br /&gt;
    the interval [a, b], gss returns a subset interval&lt;br /&gt;
    [c, d] that contains the minimum with d-c &amp;lt;= tol.&lt;br /&gt;
&lt;br /&gt;
    Example:&lt;br /&gt;
    &amp;gt;&amp;gt;&amp;gt; f = lambda x: (x - 2) ** 2&lt;br /&gt;
    &amp;gt;&amp;gt;&amp;gt; a = 1&lt;br /&gt;
    &amp;gt;&amp;gt;&amp;gt; b = 5&lt;br /&gt;
    &amp;gt;&amp;gt;&amp;gt; tol = 1e-5&lt;br /&gt;
    &amp;gt;&amp;gt;&amp;gt; (c, d) = gssrec(f, a, b, tol)&lt;br /&gt;
    &amp;gt;&amp;gt;&amp;gt; print (c, d)&lt;br /&gt;
    1.9999959837979107 2.0000050911830893&lt;br /&gt;
    &amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    (a, b) = (min(a, b), max(a, b))&lt;br /&gt;
    if h is None:&lt;br /&gt;
        h = b - a&lt;br /&gt;
    if h &amp;lt;= tol:&lt;br /&gt;
        return (a, b)&lt;br /&gt;
    if c is None:&lt;br /&gt;
        c = a + invphi2 * h&lt;br /&gt;
    if d is None:&lt;br /&gt;
        d = a + invphi * h&lt;br /&gt;
    if fc is None:&lt;br /&gt;
        fc = f(c)&lt;br /&gt;
    if fd is None:&lt;br /&gt;
        fd = f(d)&lt;br /&gt;
    if fc &amp;lt; fd:  # fc &amp;gt; fd to find the maximum&lt;br /&gt;
        return gssrec(f, a, d, tol, h * invphi, c=None, fc=None, d=c, fd=fc)&lt;br /&gt;
    else:&lt;br /&gt;
        return gssrec(f, c, b, tol, h * invphi, c=d, fc=fd, d=None, fd=None)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Царёв Михаил</name></author>	</entry>

	</feed>