NIntegrate is error on Android API 19
hello, my friend, Calculate this formula (NIntegrate (x, {x, 0,2}) on the android API19 phone, throwing StackOverflowError. But running on API 24 can get normal results.
the exception as follow: java.lang.StackOverflowError at java.util.TreeMap.findByObject(TreeMap.java:351) at java.util.TreeMap.get(TreeMap.java:177) at org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory.getRuleInternal(BaseRuleFactory.java:95) at org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory.computeRule(LegendreRuleFactory.java:47) at org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory.getRuleInternal(BaseRuleFactory.java:97) at org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory.computeRule(LegendreRuleFactory.java:47) at org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory.getRuleInternal(BaseRuleFactory.java:97) at org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory.computeRule(LegendreRuleFactory.java:47) at org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory.getRuleInternal(BaseRuleFactory.java:97) at org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory.computeRule(LegendreRuleFactory.java:47) at org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory.getRuleInternal(BaseRuleFactory.java:97) at org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory.computeRule(LegendreRuleFactory.java:47) at org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory.getRuleInternal(BaseRuleFactory.java:97) at org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory.computeRule(LegendreRuleFactory.java:47) at org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory.getRuleInternal(BaseRuleFactory.java:97) at org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory.computeRule(LegendreRuleFactory.java:47) at org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory.getRuleInternal(BaseRuleFactory.java:97) at org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory.computeRule(LegendreRuleFactory.java:47) at org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory.getRuleInternal(BaseRuleFactory.java:97) at org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory.computeRule(LegendreRuleFactory.java:47) at org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory.getRuleInternal(BaseRuleFactory.java:97) at org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory.computeRule(LegendreRuleFactory.java:47) at org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory.getRuleInternal(BaseRuleFactory.java:97) at org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory.computeRule(LegendreRuleFactory.java:47) at org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory.getRuleInternal(BaseRuleFactory.java:97) at org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory.computeRule(LegendreRuleFactory.java:47) at org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory.getRuleInternal(BaseRuleFactory.java:97) at org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory.computeRule(LegendreRuleFactory.java:47) at org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory.getRuleInternal(BaseRuleFactory.java:97) at org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory.computeRule(LegendreRuleFactory.java:47) at org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory.getRuleInternal(BaseRuleFactory.java:97) at org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory.computeRule(LegendreRuleFactory.java:47) at org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory.getRuleInternal(BaseRuleFactory.java:97) at org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory.computeRule(LegendreRuleFactory.java:47) at org.apache.commons.math4.analysis.integration.gauss.BaseRuleFactory.getRuleInternal(BaseRuleFactory.java:97) at org.apache.commons.math4.analysis.integration.gauss.LegendreRuleFactory.computeRule(LegendreRuleFactory.java:47) at org.apache.c
Comments (3)
-
repo owner -
hello, my friend, thanks, according to your answer, it can get result on android api 19, thank you very much
-
repo owner - changed status to closed
Please use the Github issue tracker to open a new issue if this issue shouldn't be closed Github issues
- Log in to comment
Did you try to use another integration method instead of LegendreGauss?
Examples:
or something like this: