Horje
python system of nonlinear equations Code Example
python system of nonlinear equations
import scipy.optimize as opt
from numpy import exp

def f(variables) :
    (x,y) = variables
    first_eq = x + y**2 - 4
    second_eq = exp(x) + x*y - 3
    return [first_eq, second_eq]

solution = opt.fsolve(f, (0.1, 1)) # fsolve(equations, X_0)
print(solution)

# [ 0.62034452  1.83838393]




Python

Related
python initialize a 2d array Code Example python initialize a 2d array Code Example
Python beep Code Example Python beep Code Example
python math exp Code Example python math exp Code Example
django textfield Code Example django textfield Code Example
python math packege power e Code Example python math packege power e Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9