Re: Roman number conversion to Integer

2021-05-27 Thread Miguel Munoz
Here's one take on the problem: /** * Created by IntelliJ IDEA. * Date: 2/4/21 * Time: 1:36 AM * * @author Miguel Mu\u00f1oz */ public class ToRomans { private static int[] divisors = {1000, 500, 100, 50, 10, 5, 1}; private static char[] romans = {'M', 'D', 'C', 'L', 'X', 'V', 'I'}; /

Roman number conversion to Integer

2021-05-27 Thread Thad Guidry
Hello, I've checked the source of https://commons.apache.org/proper/commons-numbers but didn't find support for Roman numeral conversion. Is this in another project? Not at all? Planned for Numbers or another subproject like Lang, Text, or Math? Thad https://www.linkedin.com/in/thadguidry/ https

[Math][Request for review] MATH-1586

2021-05-27 Thread Samy Badjoudj
Hi, Following up on modularization of apache commons maths. https://issues.apache.org/jira/browse/MATH-1586 with https://github.com/apache/commons-math/pull/182. I moved the classes  from org.apache.commons.math4.legacy.util to packages where they are used exclusively (stat,linear). Should

Re: [Math] FastMath missing methods from java.lang.Math...

2021-05-27 Thread Gilles Sadowski
Le jeu. 27 mai 2021 à 13:53, Erik Svensson a écrit : > > > > On 2021-05-27, 11:59, "Gilles Sadowski" wrote: > > WARNING - External email; exercise caution. > > Hi. > > Le jeu. 27 mai 2021 à 11:32, Erik Svensson a > écrit : > > > > Howdy all! > > > > > > > >

[Math] Splitting "legacy" codes into maven modules

2021-05-27 Thread Gilles Sadowski
Hello. As mentioned in another thread[1] it will be worth collecting several maven modules under module "commons-math-legacy" (currently in "modularized_master" branch[2]). It is an intermediate step that focuses on severing spurious cyclic dependencies. This refactoring is also an opportunity to

Re: [Math] FastMath missing methods from java.lang.Math...

2021-05-27 Thread Erik Svensson
On 2021-05-27, 11:59, "Gilles Sadowski" wrote: WARNING - External email; exercise caution. Hi. Le jeu. 27 mai 2021 à 11:32, Erik Svensson a écrit : > > Howdy all! > > > > I’m comparing FastMath with java.lang.Math and I notice that FastMath is no longer

Re: [Math] FastMath missing methods from java.lang.Math...

2021-05-27 Thread Gilles Sadowski
Hi. Le jeu. 27 mai 2021 à 11:32, Erik Svensson a écrit : > > Howdy all! > > > > I’m comparing FastMath with java.lang.Math and I notice that FastMath is no > longer Math-complete. > > Ie, jlM has methods that FastMath doesn’t have. Incidentally, that's why the unit test suite fails when buildin

[Math] FastMath missing methods from java.lang.Math...

2021-05-27 Thread Erik Svensson
Howdy all! I’m comparing FastMath with java.lang.Math and I notice that FastMath is no longer Math-complete. Ie, jlM has methods that FastMath doesn’t have. FM is documented as ‘drop-in replacement’ so should the new jlM methods be added to FM? Methods in question: fma (https://docs.oracle.com