Re: [math] ComplexFormat parse for inverted complex number

2010-10-11 Thread Ted Dunning
); > > Work for you? Is the Im(c)i + Re(c) widely used enough to warrant the > addition of support for it? > Joe Haswell | HP Software > > > > > > -Original Message- > From: Luc Maisonobe [mailto:luc.maison...@free.fr] > Sent: Monday, October 11, 2010 3:

RE: [math] ComplexFormat parse for inverted complex number

2010-10-11 Thread Haswell, Joe
swell | HP Software -Original Message- From: Luc Maisonobe [mailto:luc.maison...@free.fr] Sent: Monday, October 11, 2010 3:24 PM To: Commons Users List Subject: Re: [math] ComplexFormat parse for inverted complex number Le 11/10/2010 22:38, Grzegorz Szpetkowski a écrit : > I have a que

Re: [math] ComplexFormat parse for inverted complex number

2010-10-11 Thread Luc Maisonobe
Le 11/10/2010 22:38, Grzegorz Szpetkowski a écrit : > I have a question how can I (easily) parse String like that: > > String sZ = "20i + 5.4"; > > On page http://commons.apache.org/math/userguide/complex.html I found example: > > ComplexFormat cf = new ComplexFormat(); > Complex c = cf.parse("1

[math] ComplexFormat parse for inverted complex number

2010-10-11 Thread Grzegorz Szpetkowski
I have a question how can I (easily) parse String like that: String sZ = "20i + 5.4"; On page http://commons.apache.org/math/userguide/complex.html I found example: ComplexFormat cf = new ComplexFormat(); Complex c = cf.parse("1.110 + 2.222i"); It's ok, but if I have inverted form like "20i + 5