Initial commit
This commit is contained in:
9
PI/Ćwiczenia/20221010123607.md
Normal file
9
PI/Ćwiczenia/20221010123607.md
Normal file
@@ -0,0 +1,9 @@
|
||||
$a=0 \land b=0 \land c=0 \Rightarrow x \in \mathbb{R}$
|
||||
$a=0 \land b=0 \land c \ne 0 \Rightarrow x = \emptyset$
|
||||
$a=0 \land b \ne0 \Rightarrow x = \frac {-c}{b}$
|
||||
$a \ne 0$
|
||||
$\Updelta = b^2 -4ac$
|
||||
$ax^2 + bx + c = 0$
|
||||
$x \in \mathbb{R} ; a,b,c \in \mathbb{R}$
|
||||
|
||||
|
||||
48
PI/Ćwiczenia/20221024115005.md
Normal file
48
PI/Ćwiczenia/20221024115005.md
Normal file
@@ -0,0 +1,48 @@
|
||||
## Jak policzyć słowa w książce?
|
||||
```cpp
|
||||
const int rozmiar_książki = 300;
|
||||
int liczba_słów_na_stronie[rozmiar_książki];
|
||||
liczba_słów_na_stronie[2]=20; // <-- 20 słów na stronie 3
|
||||
int suma = liczba_słów_na_stronie[0];
|
||||
for (int nr = 1;nr<rozmiar;nr++){
|
||||
suma+=liczba_słów_na_stronie[nr];
|
||||
}
|
||||
```
|
||||
![[Drawing 2022-10-24 12.04.19.excalidraw]]
|
||||
|
||||
## Funkcja wyliczająca minimum i maksimum
|
||||
|
||||
```CpP
|
||||
void minmax1(double a[],int &min, int &max){
|
||||
max = 0;
|
||||
for (int i = 1; i<n;i++)
|
||||
if (a[i]>a[max]){
|
||||
max = i;
|
||||
}
|
||||
min = 0;
|
||||
for (int i = 1; i<n;i++)
|
||||
if (a[i]<a[max]){
|
||||
min = i;
|
||||
}
|
||||
} //2(n-1)
|
||||
void minmax2(double a[],int &min, int &max){
|
||||
max = min = 0;
|
||||
for (int i = 1; i<n;i++)
|
||||
if (a[i]>a[max]){
|
||||
max = i;
|
||||
};
|
||||
if (a[i]<a[max]){
|
||||
min = i;
|
||||
};
|
||||
} //2(n-1)
|
||||
void minmax3(double a[],int &min, int &max){
|
||||
max = min = 0;
|
||||
for (int i = 1; i<n;i++)
|
||||
if (a[i]>a[max]){
|
||||
max = i;
|
||||
} else if (a[i]<a[max]){
|
||||
min = i;
|
||||
};
|
||||
} // opt n-1 where 1/n!; pes 2(n-1) where 1/n; avg 2(n-1)-ln(n)-C
|
||||
|
||||
```
|
||||
18
PI/Ćwiczenia/Ćwiczenia.md
Normal file
18
PI/Ćwiczenia/Ćwiczenia.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# Ćwiczenia Overview
|
||||
Kartkówki - 2-3 na semestr
|
||||
|
||||
|Punkty|Ocena|
|
||||
|:---:|---:|
|
||||
|6.0-6.79|3|
|
||||
|6.8-7.59 | 3.5|
|
||||
|7.6-8.39 | 4|
|
||||
|8.4-9.19 | 4.5|
|
||||
|9.2-10.6 | 5|
|
||||
|
||||
[https://platforma.polsl.pl/rau2/course/view.php?id=766](https://platforma.polsl.pl/rau2/course/view.php?id=766)
|
||||
|
||||
`Tele###2`
|
||||
```ccard
|
||||
type: folder_brief_live
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user