You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've planned to work on this topic so, to get better clarity for the integration of linsolve, nonlinsolve with solveset, i.e to enhance the functionality of solveset, I've opened this.
solveset will be able to give the solutions the same as that of linsolve, nonlinsolve thus improving the solveset functionality tremendously.
I think this could be done by simply adding the identifier functions for each of them like _is_linsolve and _is_nonlinsolve respectively, which is pretty similar to the case like _is_modular, _is_exponential, etc,... in the solveset.py module.
Then ultimately calling the function then passing the respective arguments.
The rough code could be like,
def _is_linsolve(system, *symbol):
# If this returns True `linsolve` will be called
# have to write logic to check whether it could be called or not
def _is_nonlinsolve(system, *symbols):
# If this returns True `nonlinsolve` will be called
# have to write logic to check whether it could be called or not
def _solveset(f, symbol, domain, _check=False):
#
#
#
if _is_linsolve(system, *symbol):
return linsolve(system, *symbols)
if _is_nonlinsolve(system, *symbol):
return nonlinsolve(system, *symbols)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've planned to work on this topic so, to get better clarity for the integration of linsolve, nonlinsolve with solveset, i.e to enhance the functionality of solveset, I've opened this.
solveset
will be able to give the solutions the same as that oflinsolve
,nonlinsolve
thus improving the solveset functionality tremendously.I think this could be done by simply adding the identifier functions for each of them like
_is_linsolve
and_is_nonlinsolve
respectively, which is pretty similar to the case like_is_modular
,_is_exponential
, etc,... in thesolveset.py
module.Then ultimately calling the function then passing the respective arguments.
The rough code could be like,
Any ideas, suggestions regarding this topic are welcome to discuss here : )
Beta Was this translation helpful? Give feedback.
All reactions