This file contains 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 <stdio.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <sys/stat.h> | |
#include <errno.h> | |
#include <iostream> | |
extern int errno; | |
int main (int argc, char **argv){ |
This file contains 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; | |
struct node { | |
int val; | |
node * next = NULL; | |
}; | |
struct list { | |
node * head = NULL; |
This file contains 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; | |
//https://gist.github.com/Brejw15/5aed87ba877a0c8cef8b02efc582e7d4 | |
//https://codeshare.io/algorytmyOperacjeNaListach | |
struct node{ | |
int val; | |
node * next; | |
}; |
This file contains 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 <iomanip> | |
#include <time.h> | |
#include <stdlib.h> | |
//https://gist.github.com/Brejw15/1a1b8cb682577264493098ae90d7e511 | |
//http://eduinf.waw.pl/inf/alg/001_search/0114.php | |
using namespace std; |
This file contains 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
/*Filename: MN03_Newton | |
Author: Peter_Wegrzyn | |
Date: 20.03.18 | |
Kod jest dostosowany do danych z przykladu ze strony http://galaxy.agh.edu.pl/~mhojny/repozytoria/mn/InterpolacjaN.pdf | |
Jeżeli chce Ci sie wpisywać swoje dane to należy jedynie odkomentować zakomentowane linie oraz zakomentowac tworzenie tabeli. | |
*/ | |
#include <iostream> | |
using namespace std; |
This file contains 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; | |
double newton(int ** &resultsTable, int * tabX, int* tabY, int k , int i) { | |
if (resultsTable[i][k] == NULL) { |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; |
This file contains 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; | |
double compositeTrapezoidRule(double * pointsX, double *pointsY, int N){ | |
double h = (pointsX[N - 1] - pointsX[0]) / (N - 1); | |
double area = 0.0; | |
area += pointsY[0] + pointsY[N - 1]; | |
for (int i = 1; i < N - 1; i ++){ | |
area += 2 * pointsY[i]; |
This file contains 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 <cstdlib> | |
#include <time.h> | |
using namespace std; | |
//matrix of constatns: | |
//|a0, a1, a2, a3| | |
//|a4, a5, a6, a7| | |
//|a8, a9,a10,a11| | |
//matrix of variables: |x0,x1,x2...xn| |
This file contains 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 <iomanip> | |
#include <cmath> | |
using namespace std; | |
void metoda_Jacobiego(); | |
bool gauss(int, double**, double*); |
OlderNewer