# Questions tagged [python]

For mathematical questions about Python; questions purely about the language, syntax, or runtime errors are off-topic here and would likely be better received on Stack Overflow.

956 questions
Filter by
Sorted by
Tagged with
27 views

64 views

### How to numerically approximate solutions to a set of two second order two-variable ODEs using a python script (boundary value problem)?

I have a set of two ODEs like so: $$\ddot r = \dot \theta^2r \ - \frac{GM}{r^2}$$ $$\dot r = -\frac {r \ddot \theta} {2 \dot \theta}$$ $\theta$ and $r$ are functions of time, G and M are constants. ...
73 views

### How to parametrize eliptic curve?

def curve(t, radiusX, radiusY): x = sin(t*pi/2) * radiusX y = cos(t*pi/2) * radiusY return (x,y) Following Python pseudo-code will draw a part 1/4 ...
96 views

### Is it truly random if the outcome of the first coin toss depends on the outcome of the second coin toss? [closed]

I'm trying to understand how randomness in not truly random in the following example: an outcome of a first coin toss (yes/no) is only considered if the second coin toss also comes up 1/0 (1> ...
• 9
1 vote
49 views

### The optimal step size in the Lotka-Volterra equations

Given a Lotka-Volterra predator-prey system, $x'(t) = ax - bxy$ and $y'(t) = cxy - dy$, and the initial values (for example, $x(0) = 600$ and $y(0) = 400$), I need to estimate the optimal step size ...
73 views

### can you decompose a polynomial using an approximated zero?

There's this exercise of numerical analysis in which I need to make a function that calculates the zeroes of a second grade polynomial and a function that applies newton's method, afterwards I need to ...
51 views

I am working on a non-linear optimization problem, containing bounds and constraints for the variables. Very complex problem involving networks and logical functions. I have been switching a tool from ...
• 131
80 views

### How do I calculate the prediction interval for a data set in python?

I have a data set taken from real measurements that I have modeled with a simple univariate linear regression in python using scipy.stats.linregress, so the model ...
• 29