Skip to content

Instantly share code, notes, and snippets.

View kolosovpetro's full-sized avatar

Petro Kolosov kolosovpetro

View GitHub Profile
@kolosovpetro
kolosovpetro / WinSoftware.ps1
Last active September 13, 2023 12:35
Windows software list using Chocolatey
# Install Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force;
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'));
# Upgrade Chocolatey
choco upgrade chocolatey
# List outdated packages
@kolosovpetro
kolosovpetro / needrestart.conf
Created February 10, 2025 17:52
needrestart.conf
# needrestart - Restart daemons after library updates.
#
# This is the configuration file of needrestart. This is perl syntax.
# needrestart uses reasonable default values, you might not need to
# change anything.
#
# Verbosity:
# 0 => quiet
# 1 => normal (default)
(* Requires package: PlotsOfClosedForms.m, see https://github.com/kolosovpetro/AnEfficientMethodOfSplineApproximation*)
f1[X_] := X^7;
f2[X_] := P[3, X, 50];
absError[X_] := Abs[f1[X] - f2[X]];
relativeError[X_] := absError[X]/ Abs[f1[X]];
percentError[X_] := relativeError[X]*100;
(* Generate the table with step 0.1 *)
step = 0.1;