Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #35926 > unrolled thread
| Started by | Usama Khan <usamazohad@gmail.com> |
|---|---|
| First post | 2013-01-01 15:01 -0800 |
| Last post | 2013-01-01 16:42 -0800 |
| Articles | 15 — 5 participants |
Back to article view | Back to comp.lang.python
numpy has got newtonsmethod? Usama Khan <usamazohad@gmail.com> - 2013-01-01 15:01 -0800
Re: numpy has got newtonsmethod? Chris Angelico <rosuav@gmail.com> - 2013-01-02 10:10 +1100
Re: numpy has got newtonsmethod? Usama Khan <usamazohad@gmail.com> - 2013-01-01 16:34 -0800
Re: numpy has got newtonsmethod? alex23 <wuwei23@gmail.com> - 2013-01-01 16:46 -0800
Re: numpy has got newtonsmethod? Usama Khan <usamazohad@gmail.com> - 2013-01-01 17:00 -0800
Re: numpy has got newtonsmethod? Chris Angelico <rosuav@gmail.com> - 2013-01-02 15:10 +1100
Re: numpy has got newtonsmethod? Usama Khan <usamazohad@gmail.com> - 2013-01-01 16:34 -0800
Re: numpy has got newtonsmethod? Vlastimil Brom <vlastimil.brom@gmail.com> - 2013-01-02 00:56 +0100
Re: numpy has got newtonsmethod? Usama Khan <usamazohad@gmail.com> - 2013-01-01 16:28 -0800
Re: numpy has got newtonsmethod? alex23 <wuwei23@gmail.com> - 2013-01-01 16:43 -0800
Re: numpy has got newtonsmethod? Vlastimil Brom <vlastimil.brom@gmail.com> - 2013-01-02 02:09 +0100
Re: numpy has got newtonsmethod? Usama Khan <usamazohad@gmail.com> - 2013-01-01 16:28 -0800
Re: numpy has got newtonsmethod? Usama Khan <usamazohad@gmail.com> - 2013-01-01 16:42 -0800
Re: numpy has got newtonsmethod? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-01-02 02:04 +0000
Re: numpy has got newtonsmethod? Usama Khan <usamazohad@gmail.com> - 2013-01-01 16:42 -0800
| From | Usama Khan <usamazohad@gmail.com> |
|---|---|
| Date | 2013-01-01 15:01 -0800 |
| Subject | numpy has got newtonsmethod? |
| Message-ID | <a1c300dc-b593-499f-b619-8931173f552a@googlegroups.com> |
my question is can we import newtonsmethod from nympy or sciPy?
[toc] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-01-02 10:10 +1100 |
| Message-ID | <mailman.1537.1357081851.29569.python-list@python.org> |
| In reply to | #35926 |
On Wed, Jan 2, 2013 at 10:01 AM, Usama Khan <usamazohad@gmail.com> wrote: > my question is can we import newtonsmethod from nympy or sciPy? http://www.catb.org/esr/faqs/smart-questions.html#classic ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Usama Khan <usamazohad@gmail.com> |
|---|---|
| Date | 2013-01-01 16:34 -0800 |
| Message-ID | <450b8b01-71e3-44fd-a9a9-2e349a1b4c80@googlegroups.com> |
| In reply to | #35929 |
yeah i have read it sir CrisA. .:) thanks . .:) i wish i could make u watch my google search list of last two days nd idm downlaodng list of last two days. .text me ur email id. .i can show u my efforts. . :)
[toc] | [prev] | [next] | [standalone]
| From | alex23 <wuwei23@gmail.com> |
|---|---|
| Date | 2013-01-01 16:46 -0800 |
| Message-ID | <f44b22af-20f0-4fa1-836b-b30d1fab58d3@p7g2000pbz.googlegroups.com> |
| In reply to | #35942 |
On Jan 2, 10:34 am, Usama Khan <usamazo...@gmail.com> wrote: > i wish i could make u watch my google search list of last two days nd idm downlaodng list of last two days. .text me ur email id. .i can show u my efforts. . > :) I'm guessing it would show you flailing around and _not_ typing "numpy newton's method", because that's all it took to bring up the direct link to the scipy documentation on importing & using it (first link), as well as full code samples of variants implemented directly in numpy.
[toc] | [prev] | [next] | [standalone]
| From | Usama Khan <usamazohad@gmail.com> |
|---|---|
| Date | 2013-01-01 17:00 -0800 |
| Message-ID | <46fc0a2b-059f-4fca-97bd-3700bbc78b1c@googlegroups.com> |
| In reply to | #35947 |
k thanks :)
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-01-02 15:10 +1100 |
| Message-ID | <mailman.1547.1357099841.29569.python-list@python.org> |
| In reply to | #35942 |
On Wed, Jan 2, 2013 at 11:34 AM, Usama Khan <usamazohad@gmail.com> wrote: > yeah i have read it sir CrisA. .:) > > thanks . .:) > > i wish i could make u watch my google search list of last two days nd idm downlaodng list of last two days. .text me ur email id. .i can show u my efforts. . > :) Well, my "email id" (I presume you mean "email address") is perfectly visible in the headers of all my posts to this list/newsgroup. But that doesn't give you the right to email me a list of everything you've searched for, downloaded, etc. Plus, it wouldn't help your case; your posts carry no indication that you have learned from your web searches, so it doesn't matter what you've done. Your posts also bear no suggestion that you have read esr's excellent article on asking questions, which is why I reiterated it. So don't show me your efforts. Show me that you've learned from them. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Usama Khan <usamazohad@gmail.com> |
|---|---|
| Date | 2013-01-01 16:34 -0800 |
| Message-ID | <mailman.1544.1357086899.29569.python-list@python.org> |
| In reply to | #35929 |
yeah i have read it sir CrisA. .:) thanks . .:) i wish i could make u watch my google search list of last two days nd idm downlaodng list of last two days. .text me ur email id. .i can show u my efforts. . :)
[toc] | [prev] | [next] | [standalone]
| From | Vlastimil Brom <vlastimil.brom@gmail.com> |
|---|---|
| Date | 2013-01-02 00:56 +0100 |
| Message-ID | <mailman.1538.1357084614.29569.python-list@python.org> |
| In reply to | #35926 |
2013/1/2 Usama Khan <usamazohad@gmail.com>: > my question is can we import newtonsmethod from nympy or sciPy? > -- > http://mail.python.org/mailman/listinfo/python-list Hi, After successfully installing SciPy http://www.scipy.org/Download you should be able to import the respective modules and use this functionality such as http://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.newton.html you may also consider mpmath http://code.google.com/p/mpmath/ http://mpmath.googlecode.com/svn/trunk/doc/build/calculus/optimization.html SymPy http://sympy.org or maybe some OpenOpt software http://openopt.org or other related libraries/frameworks available in python. I am not at all competent to decide about the suitability for your originally posted problem, but I guess, you may be able to find it out based on your requirements and the features supported by these libraries. hth, vbr
[toc] | [prev] | [next] | [standalone]
| From | Usama Khan <usamazohad@gmail.com> |
|---|---|
| Date | 2013-01-01 16:28 -0800 |
| Message-ID | <c72534a5-038c-4fa0-b2ea-661ab9ae67c7@googlegroups.com> |
| In reply to | #35934 |
thanks. . but how to instal scipy. because its in .rar form. .i have extracted the files to the place where python2.7 is installed. . but everytime i write import sciPy. .it give me error. . nd regarding ur question. . its a long story telling u why i have just ask this breif question. . anyways thanks . .waiing for ur reply. . i just want to iterate my complex equation. . how can i import newtonsmethod from numpy as numpy is successfully insalled. .:)
[toc] | [prev] | [next] | [standalone]
| From | alex23 <wuwei23@gmail.com> |
|---|---|
| Date | 2013-01-01 16:43 -0800 |
| Message-ID | <3c83efd4-16b5-4092-89fd-89194c801f74@pu9g2000pbc.googlegroups.com> |
| In reply to | #35940 |
On Jan 2, 10:28 am, Usama Khan <usamazo...@gmail.com> wrote: > but how to instal scipy. because its in .rar form. .i have extracted > the files to the place where python2.7 is installed. . but everytime > i write import sciPy. .it give me error. . If you want help, you have to remember we can't magically detect your development environment. Of course, you could always just read http://www.scipy.org/Installing_SciPy and report back with explicit information on _what didn't work_. > i just want to iterate my complex equation. . > how can i import newtonsmethod from numpy as numpy is successfully > insalled. .:) Repeating the question because you're not listening to the answers given is growing tedious. Vlastimil provided you with a _direct link_ to the relevant documentation: http://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.newton.html If you can't import from scipy, then _fix that problem first_, because that's what you need to be able to do the rest.
[toc] | [prev] | [next] | [standalone]
| From | Vlastimil Brom <vlastimil.brom@gmail.com> |
|---|---|
| Date | 2013-01-02 02:09 +0100 |
| Message-ID | <mailman.1546.1357089003.29569.python-list@python.org> |
| In reply to | #35940 |
2013/1/2 Usama Khan <usamazohad@gmail.com>: > thanks. . > > but how to instal scipy. because its in .rar form. .i have extracted the files to the place where python2.7 is installed. . but everytime i write import sciPy. .it give me error. . > nd regarding ur question. . > > its a long story telling u why i have just ask this breif question. . anyways thanks . .waiing for ur reply. . > > i just want to iterate my complex equation. . > > how can i import newtonsmethod from numpy as numpy is successfully insalled. .:) > -- > http://mail.python.org/mailman/listinfo/python-list I assume (based on the traceback you posted), that you are using windows; in that case you can use the appropriate ready made installers for SciPy, instead of the source files; see.: http://sourceforge.net/projects/scipy/files/scipy/0.11.0/ e.g.: scipy-0.11.0-win32-superpack-python2.7.exe hth, vbr
[toc] | [prev] | [next] | [standalone]
| From | Usama Khan <usamazohad@gmail.com> |
|---|---|
| Date | 2013-01-01 16:28 -0800 |
| Message-ID | <mailman.1543.1357086545.29569.python-list@python.org> |
| In reply to | #35934 |
thanks. . but how to instal scipy. because its in .rar form. .i have extracted the files to the place where python2.7 is installed. . but everytime i write import sciPy. .it give me error. . nd regarding ur question. . its a long story telling u why i have just ask this breif question. . anyways thanks . .waiing for ur reply. . i just want to iterate my complex equation. . how can i import newtonsmethod from numpy as numpy is successfully insalled. .:)
[toc] | [prev] | [next] | [standalone]
| From | Usama Khan <usamazohad@gmail.com> |
|---|---|
| Date | 2013-01-01 16:42 -0800 |
| Message-ID | <109b80a1-8c8d-4db9-93aa-2f7d8f8fcec8@googlegroups.com> |
| In reply to | #35941 |
Traceback (most recent call last):
File "C:/Python27/12.py", line 4, in <module>
import scipy # also has log
File "C:/Python27\scipy\__init__.py", line 114, in <module>
raise ImportError(msg)
ImportError: Error importing scipy: you cannot import scipy while
being in scipy source directory; please exit the scipy source
tree first, and relaunch your python intepreter.
>>>
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-01-02 02:04 +0000 |
| Message-ID | <50e395a8$0$30003$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #35944 |
On Tue, 01 Jan 2013 16:42:13 -0800, Usama Khan wrote: > Traceback (most recent call last): > File "C:/Python27/12.py", line 4, in <module> > import scipy # also has log > File "C:/Python27\scipy\__init__.py", line 114, in <module> > raise ImportError(msg) > ImportError: Error importing scipy: you cannot import scipy while > being in scipy source directory; please exit the scipy source > tree first, and relaunch your python intepreter. Please read the error message. It tells you exactly what you need to do. You cannot import scipy while being in scipy source directory; please exit the scipy source tree first, and relaunch your python interpreter. Do you understand what a source directory is? It is a directory (a folder) with the source code in it. Leave the scipy directory, and re- start Python, then try importing scipy. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Usama Khan <usamazohad@gmail.com> |
|---|---|
| Date | 2013-01-01 16:42 -0800 |
| Message-ID | <mailman.1545.1357087344.29569.python-list@python.org> |
| In reply to | #35941 |
Traceback (most recent call last):
File "C:/Python27/12.py", line 4, in <module>
import scipy # also has log
File "C:/Python27\scipy\__init__.py", line 114, in <module>
raise ImportError(msg)
ImportError: Error importing scipy: you cannot import scipy while
being in scipy source directory; please exit the scipy source
tree first, and relaunch your python intepreter.
>>>
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web