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:
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]
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
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
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
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
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
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
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
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
,
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
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:
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
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/
14 matches
Mail list logo