Re: Mathematical Operations on Array

2011-04-01 Thread Terry Reedy
On 4/1/2011 9:35 AM, bryan.fodn...@gmail.com wrote: Can anyone tell me what I am doing wrong? Posting the same question twice is a bad idea, as it splits answers and may lead to duplication. I answered your first post without seeing Peter's response to you second post, which is further down

Re: Mathematical Operations on Array

2011-04-01 Thread Terry Reedy
On 4/1/2011 8:56 AM, Fodness, Bryan C - GS wrote: I am loading text into an array and would like to convert the values. from math import * from numpy import * from pylab import * data=loadtxt('raw.dat') mincos=degrees(acos(data[:,0])) minazi=degrees(data[:,1]) minthick=data[:,2]/0.006858 I am no

Re: Mathematical Operations on Array

2011-04-01 Thread bryan.fodn...@gmail.com
On Apr 1, 9:52 am, Peter Otten <__pete...@web.de> wrote: > bryan.fodn...@gmail.com wrote: > > I am loading text into an array and would like to convert the values. > > > from math import * > > from numpy import * > > from pylab import * > > > data=loadtxt('raw.dat') > > mincos=degrees(acos(data[:,0

Re: Mathematical Operations on Array

2011-04-01 Thread Peter Otten
bryan.fodn...@gmail.com wrote: > I am loading text into an array and would like to convert the values. > > from math import * > from numpy import * > from pylab import * > > data=loadtxt('raw.dat') > mincos=degrees(acos(data[:,0])) > minazi=degrees(data[:,1]) > minthick=data[:,2]/0.006858 > > I

Mathematical Operations on Array

2011-04-01 Thread bryan.fodn...@gmail.com
I am loading text into an array and would like to convert the values. from math import * from numpy import * from pylab import * data=loadtxt('raw.dat') mincos=degrees(acos(data[:,0])) minazi=degrees(data[:,1]) minthick=data[:,2]/0.006858 I am not sure why degrees() works, but acos() does not.

Mathematical Operations on Array

2011-04-01 Thread Fodness, Bryan C - GS
I am loading text into an array and would like to convert the values. from math import * from numpy import * from pylab import * data=loadtxt('raw.dat') mincos=degrees(acos(data[:,0])) minazi=degrees(data[:,1]) minthick=data[:,2]/0.006858 I am not sure why degrees() works, but acos() does not.