[Numpy-discussion] Python function for line intersection??

2013-10-08 Thread Happyman
Hello, I am having trouble with solving line intersection problem. I would solve it using standard functions which may already exist in Python library. Let me explain it below: I have sets of lines A(x,y) and B(x,y) and one map as a matrix form, also with its resolution dx, dy which can be cha

Re: [Numpy-discussion] ValueError: matrices are not aligned!!!

2013-09-18 Thread Happyman
u sure this is what you want to be doing? > >-Brad > >On Wed, Sep 18, 2013 at 11:11 AM, Happyman < bahtiyor_zohi...@mail.ru > wrote: >> Hello, >> >> I am trying to solve linear Ax=b problem, but some error occurs in the >> process like: >> --

[Numpy-discussion] ValueError: matrices are not aligned!!!

2013-09-18 Thread Happyman
Hello, I am trying to solve linear Ax=b problem, but some error occurs in the process like:  -- Traceback (most recent call last): File "C:\Python27\Conjugate_Gradient.py", line 66, in x, iter_number = conjGrad(Av,A, x, b) File "C:\Python27\Conjugate_

Re: [Numpy-discussion] Error occurance on Skimage 0.9.0 version

2013-09-05 Thread Happyman
Kieffer : >On Thu, 05 Sep 2013 17:35:16 +0400 >Happyman < bahtiyor_zohi...@mail.ru > wrote: > >> Hello, >> >> I downloaded skimage 0.9.0dev version and installed like following on >> Windows; >> cd C:\skimage\python setup.py install. >> >>

[Numpy-discussion] Error occurance on Skimage 0.9.0 version

2013-09-05 Thread Happyman
Hello, I downloaded skimage 0.9.0dev version and installed like following on Windows; cd C:\skimage\python setup.py install. One error occurred: Unable to find vcvarsall.bat . It is not the first time I have been taken such an error. What is the best way to avoid this problem??? Any answers wi

Re: [Numpy-discussion] Finding the same value in List

2013-04-17 Thread Happyman
okay Todd, I got it. There are some reasons why I preferred asking that question. Let me explain: I am using Excel data which contains 3 columns and say 12 rows to process some simple data. What I want to do with the code you provided is that In the first column A has data that indicates the sa

Re: [Numpy-discussion] Finding the same value in List

2013-04-17 Thread Happyman
ore than 1D array.. ?? Среда, 17 апреля 2013, 11:53 +02:00 от Sebastian Berg : >On Wed, 2013-04-17 at 13:32 +0400, Happyman wrote: >> Hi Todd, >> Greaaat thanks for your help.. By the way, the first one (I think) is >> much simpler.. I tested it and ,of course, it is 1D, but

Re: [Numpy-discussion] Finding the same value in List

2013-04-17 Thread Happyman
Hi Todd, Greaaat thanks for your help.. By the way, the first one (I think) is much simpler.. I tested it and ,of course, it is 1D, but it is also a good idea to consider it for Ndimensional. I prefer the first one! Do you you think first version is okay to use?  Среда, 17 апреля 2013, 11:02 +

[Numpy-discussion] Finding the same value in List

2013-04-17 Thread Happyman
Hello, I have had encountered some problem while I was trying to create the following code which finds number of the same values  and indexes in an array or list. Here is the code: y = [ 1, 12,  3,  3,  5,  1,  1, 34, 0, 0,  1,  5] OR  y = array( [ 1, 12,  3,  3,  5,  1,  1, 34, 0, 0,  1,  5 ]

[Numpy-discussion] Impossible to draw a direction of arrows in Python???

2013-04-12 Thread Happyman
Hi, I have encountered some problem while I was drawing a direction of arrow. I have point (x,y) coordinates and angle of them. What I want to do is that to draw arrow according to the given angle (just to show the point direction as an arrow in each point coordinate). Here, we should assume co

Re: [Numpy-discussion] Sources more confusing in Python

2013-04-08 Thread Happyman
Thanks a lot, friends! I got it. By the way I used this one: http://www.python-excel.org/ .  I guess this link provides the similar module like shown in https://pypi.python.org/pypi. Воскресенье, 7 апреля 2013, 17:06 +02:00 от Daπid : >On 7 April 2013 16:53, Happyman < bahtiyo

Re: [Numpy-discussion] Sources more confusing in Python

2013-04-07 Thread Happyman
my knowledge >the largest centralized source of Python packages. That's where easy_install >and pip typically fetch them so that you can install from the command line >without manual download. > >-=- Olivier > > >2013/4/7 Happyman < bahtiyor_zohi...@mail.ru > &g

[Numpy-discussion] Sources more confusing in Python

2013-04-07 Thread Happyman
Hello, I started using python 4-5 months ago. At that time I didn't realize there are incredibly many resource like modules, additional programs (ready one) in python. The problem is to which one I can get all I want "properly". I mean where (exact place) I can download standard modules withou

Re: [Numpy-discussion] 3D array problem challenging in Python

2013-01-02 Thread Happyman
Hi Chris, Thanks a lot. I did as you advised..but, unfortunately, I could not "negotiate" with "quad" function at all. what do you think if quad function can get arrays or not? Вторник, 1 января 2013, 19:53 -08:00 от Chris Barker - NOAA Federal : >On Sun, Dec 30, 20

Re: [Numpy-discussion] 3D array problem challenging in Python

2012-12-30 Thread Happyman
e]                     return array(val) F3 - what I really tried to get more efficient result, unfortunately, it took about one month for it!!! nothing was got!  I really need help, I am stuck Воскресенье, 30 декабря 2012, 16:35 -08:00 от Chris Barker - NOAA Federal : >On Sun, Dec 30, 2

