Category "physics"

Trouble computing integral with scipy quad

I'm trying to compute the following definite integral: Integral I want to compute: where rho_ch is and a = 3.66 * 10^(-15) m (in meters) b = 0.54 * 10^(-15) m

are contour data (X,Y) ordered in a connected clockwise path in matplotlib?

As in the title: pl = plt.contour(X,Y,Z,levels=[0]) paths = pl.allsegs I wonder how are the data points in paths ordered. Specifically is it oriented clockwis

Finite difference method for 3D diffusion/heat equation

I'm trying to use finite differences to solve the diffusion equation in 3D. I think I'm having problems with the main loop. In particular the discrete equation

How to add more than one header(HDRs) and object in a makefile?

HDRS = EventLoop.h Data.h OBJS = EventLoop.o Data.o dict_$(PROGRAM).o This is from my makefile, I want to add another Data.h and Data.o in it , kindly help! Tri

How do I improve my fit of the double slit diffraction in gnuplot?

I wrote this code to fit the intensity equation of a double slit diffraction over my measured data. The problem is that the fit graph isnt proportional to the p

Creating Rope Physics for Unity

I want to create a bungee jumping-like game in Unity and therefore I need a rope physics. I especially need elastic ropes with capability to pull objects with v