Skip to content

Instantly share code, notes, and snippets.

View undrcrxwn's full-sized avatar
❤️

Степной ишак undrcrxwn

❤️
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#include <iostream>
using namespace std;
int gauss(long double **a, long double *b, long double *x, const int n);
int main(){
long double **a; long double *b; long double *x; int i,j,n;
cout <<" input n = " ; cin >> n;
try {
a= new long double*[n]; for(i=0;i<n;i++) a[i]=new long double[n];
b= new long double[n]; x= new long double[n];
}
import math
def f(x):
return math.exp(-2 * x) - 3 * x ** 3
a = 0.4976
b = 0.49761
eps = 1e-12
k = 0
print("a = ", a)
print("b = ", b)
print("eps = ", eps)
Сортировки по алгоритмам. Часть 1
Сортировка Shell1 - не работает
#include<iostream>
#include <ctime>
#include <cstdio>
#define n 20
using namespace std;
void input(int k, int* a);
import math
def fix(x):
return math.tan(x) + x - 1
def fix_derivative(x):
return 1 / (math.cos(x) ** 2) + 1
def newton_method(f, df, initial_guess, eps, max_iterations=100):
x = initial_guess
#include <iostream>
#include <ctime>
#include <cstdio>
#define n 20
using namespace std;
void input(int k, int* a);
#include <iostream>
#include <ctime>
#include <cstdio>
#define n 20
using namespace std;
void input(int k, int* a);
public async Task Update_Positive(){
var registerRequest = new Register.Command("zanli_0", "Степной ишак", "qwerty123!", avatarUrl: null); var registerMessage = await _client.PostAsJsonAsync("/api/v1/users/register", registerRequest);
var registerResponse = await registerMessage.Content.ReadFromJsonAsync<Register.Response>()!;
var data = new Dictionary<string, string> {
{ "grant_type", "password" }, { "username", "zanli_0" },
{ "password", "qwerty123!" } };
var exchangeMessage = await _client.PostAsync("~/connect/token") _client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var updateRequest = new Update.Command(
registerResponse!.Id, Username: "akavi",
DisplayName: "Akavi", AvatarUrl: "https://example.com/avatar.jpg",