I'm doing a calculator app design. Uses Java, Python, JEP. After calling the code below, it gets EXCEPTION_ACCESS_VIOLATION. This error is caused by importing the scipy library. anyone know how to fix it?
public void analyticalMethod() {
try (Jep jep = new Jep() {}) {
jep.exec("""
import sympy
import scipy
x=sympy.Symbol('x')
def analytical(x):
\treturn\040""" + hiddenIntegral .getText() +
"""
\nresult=scipy.integrate.quad(analytical,""" + lowerLimit + """
,""" + upperLimit+ """
)
\nc=result[0]
""");
result.setText(String.valueOf(jep.getValue("c")));
} catch (Exception e) {
System.out.println("EXCEPTION: " + e);
}
}