Re: [Tutor] Help with a Conversion

2017-01-05 Thread S. P. Molnar
On 01/05/2017 01:10 PM, Peter Otten wrote: S. P. Molnar wrote: I have just started attempting programming in Python and am using Spyder with Python 3.5.2 on a Linux platform. (I first started programing in Fortran II using punched paper tape. Yes, am a rather elderly . . .). I have bumbled

Re: [Tutor] Help with a Conversion

2017-01-05 Thread Steven D'Aprano
On Thu, Jan 05, 2017 at 08:29:33AM -0500, S. P. Molnar wrote: [...] > To change the frequency to wave length I did the following: > > > p=1/1e7 > wave_length = p*np.array(frequency) > > (The relationship between wavelength and frequency is: wavelength = > 1.0e7/frequency, where 1e7 is the

Re: [Tutor] Help with a Conversion

2017-01-05 Thread Peter Otten
S. P. Molnar wrote: > I have just started attempting programming in Python and am using Spyder > with Python 3.5.2 on a Linux platform. (I first started programing in > Fortran II using punched paper tape. Yes, am a rather elderly . . .). > > I have bumbled through, what I foolishly thought

Re: [Tutor] Help with a Conversion

2017-01-05 Thread S. P. Molnar
On 01/05/2017 11:41 AM, Alan Gauld via Tutor wrote: On 05/01/17 13:29, S. P. Molnar wrote: Fortran II using punched paper tape. Yes, am a rather elderly . . .). You are not the only one, there are at least 2 more of us on this list that started in that era... short program to change

Re: [Tutor] Help with a Conversion

2017-01-05 Thread Alan Gauld via Tutor
On 05/01/17 13:29, S. P. Molnar wrote: > Fortran II using punched paper tape. Yes, am a rather elderly . . .). You are not the only one, there are at least 2 more of us on this list that started in that era... > short program to change frequency to wavelength for a plot of > ultraviolet