Re: [sympy] get sqrt to work

2022-08-22 Thread Peter Stahlecker
Dear Zohreh, Just for my understanding: 1. You params are alpha, betta ,gamma, eta (?) 2. What do you mean by generating them dynamically? Peter On Tue 23. Aug 2022 at 02:44 Zohreh Karimzadeh wrote: > Dear Oscar > BIG help ! > Here I seriously need to use sympy to generate my params

Re: [sympy] get sqrt to work

2022-08-22 Thread Zohreh Karimzadeh
Dear Oscar BIG help ! Here I seriously need to use sympy to generate my params dynamically. All Bests Zohreh Karimzadeh *https://www.researchgate.net/profile/Zohreh-Karimzadeh* Skype Name 49a52224a8b6b38b Twitter Account @zohrehkarimzad1

Re: [sympy] get sqrt to work

2022-08-22 Thread Oscar Benjamin
On Mon, 22 Aug 2022 at 15:36, Peter Stahlecker wrote: > > Dear Oscar, > > Thanks for your hint about these parameters!. > Probably dumb question of mine: > Could one not define f_Vi_est directly as > > def_Vi_est(gamma, alfa, beta, eta, L, K, VA): >Vi_est = gamma - (1 / eta)….. >

Re: [sympy] get sqrt to work

2022-08-22 Thread Peter Stahlecker
Dear Oscar, Thanks for your hint about these parameters!. Probably dumb question of mine: Could one not define f_Vi_est directly as def_Vi_est(gamma, alfa, beta, eta, L, K, VA): Vi_est = gamma - (1 / eta)….. return np.sum(…..) without any ‚lambdification‘? Thanks! Peter On

Re: [sympy] get sqrt to work

2022-08-22 Thread Oscar
On Saturday, 20 August 2022 at 16:09:14 UTC+1 peter.st...@gmail.com wrote: > Most welcome! > Like I said, passing args = (L, K , VA) to your function F may take a > little 'playing around'. > This is one way to do it: import numpy as np import sympy as sp from scipy.optimize import minimize,