seconda lezione pre esercizi
This commit is contained in:
parent
f7a282108c
commit
8f36b9b171
5 changed files with 29 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
Libro_Calcolo_Scientifico.pdf
|
||||||
|
Libro_Calcolo_Scientifico.xopp
|
||||||
20
Lezione1/es1/es1.jl
Normal file
20
Lezione1/es1/es1.jl
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
|
||||||
|
r+=p
|
||||||
|
end
|
||||||
|
return r
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
#plot the results
|
||||||
|
|
||||||
|
#define a range
|
||||||
|
epsilon = 1e-3
|
||||||
|
t = range(epsilon,1,lenght=20)
|
||||||
|
|
||||||
|
#define the approximation
|
||||||
|
r(x,N) = (x^(N+1)/fatctorial(N+1))
|
||||||
|
|
||||||
|
# define the difference
|
||||||
|
h(x,N) = exp(x)-g(x,N)
|
||||||
|
|
||||||
|
# plot
|
||||||
7
Lezione2/es1_2/es1_2.c
Normal file
7
Lezione2/es1_2/es1_2.c
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
|
int main(int argc, char const *argv[]){
|
||||||
|
/* code */
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
0
Lezione2/es1_2/es1_2.jl
Normal file
0
Lezione2/es1_2/es1_2.jl
Normal file
BIN
computazionale_secondaLezione_appunti.xopp
Normal file
BIN
computazionale_secondaLezione_appunti.xopp
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue