Re: Projects that use org.apache.commons.math3.optim.linear.*;

2023-09-29 Thread Andy Turner
Hi Jorge, This may be of some help in building a list: https://mvnrepository.com/artifact/org.apache.commons/commons-math3 I think you would need to do some digging to get the fine detail and this would only be that fraction that is mavenised. HTH Andy From:

RE: [io] OutOfMemory exception in IOUtils.toByteArray

2016-03-08 Thread Andy Turner
I am not familiar with the Android environment, but another way to solve this issue might be to allow the application to use more memory perhaps by specifying a -Xmx option in the java run command. Andy -Original Message- From: Julio Oliveira [mailto:julio.julioolive...@gmail.com]

RE: [io] OutOfMemory exception in IOUtils.toByteArray

2016-03-08 Thread Andy Turner
You can try and catch the OutOfMemoryError: try { doSomething(); } catch (OutOfMemoryError e) { Boolean a = true; // Stop the debugger here } To handle this really though you want a reserve bit of memory to release and have a way to swap some of your data used by your application from the fast

RE: [Math] Allow empty ConvexHull2D

2015-06-10 Thread Andy Turner
Perhaps it is worth investigating how JTS operates in this respect: http://www.vividsolutions.com/jts/JTSHome.htm (I have not looked, but I assume that JTS has a similar operation/test case.) Andy http://www.geog.leeds.ac.uk/people/a.turner/index.html -Original Message- From: Thomas

RE: [math] Re: binomial random generator

2011-10-23 Thread Andy Turner
Hi, Ahmed, I may be doing something similar. I have simulation models driven by probabilities (values between 0 and 1). In this range I used fixed decimal precision probabilities by using BigDecimal. I have written code that does a pseudo random test of a specific value in the range to return

RE: [math] Polygon Difference Question

2011-09-08 Thread Andy Turner
Hi There is considerable experience with these sorts of issues from the geospatial domain. It might be worth asking for instance on the geotools or JTS java topology suite lists if they can help. I've not looked into this, but I suspect perhaps a rounding/precision issue, or something to do

RE: [Math] BigDecimal to power

2011-01-27 Thread Andy Turner
Indeed, dealing with all the special cases involves dealing with complex roots and my implementation doesn't. So there is more work to do, but I don't think it is too much... I am confident that it will do cube roots though I should check some more of these :-) Anyway, it seems this

RE: [Math] BigDecimal to power

2011-01-27 Thread Andy Turner
I don't see a dflp package in 2.1. Can you give me a better pointer? I want to compare... It is in the subversion repository. You'll have to check it out. I did, but have not found it! I did find other pow functions in the org.apache.commons.math.util.MathUtils class. Andy

RE: [Math] BigDecimal to power

2011-01-25 Thread Andy Turner
Hi and thanks Luc, It may interesting to add this feature. I didn't look precisely but how does it compare to our arbitrary precision dflp package ? I don't see a dflp package in 2.1. Can you give me a better pointer? I want to compare... If anyone knows a way of raising a BigDecimal to the

RE: [Math] BigDecimal to power

2011-01-21 Thread Andy Turner
I can spend some time to change the code. I'll wait to here from others if the functionality is wanted as part of Commons Math before I do too much... I am using the Netbeans IDE with which it is trivial to make some of the changes you suggest (package and class naming, removing the @author

RE: [Math] BigDecimal to power

2011-01-20 Thread Andy Turner
, Andy http://www.geog.leeds.ac.uk/people/a.turner/ -Original Message- From: Andy Turner [mailto:a.g.d.tur...@leeds.ac.uk] Sent: 16 December 2010 22:29 To: Commons Users List Subject: RE: [Math] BigDecimal to power Can do if the code is wanted

[Math] BigDecimal to power

2010-12-16 Thread Andy Turner
Hi, I've implemented code for calculating a BigDecimal raised to the power of another BigDecimal and which returns the result rounded to a specified number of decimal places. It is in the maths package of my Generic library and can be found via the following URL:

RE: [Math] BigDecimal to power

2010-12-16 Thread Andy Turner
to asl 2. Gary On Dec 16, 2010, at 9:07, Andy Turner a.g.d.tur...@leeds.ac.uk wrote: Hi, I've implemented code for calculating a BigDecimal raised to the power of another BigDecimal and which returns the result rounded to a specified number of decimal places. It is in the maths package of my

RE: Why not BigDecimal?

2010-02-12 Thread Andy Turner
Interesting that this is a precision issue. I'm not surprised depending on what you are doing, double precision may not be enough. It depends a lot on how the calculations are broken into smaller parts. BigDecimal is fantastically useful... Andy http://www.geog.leeds.ac.uk/people/a.turner/