Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
EskutheOne authored May 17, 2020
1 parent 02746b3 commit 81f162f
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 4 deletions.
Binary file modified courses_graphics-master — lab6/Debug/Grafika.exe
Binary file not shown.
Binary file modified courses_graphics-master — lab6/Debug/Grafika.ilk
Binary file not shown.
Binary file modified courses_graphics-master — lab6/Debug/Grafika.pdb
Binary file not shown.
Binary file modified courses_graphics-master — lab6/Debug/main.obj
Binary file not shown.
Binary file modified courses_graphics-master — lab6/Debug/vc142.idb
Binary file not shown.
Binary file modified courses_graphics-master — lab6/Debug/vc142.pdb
Binary file not shown.
Binary file not shown.
9 changes: 5 additions & 4 deletions courses_graphics-master — lab6/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ double Tp = 273;
double Tk = 300;
double lambda = 58.0;
double w1 = 1.0, w2 = -2.0, w3 = 1.0; //wspolczynniki w rownaniu
double L = 1.0;

void main()
{
Expand Down Expand Up @@ -59,6 +60,7 @@ void main()
}
}


HilbertMatrix(n, H);
printf("MACIERZ HILBERTA: \n");
displayMatrix(n, H);
Expand All @@ -70,7 +72,6 @@ void main()
plotVec(n, x);



printf("Zadanie 2. rozklad temperatury w precie \n\n");

computeMatrix(n + 1, K);
Expand All @@ -91,7 +92,7 @@ void main()
free(F);
free(x);
free(b);
for (int k = 0; k < n; k++)
for (int k = 0; k < n+1; k++)
{
if (k < n)
{
Expand Down Expand Up @@ -185,7 +186,7 @@ void computeVec(int N, double** H, double* b)
void computeVector(int N, double* F)
{

double h = 1. / N;
double h = L / N;
double x = h;
for (int i = 1; i < N; i++)
{
Expand Down Expand Up @@ -220,7 +221,7 @@ void wykres(double* T, int N)
point(x, T[d]);
circle(x, T[d], 5);
lineto(x, T[d]);
x += 1. / N;
x += L / N;
}

}
Expand Down

0 comments on commit 81f162f

Please sign in to comment.