Scipy optimization alternative that does work in pythonista

Hi guys,
Ive been loving this app so far but its a pain scipy doesnt work since it used nonpython code.
Im wondering, does anyone have a tip how i can implement optimization modules such as root finding and minimizing of functions? Im mostly looking for the modules fmin_slsqp and brentq.
Anyone have some tips?
Thanx in advance!

you sort of have to read through the docs to find the algorithm, then implement it yourself. Actually, it may be easier to find the equivalent matlab functions, since the matlab algorithms are very well documented in words/equations, making it easy to implement in any language...
As an example, here is a simple levenburgmarquardt nonlinear solver:
https://gist.github.com/a8885911babb1967bc949dfce072010eThe termination conditions are hoakey and hard coded, a more general solution would take these as arguments. Also, likely you would tweak the damping parameter adjustment to get good convergence for your problem.

seem this app https://itunes.apple.com/us/app/analyser/id1083042861?mt=8 does has scipy , but i's a bit expensive, it's not worth!

Interesting app. The description says "Embed a Python 3.5 interceptor, includes numpy, scipy, matplotlib, scikitlearn, scikitimage, pandas, pymc, sympy, statsmodels, astropy, astroML, nipy, nilearn". Several modules are ones that pythonista users have been hoping to see added.