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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Сортировки по алгоритмам. Часть 1 | |
Сортировка Shell1 - не работает | |
#include<iostream> | |
#include <ctime> | |
#include <cstdio> | |
#define n 20 | |
using namespace std; | |
void input(int k, int* a); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <ctime> | |
#include <cstdio> | |
#define n 20 | |
using namespace std; | |
void input(int k, int* a); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <ctime> | |
#include <cstdio> | |
#define n 20 | |
using namespace std; | |
void input(int k, int* a); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |