Questions tagged as 'scipy'

1
answer

Systems of nonlinear equations in python

I have the following concern with a nonlinear equation system in python : from scipy.optimize import fsolve as fs def nonlinear(z): '''Solve a sistems 2x2 not linear ''' x, y = z[0], z[1] f1 = (x**2)+(y**2)-2*(4.41*x+2.68*y)+...
asked by 30.01.2018 / 05:06
2
answers

Python: Scipy.optimize Levenberg-marquardt method

I have a question about how to use the Levenberg-Marquart optimization method in scipy come several of these methods: link I have tried two methods (nelder-mead and basinhopping) and they work correctly with the following sentence: Nel...
asked by 06.09.2016 / 02:59
1
answer

Error: Invalid index to scalar value

This is my workflow. I try to filter my data y and z to eliminate the nan values. I can not fix the Invalid index error. data = logs[['DEPT','NPHI', 'RT' ]] x = data ['DEPT'] y = data ['NPHI'] z = data['RT'] DEPT_inv = sp.sum(sp...
asked by 30.06.2017 / 16:48
1
answer

For loop in python

Good morning, The value of x is a decrease of 1.0 - 0.01 asi, the first value of x=0.99 the second x=0.98 and the third x=0.97 The first value is x1=1.0 The problem is the update of x1 and t...
asked by 13.03.2017 / 19:19
1
answer

HOW DO I SOLVE IT? I get an error in line 110, in module Action_List (4) NameError: name 'Activity_List' is not defined?

# importando modulos necesarios import matplotlib.pyplot as plt import numpy as np import seaborn as sns import random as rm #Estados(Nodos)-->4 EVENTOS Estados=["Dormir","Entrenar","Correr","Jugar"] Lista_Actividad=[] #Posibles secuencia...
asked by 14.11.2018 / 01:12
1
answer

scipy.optimize.newton, How to declare the derivative?

Of the libreria Scipy to use the metodo de Newton I have to declare the functions and the parameters scipy.optimize.newton(func, x0, fprime=None, args=(), tol=1.48e-08, maxiter=50, fprime2=None) The problem is that when I de...
asked by 28.03.2017 / 17:42
0
answers

index 0 is out of bounds for axis 0 with size 0

I have imported all the necessary libraries, I want to pass it to FFT and this is my code (I have already declared the fixes and put the address where you will extract everything from): #k=f12.size+f24.size k=(f12.size+f24.size)*100 tp1...
asked by 08.12.2018 / 22:57
1
answer

Error compiling SciPy for ARM

I am trying to compile the Python package, SciPy, to install it on a plate where I do not have a cross compiler; for this I am doing the compilation in a Beaglebone Black. I have installed the Numpy package using the sudo pip install numpy...
asked by 21.05.2018 / 08:02