Skip to content

Instantly share code, notes, and snippets.

Avatar

Vladimir Reshetnikov VladimirReshetnikov

View GitHub Profile
View MatrixProductIntegral.m
Block[{α, β, γ, δ, ε, ζ, η, θ, κ, λ, μ, ν, ξ, 𝒟 = ParabolicCylinderD},
α = -((I (b^2 - 4 a (c + I √a)))/(8 a^(3/2)));
β = -(((1/2 - I/2) b)/a^(3/4));
γ = (I (-(4 c a) + b^2 + 4 I a^(3/2)))/(8 a^(3/2));
δ = ((1/2 + I/2) b)/a^(3/4);
ε = (-(4 I c a) + I b^2 + 4 a^(3/2))/(8 a^(3/2));
ζ = b 𝒟[γ, δ] - (1 - I) a^(3/4) 𝒟[ε, δ];
η = (4 I c a - I b^2 + 4 a^(3/2))/(8 a^(3/2));
θ = 1/(2 ζ 𝒟[α, β] + (2 + 2 I) a^(3/4) 𝒟[η, β] 𝒟[γ, δ]);
ξ = ((1/2 + I/2) (b + 2 a))/a^(3/4);
View smallest-generalized-sums.csv
1 1 5 1 19 7 5 65 61 73 227 257 5 439 1253 2425 2035 833 2677 10591 6509 32071 41173 77263 114323 18145 129685 321151 15757 645449 113957 50735
View RTL.cs
class Program
{
static void Main()
{
string s = $"واحد {-1} اثنين {-2} ثلاثة";
}
}
View mono.txt
C:\Program Files\Mono
├───bin
│ al
│ al.bat
│ al2
│ al2.bat
│ aprofutil
│ aprofutil.bat
│ caspol
│ caspol.bat
View dotnet.txt
This file has been truncated, but you can view the full file.
C:\Program Files\dotnet
│ dotnet.exe
│ LICENSE.txt
│ ThirdPartyNotices.txt
├───host
│ └───fxr
│ ├───3.0.1
│ │ hostfxr.dll
View IndexOf.cs
using System;
static class Program
{
static void Main()
{
const string COMBINING_LIGATURE_LEFT_HALF = "\uFE20"; //
const string COMBINING_LIGATURE_RIGHT_HALF = "\uFE21"; //
Console.WriteLine(string.Empty.IndexOf(COMBINING_LIGATURE_LEFT_HALF, StringComparison.InvariantCulture));
View Polynomial.m
f[0] + x f'[0] + (x^2 f''[0])/2 + (x^3 f'''[0])/6 + (x^9 (-1155 f[-1] + 1155 f[1] - 435 f'[-1] - 1440 f'[0] - 435 f'[1] - 60 f''[-1] + 60 f''[1] - 3 f'''[-1] - 64 f'''[0] - 3 f'''[1]))/96 + (x^8 (240 f[-1] - 480 f[0] + 240 f[1] + 105 f'[-1] - 105 f'[1] + 17 f''[-1] - 64 f''[0] + 17 f''[1] + f'''[-1] - f'''[1]))/32 + (x^4 (480 f[-1] - 960 f[0] + 480 f[1] + 165 f'[-1] - 165 f'[1] + 21 f''[-1] - 192 f''[0] + 21 f''[1] + f'''[-1] - f'''[1]))/96 + (x^5 (-693 f[-1] + 693 f[1] - 213 f'[-1] - 960 f'[0] - 213 f'[1] - 24 f''[-1] + 24 f''[1] - f'''[-1] - 64 f'''[0] - f'''[1]))/96 + (x^6 (-320 f[-1] + 640 f[0] - 320 f[1] - 131 f'[-1] + 131 f'[1] - 19 f''[-1] + 96 f''[0] - 19 f''[1] - f'''[-1] + f'''[1]))/32 + (x^10 (-192 f[-1] + 384 f[0] - 192 f[1] - 87 f'[-1] + 87 f'[1] - 15 f''[-1] + 48 f''[0] - 15 f''[1] - f'''[-1] + f'''[1]))/96 + (x^11 (315 f[-1] - 315 f[1] + 123 f'[-1] + 384 f'[0] + 123 f'[1] + 18 f''[-1] - 18 f''[1] + f'''[-1] + 16 f'''[0] + f'''[1]))/96 + (x^7 (495 f[-1] - 495 f[1] + 175 f'[-1] + 640 f'[0] + 175
@VladimirReshetnikov
VladimirReshetnikov / Colorful.icls
Created Oct 17, 2020
"Colorful" Color Scheme for Rider
View Colorful.icls
<scheme name="Colorful" version="142" parent_scheme="Rider Dark">
<metaInfo>
<property name="created">2020-06-21T14:26:21</property>
<property name="ide">Rider</property>
<property name="ideVersion">2020.2.0.0</property>
<property name="modified">2020-06-21T14:27:43</property>
<property name="originalScheme">Colorful</property>
</metaInfo>
<colors>
<option name="CARET_ROW_COLOR" value="303230" />
View Shmabius.m
With[{s = Table[1 - Mod[Total[IntegerDigits[n, 3]], 3], {n, 0, 3000}]},
Print[s[[;; 40]]];
ListPlot[Nest[Accumulate, s, 6], Joined -> True, ImageSize -> Large]]
View Extrapolate
a5 + (1/(a5 - a4) - (a3 - 2*a4 + a5)/((a4 - a5)^2 - ((a1 - 2*a2 + a3) * (a3 - a4)^2 * (a3^2 + a4^2 + a2*(a5 - a4) - a3*(a4 + a5))^2)/((a2 - a3) * (a2 - 2*a3 + a4) * (a2^2 + a3^2 + a1*(a4 - a3) - a2*(a3 + a4)) * (a3 - 2*a4 + a5))))^(-1)
a_5 + \left(\frac{1}{a_5 - a_4} - \frac{a_3 - 2 a_4 + a_5}{\left(a_4 - a_5\right)^2 - \frac{\left(a_3 - a_4\right)^2 \left(a_1 - 2 a_2 + a_3\right) \left(a_3^2 + a_4^2 + a_2 \left(a_5 - a_4\right) - a_3 \left(a_4 + a_5\right)\right)^2}{\left(a_2 - a_3\right) \left(a_2 - 2 a_3 + a_4\right) \left(a_3 - 2 a_4 + a_5\right) \left(a_2^2 + a_3^2 + a_1 \left(a_4 - a_3\right) - a_2 \left(a_3 + a_4\right)\right)}}\right)^{-1}