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-* > ..

#### Category : physics

import scipy import numpy TT = [100, 120, 150, 200, 250, 300, 350, 400, 500, 600, 700, 800, 900, 1000, 1200, 1400, 1600, 1700, 1800, 1900] d = 1 #variables for the thing a = 2 vd = 343 mk = 28 mg = 72.6 Td = 25 kv = 1.3*10**23 d = float(input("Silicium 12.1 ..

So I have one problem for motion. The problem is finding for which angle, a object would fall off a sphere. Suppose the sphere is frictionless and all that, so it just slides off. Logically this would say that when the normal force acting on the object is 0, the object leaves the surface. So ..

So I have one problem for motion. The problem is finding for which angle, a object would fall off a sphere. Suppose the sphere is frictionless and all that, so it just slides off. Logically this would say that when the normal force acting on the object is 0, the object leaves the surface. So ..

I am trying to use fmin to create a wind profile, with the data input, I got the error operands could not be broadcast together with shapes (3,) (6,) I tried to fix by changing data to a 2D array 1×6, but the problem is how to change the (3,)to a 1×3? I am so ..

So I have one problem for motion. The problem is finding for which angle, a object would fall off a sphere. Suppose the sphere is frictionless and all that, so it just slides off. Logically this would say that when the normal force acting on the object is 0, the object leaves the surface. So ..

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 ..

I am trying to determine the phase of two superposed complex plane waves. There are two simple ways of implementing this: The first is to write each as a complex array and add them. The second is to do some math behind the scenes and ask numpy to write the exact result. The two results ..

I need to simulate the motion of a charged particle in a cylindrical magnetic field. The initial conditions given are: proton has energy of 1 MeV in the z-direction, the particle starts at r = 3, the magnetic field has magnitude 9T/r and is clockwise around z. For this assignment, I am using solve_ivp. I ..

I want to calculate the mean-square displacement using the blocking scheme mentioned here blocking scheme for correlations. The main idea is to store the data in blocks of certain length as mentioned in the link. I have the data in shape (10, 11214,3), there are 10 frames containing 11214 data points in 3-dimension. So now ..

## Recent Comments