Math Fraction, reducing gcd() calls

2014-04-08 Thread MARTEL Leo
Hello everyone, I'm writing here to get help with an application I am developing using the Fraction class from org.apache.commons.math. But, since I am French, my English is quite bad ! I apologize, for this and I hope, you will understand me anyway. Here is my problem: I need the

Re: Math Fraction, reducing gcd() calls

2014-04-08 Thread Gilles
Hi. On Tue, 08 Apr 2014 09:25:32 +0200, MARTEL Leo wrote: Hello everyone, I'm writing here to get help with an application I am developing using the Fraction class from org.apache.commons.math. But, since I am French, my English is quite bad ! I apologize, for this and I hope, you will

Re: Math Fraction, reducing gcd() calls

2014-04-08 Thread paul womack
Gilles wrote: I think that calling gcd ensures that the result will not overflow for the largest possible range of arguments. It's part of the code logic. Maybe you could write methods that implement the naive algorithms for addition, subtraction, ... Then test whether you always get correct

[VFS] Which Hadoop 2.x .jars are necessary with VFS HDFS access?

2014-04-08 Thread Roger Whitcomb
Hi all, I've written a Commons VFS file browser using Apache Pivot (it's part of the 2.1 upcoming release). Now I'm trying to use it to browse into HDFS files. I got it to work with HDFS 1.x by simple including the hadoop-core .jar and a couple of other commons .jars that are

Re: Math Fraction, reducing gcd() calls

2014-04-08 Thread Ted Dunning
On Tue, Apr 8, 2014 at 2:52 PM, paul womack pwom...@papermule.co.uk wrote: Gilles wrote: I think that calling gcd ensures that the result will not overflow for the largest possible range of arguments. It's part of the code logic. Maybe you could write methods that implement the naive

RE: [VFS] Which Hadoop 2.x .jars are necessary with VFS HDFS access?

2014-04-08 Thread Martin Gainty
Roger- look for artifactIdhadoop-core/artifactId in the dependenciesdependency section in your pom.xml if either mvn compile mvn package cannot locate hadoop-core you'll need to sync your distributionManagement section in pom.xml for hadoop-core snapshots hadoop-core releases Ping back