Re: [Numpy-discussion] 3D array problem in Python

2012-12-30 Thread Happyman
Actually These two functions namely F1 and F2 are really exponential and Bessel functions respectively. But I can not change its analytic form.. I mean is there way to get more quickly the result? Let's say above mentioned two functions, both of them, one function but the dimension I showed sho

[Numpy-discussion] 3D array problem in Python

2012-12-30 Thread Happyman
Hello I have 3 dimensional array  which I want  to calculate in a huge process. Everything is working well if I use ordinary way which is unsuitable in Python like the following: nums=32 rows=120 cols=150 for k in range(0,nums):           for i in range(0,rows):                      for j in

Re: [Numpy-discussion] NaN (Not a Number) occurs in calculation of complex number for Bessel functions

2012-12-21 Thread Happyman
Thanks But I could find for Win64 bit windows Second question: Did you mean that I have to put lens limits of those number???   Пятница, 21 декабря 2012, 15:45 UTC от Pauli Virtanen : >Hi, > >Your code tries to to evaluate > >z = 1263309.3633394379 + 101064.74910119522j >jv(536, z)

Re: [Numpy-discussion] NaN (Not a Number) occurs in calculation of complex number for Bessel functions

2012-12-21 Thread Happyman
I think you advised about the code which is the same appearance. == Problem is not here Sir I will give you exactly what I was talking about. I have ready codes already(It would be kind of you if you checked the following

Re: [Numpy-discussion] NaN (Not a Number) occurs in calculation of complex number for Bessel functions

2012-12-21 Thread Happyman
m for Bessel functions.. I think the code that I showed like an example is not working in Python. What to do ??? Пятница, 21 декабря 2012, 13:17 от Pauli Virtanen : >Happyman mail.ru> writes: >> Thanks Pauli But I have already very shortly built  for bessel >> function, but the

Re: [Numpy-discussion] NaN (Not a Number) occurs in calculation of complex number for Bessel functions

2012-12-21 Thread Happyman
: >Happyman mail.ru> writes: >[clip] >> IF I GIVE ( it is necessary value for my program ): >> a , b = sph_jn ( 536 , 2513.2741228718346 + 201.0619298974676j ) > >The implementation of the spherical Bessel functions is through >this Fortran code: > >https://github.com/s

[Numpy-discussion] NaN (Not a Number) occurs in calculation of complex number for Bessel functions

2012-12-21 Thread Happyman
DEAR PYTHON USERS DO MATHEMATICAL FUNCTIONS HAVE LIMITATION IN PYTHON in comparison with other programming languages I have two mathematical functions: from scipy.special import sph_jn,  sph_jnyn 1)  sph_jn (n, z) ---> n is float, z is complex number for example:  a,b=sph_jn ( 2.0 , 5+0

Re: [Numpy-discussion] === RuntimeWarning: INVALID VALUE > encountered in divide ====

2012-12-20 Thread Happyman
rn a,b     Четверг, 20 декабря 2012, 20:33 от Dag Sverre Seljebotn : >On 12/20/2012 07:32 PM, Happyman wrote: >> Hi Python users, >> >> First of all, Marry coming Cristmas!!! ALL THE BEST TO YOU AND YOUR FAMILY >> >> I need solution of integration under trapz()

[Numpy-discussion] === I REALLY NEED YOUR HELP OUR PYTHON USERS ====

2012-12-20 Thread Happyman
 Hi Python users,  First of all, Marry coming Cristmas!!! ALL THE BEST TO YOU AND YOUR FAMILY I need solution of integration under trapz() rule: There are following functions:   def  F1 (const1, x):       """several calculations depending on bessel functions(mathematical functions) jn(), yv()