Skip to main content

All Questions

Tagged with
0 votes
1 answer
43 views

Something goes wrong calculating the slope of the simulation

In this python code we are trying to simulate the path of a frisbee that is being shot from a shooter with a certain angle (alpha0). The angle of attack should be the angle at which its being shot, ...
Rafael 's user avatar
1 vote
0 answers
255 views

How can I process large 3D grids of background data in Python to be quickly accessible for calculating numerical integrals dependent on the grid data?

The Problem I'm a physics graduate research assistant, and I'm trying to build a very ambitious Python code that, boiled down to the basics, evaluates a line integral in a background described by very ...
Jopacabra's user avatar
0 votes
1 answer
679 views

Numerically Solving A Multivariate Differential Equation Without odeint

I am curious. I know this can be solved by using odeint, but I'm trying to do it from scratch, and I've encountered an interesting behaviour. Assume a simple oscillator, of equation m * x_ddot + k * x ...
fallen_one's user avatar
1 vote
0 answers
96 views

Numpy: different values when calculating a sum of a sequence

I'm using scipy.integrate's odeint function to evaluate the time evolution of to find solutions to the equation $$ \dot x = -\frac{f(x)}{g(x)}, $$ where $f$ and $g$ are both functions of $x$. $f,g$...
Waldinian's user avatar
2 votes
2 answers
3k views

Python numerically solved harmonic oscillator graph generates unwanted results

Ive been trying to numerically solve for the graph of a basic harmonic oscillator but a problem occurs when acceleration on the object is proportional to the inverse of the distance from the centre: ...
Karanbir Bains's user avatar
1 vote
1 answer
573 views

non linear least square fitting with the variable as the integration limit

I'm trying to make some non-linear fittings with python which involve an integral, and the limits of the integral depends on the independent variable. The code is the following: import numpy as np ...
Diego Alba Venero's user avatar