Category : physics

Recently, I’ve posted my code here. It takes a few orientational parameters from different folders and then it computes a scalar product which you could see defined as "angolo" import sys,os import numpy as np fn=’listadir.txt’ # <=== lista_dir with open(fn,’r’) as f: lines=f.readlines() for l in lines: os.chdir(‘C:Userssimoneanaconda3Ex_Files_Python_Statistics_EssT’ + l.strip(‘n’)) os.system(‘dir /b cnf-* > ..

Read more

import numpy as np import matplotlib.pyplot as plot from IPython.display import HTML from matplotlib import animation #setup fig with axis fig, ax = plot.subplots(figsize=(8,8)) #set axis limits ax.set(xlim=(-2,2), ylim=(0,600), xlabel="position, metres", ylabel="height, metres", title="falling apple") #initial params T = 100. m = 3 g = 9.81 v0x = 10 H = 553. #setting calc interval ..

Read more