I broke my problem down as follows. I am not able to solve the following equation with Python 3.9 in a meaningful way, instead it always stops with th ...
I broke my problem down as follows. I am not able to solve the following equation with Python 3.9 in a meaningful way, instead it always stops with th ...
I compute something in python with sympy but this require too much time. The code looks like this: Maybe it seems long, but let me explain clearly: ...
When computing A @ a where A is a random N by N matrix and a is a vector with N random elements using numpy the computation time jumps by an order of ...
Sooner than expected, I have yet another problem with my Fortran code. This time I'm trying to find the zeros of a function, which I can normally do, ...
I have a reaction system whose mechanism is defined in the form of a nonlinear first-order ODE as: dx(t)/dt = - gaf(1 - rho)(1 - exp(-kt))(x(t)^2 + b ...
Trying to sum two arrays ([1.0, 2.0] + [3.0, 4.0]) fails in Rust as addition isn't defined for arrays. I tried to overload the operation: use std::op ...
I'm not new to numpy, but the solution to this problem has been eluding me for a while now, so I thought that I would ask here. Given the equation Y ...
I am reading the book "Introduction to linear algebra" by Gilbert Strang. The section is called "Orthonormal Bases and Gram-Schmidt". The author sever ...
I have 2 large lists of vectors (>10,000 vectors each, say vi and wi) and I am trying to find when vi cross-product wi = 0, or, when vi x wi = 0. ...
I'm writing a numerical solution to a partial integro-differential equation, and I need it to run quickly so I found that scipy.integrate.simps is bes ...
I try to compute real 1-Brjuno function for real numbers in x in [0, 1] range There are numerical errors : caused by A function for some x value ...
The manual pages for fenv.h (feraiseexcept and its ilk) are unusually uninformative; the examples I find online (cppreference.com and others) are very ...
I'm working on a numerical prediction of a pendulums motion for a project. while running the program I've noticed the time between each peak (when the ...
I encountered this error while solving the diffusion equation on fortran using alternating directional implicit(ADI) method. And here is my code ...
Seems like a simple problem, but I just cant wrap my head around it. I have a config file in which I declare a few functions. It looks like this: ...
The problem I implemented velocity verlet algorithm to compute trajectories of 2 bodies interacting with each other gravitationally (newtonian gravit ...
I am having a trouble in providing a graphical representation of my system, which happens to be a harmonically driven pendulum. The problem is shown b ...
I'm trying to produce a relativistic voigt distribution, the convolution of a relativistic Breit-Wigner distribution and a gaussian function. MWE: ...
Let f1 and f2 be two functions in the range of [a, b], and maxerr the required approximation. They both differentiable and continuous in this range. I ...
I have this function. I'm kinda green in C and I don't know how to call this function to get a result: This code is from Numerical Recipes Chapter ...