mpmath

sympy and mpmath give “TypeError: cannot create mpf” when using the erf() function within solveset()

I have 4 input variables (floats): Xmax Xmin percentage mode and I want to solve the following (rather long) equation for s: > (1/2+1/2*erf((log(Xmax)-(log(mode)+s**2))/(sqrt(2)*s))-(1/2+1/2*erf((log(Xmin)-(log(mode)+s**2))/(sqrt(2)*s))) - percentage == 0 I want to use mpmath and sympy to solve the...

Is there a scaled complementary error function in python available?

In matlab there is a special function which is not available in any of the collections for the Python I know (numpy, scipy, mpmath, ...). Probably there are other places where functions like this one may be found? UPD For all who think that the question is trivial, please try to compute this...