seconda lezione pre esercizi

This commit is contained in:
PanSi21 2025-03-12 11:06:53 +01:00
parent f7a282108c
commit 8f36b9b171
Signed by untrusted user who does not match committer: PanSi21
GPG key ID: 755F8874C65EF462
5 changed files with 29 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
Libro_Calcolo_Scientifico.pdf
Libro_Calcolo_Scientifico.xopp

20
Lezione1/es1/es1.jl Normal file
View 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
View 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
View file

Binary file not shown.