python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Fit data with scipy
I have two datasets, calculated from different equations, now I would like to fit both datasets to the same trend line, or to fit one dataset to another. I would like to constrain the blue dataset, wi...

JCV
Votes: 0
Answers: 1
scipy.optimize.curve_fit doesn't fit
I want to use curve_fit to do exponential regression, so I can calculate the yearly growth rate of my data.
x is the year, y is assets. If it could fit, the growth-rate should be exp(b) - 1. But it re...
user1633272
Votes: 0
Answers: 1
How to find root of a function accepting error on f(x) instead of x?
I have a function like e. g.:
amountOfCalls = 0
def myFunc(x):
global amountOfCalls
amountOfCalls+=1
y = x ** 3 + x -5
return y
and want to find the root of it (i. e.: find the value...

1018307
Votes: 0
Answers: 2
scipy.optimize.minimize_scalar() adding constraint to helper function result inside objective function?
I have a function func_x() that I am trying to minimize using scipy.optimize.minimize_scalar().
func_x() also calls another function func_y() whose result func_x() uses in part to calculate the final ...
hamhung
Votes: 0
Answers: 1