Re: [sympy] Autowrap test fail (OSX)
Leonor, I have a patch here: https://github.com/sympy/sympy/pull/8848 Feel free to test on your machine. Jason moorepants.info +01 530-601-9791 On Mon, Jan 19, 2015 at 9:30 AM, Jason Moore moorepa...@gmail.com wrote: Issue opened here: https://github.com/sympy/sympy/issues/8847 We can move the discussion there. Jason moorepants.info +01 530-601-9791 On Mon, Jan 19, 2015 at 9:07 AM, Jason Moore moorepa...@gmail.com wrote: Leo, The autowrap tests should only fire if you have numpy installed. So I'm guessing that you do. But it doesn't seem to find the numpy header files. You'll need Cython too. Do you have all the dependencies installed for the autowrap module? We haven't had any testing of this on Mac or Windows, so any help with this bug will be appreciated. Jason moorepants.info +01 530-601-9791 On Thu, Jan 15, 2015 at 1:03 AM, Leonor Garcia leonor.garcia.gutier...@gmail.com wrote: Hi everyone, I am interested in contributing to sympy, so I forked and cloned the repo, but when I run the tests four of them (test_autowrap.py) failed. My tests results: https://gist.github.com/leogargu/773e1715e991c055c01d I found this discussion from a couple of months back: https://groups.google.com/forum/#!msg/sympy/Z2Nl_cljPYs/z7eX5Fj5pOEJ Any advice would be very welcome! Cheers, Leo. -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/978b5f3b-b619-4c0c-b058-835b391faea9%40googlegroups.com https://groups.google.com/d/msgid/sympy/978b5f3b-b619-4c0c-b058-835b391faea9%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAP7f1AgnLgBkaAJhd7frL7hAYAiE%2BonYCJMWP%3DdC8uSqR8769A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [sympy] Re: Unable to solve 2*x*cos(2*x) + sin(2*x)
Am 19.01.2015 um 22:28 schrieb Amit Saha: I'm assuming that SymPy does not even attempt to identify unsolvable problems. If that is indeed true, unsolvable is a proper subset of not implemented, at least from SymPy's perspective, and SymPy does not distinguish between the two. I am not sure if I would say unsolveable is a proper subset of not implemented. It is. Determining the set of unsolveable problems is itself an unsolveable problem. Full disclosure: It is logically impossible to write an algorithm that can take arbitrary problem descriptions of whatever formalism you choose, and always determine whether that problem is solvable. Any correct algorithm will run into an endless loop for an at least countably infinite subset of the set of possible problems. And there is no algorithm for determining that subset (that would allow constructing an algorithm that would work for all cases, which is a contradiction for the result that there's no such algorithm). Proof essentially based on Goedel's incompleteness theorem, so this applies to all logic systems and algorithms that can handle countable infinities. (Computer scientists call this the halting problem.) -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/54BD7CD5.209%40durchholz.org. For more options, visit https://groups.google.com/d/optout.
[sympy] Re: Some Lie-Algebra Routines
On Friday, January 16, 2015 at 11:49:13 AM UTC+1, danle...@gmail.com wrote: I've put it on github: https://github.com/warpfel/PyLie I had a quick look at your code. I saw that LieStructureConstantTable takes only the dimension as a parameter. I suppose you fill the structure constant table by hand after the construction. Objects in SymPy usually are fully defined by the arguments passed to the constructors. Just consider that some functions, such as *simplify( )*, may re-instantiate your object, so any data you add after its creation gets lost. Furthermore, objects should also be immutable. Consider a SymPy object becoming part of an expression, while on some other part of the code the same object gets modified. This would alter all expressions containing references to that object. Modifying an object after it has been constructed is usually considered a bug in SymPy. -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/7d6ce214-070c-4df2-b6b7-3c80bb0fdac6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Issue 4138 in sympy: Fourrier transform of exponential and Closed Integrals
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 4138 by geoffrey...@gmail.com: Fourrier transform of exponential and Closed Integrals https://code.google.com/p/sympy/issues/detail?id=4138 Hi, when i do: gaussian = E** (- abs(x)) /2 fourier_transform(gaussian, x, k) I get: 1/(4*pi**2 * k**2 + 1) which is what I expected. However, when I try to find the Fourier transform from the actual Fourier equation: expr = E**(-2*pi*I*k*x) * E** (- abs(x)) /2 exp.expand().integrate(x) it returns: 'Integral(exp(-I*k*x)*exp(-Abs(x))/2, x)' Which is right but I would expect sympy to have found the simplified from: 1/(4*pi**2 * k**2 + 1) Is it me who don't use sympy properly? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings -- You received this message because you are subscribed to the Google Groups sympy-issues group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy-issues+unsubscr...@googlegroups.com. To post to this group, send email to sympy-issues@googlegroups.com. Visit this group at http://groups.google.com/group/sympy-issues. For more options, visit https://groups.google.com/d/optout.
[sympy] introduction
i am Mintoo Kumar, 2nd year computer engineering student in NSIT ,delhi. i am new to open source.i am familiar with python. i want to contribute to sympy and i am also planning to take part in GSOC'15. How and where to start ?Any guidance will be appreciated. Mintoo Kumar, NSIT delhi -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/ea44b4e2-2c57-4f84-9ebb-2135fc2adf0c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[sympy] Autowrap test fail (OSX)
Hi everyone, I am interested in contributing to sympy, so I forked and cloned the repo, but when I run the tests four of them (test_autowrap.py) failed. My tests results: https://gist.github.com/leogargu/773e1715e991c055c01d I found this discussion from a couple of months back: https://groups.google.com/forum/#!msg/sympy/Z2Nl_cljPYs/z7eX5Fj5pOEJ Any advice would be very welcome! Cheers, Leo. -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/978b5f3b-b619-4c0c-b058-835b391faea9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[sympy] Re: Some Lie-Algebra Routines
Concerning a Lie algebra defined by the structure constants: keep in mind this is a way often used in Physics, which is not very rigorous. Structure constants define an equivalence class of bases in a Lie algebra. For example, consider a Lie algebra with two generators: *A, B*. If you define *X = 2*A - 3*B, Y = A + B*, then *X *and *Y* are still generators, but will have generally different structure constants. -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/f1d66989-e987-4b46-85ea-8eb8d6b86cf4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[sympy] Re: Some Lie-Algebra Routines
As a first suggestion, if you want to create a SymPy object, I would suggest to inherit from sympy.core.basic.Basic, something like this: class YourClass(Basic): # constructor: def __new__(cls, arg1, arg2, ... ): obj = Basic.__new__(cls, arg1, arg2, ... ) return obj @property def arg1(self): return self.args[0] @property def arg2(self): return self.args[1] An alternative would be to put *obj._arg1 = arg1* in the constructor, the *return self._arg1* in the properties. In this way, some functions such as __eq__ and __hash__ will be automatically defined, __eq__ will compare the constructor arguments, and it's probably going to be more efficient, as SymPy's core uses hashes. On Friday, January 16, 2015 at 11:49:13 AM UTC+1, danle...@gmail.com wrote: I've put it on github: https://github.com/warpfel/PyLie Am Donnerstag, 15. Januar 2015 19:25:16 UTC+1 schrieb Francesco Bonazzi: OK that's nice. I think you had better post your code on github, it offers some advantages, such as commenting code on the lines. -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/9ba3b03d-5198-4318-a1ab-0c10bfaf45bf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [sympy] introduction
Mintoo, This is the best starting point for contributing: https://github.com/sympy/sympy/wiki/introduction-to-contributing. Jason moorepants.info +01 530-601-9791 On Mon, Jan 19, 2015 at 6:02 AM, mintoo kumar mintoo...@gmail.com wrote: i am Mintoo Kumar, 2nd year computer engineering student in NSIT ,delhi. i am new to open source.i am familiar with python. i want to contribute to sympy and i am also planning to take part in GSOC'15. How and where to start ?Any guidance will be appreciated. Mintoo Kumar, NSIT delhi -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/ea44b4e2-2c57-4f84-9ebb-2135fc2adf0c%40googlegroups.com https://groups.google.com/d/msgid/sympy/ea44b4e2-2c57-4f84-9ebb-2135fc2adf0c%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAP7f1Ai-_87xY22ehAWKiDp_oghwp3nkZFr3cA4TjJHJ3jZAaA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [sympy] Autowrap test fail (OSX)
Leo, The autowrap tests should only fire if you have numpy installed. So I'm guessing that you do. But it doesn't seem to find the numpy header files. You'll need Cython too. Do you have all the dependencies installed for the autowrap module? We haven't had any testing of this on Mac or Windows, so any help with this bug will be appreciated. Jason moorepants.info +01 530-601-9791 On Thu, Jan 15, 2015 at 1:03 AM, Leonor Garcia leonor.garcia.gutier...@gmail.com wrote: Hi everyone, I am interested in contributing to sympy, so I forked and cloned the repo, but when I run the tests four of them (test_autowrap.py) failed. My tests results: https://gist.github.com/leogargu/773e1715e991c055c01d I found this discussion from a couple of months back: https://groups.google.com/forum/#!msg/sympy/Z2Nl_cljPYs/z7eX5Fj5pOEJ Any advice would be very welcome! Cheers, Leo. -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/978b5f3b-b619-4c0c-b058-835b391faea9%40googlegroups.com https://groups.google.com/d/msgid/sympy/978b5f3b-b619-4c0c-b058-835b391faea9%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAP7f1Ahycx_kCa4q0q%3DvnpgGo_Jn%2BLQdmFJ0WyO-p87ZLfxXmg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [sympy] Autowrap test fail (OSX)
Issue opened here: https://github.com/sympy/sympy/issues/8847 We can move the discussion there. Jason moorepants.info +01 530-601-9791 On Mon, Jan 19, 2015 at 9:07 AM, Jason Moore moorepa...@gmail.com wrote: Leo, The autowrap tests should only fire if you have numpy installed. So I'm guessing that you do. But it doesn't seem to find the numpy header files. You'll need Cython too. Do you have all the dependencies installed for the autowrap module? We haven't had any testing of this on Mac or Windows, so any help with this bug will be appreciated. Jason moorepants.info +01 530-601-9791 On Thu, Jan 15, 2015 at 1:03 AM, Leonor Garcia leonor.garcia.gutier...@gmail.com wrote: Hi everyone, I am interested in contributing to sympy, so I forked and cloned the repo, but when I run the tests four of them (test_autowrap.py) failed. My tests results: https://gist.github.com/leogargu/773e1715e991c055c01d I found this discussion from a couple of months back: https://groups.google.com/forum/#!msg/sympy/Z2Nl_cljPYs/z7eX5Fj5pOEJ Any advice would be very welcome! Cheers, Leo. -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/978b5f3b-b619-4c0c-b058-835b391faea9%40googlegroups.com https://groups.google.com/d/msgid/sympy/978b5f3b-b619-4c0c-b058-835b391faea9%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAP7f1AgaQK6akS_S%2BxdBSbf-vFiUbyKU0skevpVQ9khLu%2Bvepw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [sympy] Re: Unable to solve 2*x*cos(2*x) + sin(2*x)
On Thu, Jan 15, 2015 at 2:42 AM, Aaron Meurer asmeu...@gmail.com wrote: On Wed, Jan 14, 2015 at 3:28 AM, Joachim Durchholz j...@durchholz.org wrote: Am 13.01.2015 um 23:53 schrieb Aaron Meurer: Returning [] instead of raising NotImplementedError would probably not be a bad idea either That would be confusable with a we know that there is no solution (1) result. In this case, we have a we do not know what solutions exit (2) result, which should be represented in a clearly distinguishable fashion (both on the console output and to other code). An exception should be a the software has failed result (3). SymPy currently does not distinguish between (2) and (3) and reports everything as a failure. No, SymPy cannot distinguish (1) and (2). If the software failed you should get an exception that isn't NotImplementedError. I am of the same opinion too. The first impression that I get when I see NotImplementedError is that, it is not currently implemented and thus is probably a limitation of SymPy and not that it is perhaps not just possible to get the solution/answer. -- http://echorand.me -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CANODV3n_mLXxBL9s7wEYgd428sYL2dvbB-7Jpb7ALawLu30nPg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [sympy] Re: Unable to solve 2*x*cos(2*x) + sin(2*x)
Am 19.01.2015 um 22:14 schrieb Amit Saha: I am of the same opinion too. The first impression that I get when I see NotImplementedError is that, it is not currently implemented and thus is probably a limitation of SymPy and not that it is perhaps not just possible to get the solution/answer. Well, do we give a different error message for those problems that are unsolvable? Otherwise, the unsolvable ones are going to always give you NotImplementedError. I'm assuming that SymPy does not even attempt to identify unsolvable problems. If that is indeed true, unsolvable is a proper subset of not implemented, at least from SymPy's perspective, and SymPy does not distinguish between the two. -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/54BD7634.7000801%40durchholz.org. For more options, visit https://groups.google.com/d/optout.
Re: [sympy] Re: Unable to solve 2*x*cos(2*x) + sin(2*x)
On Tue, Jan 20, 2015 at 7:25 AM, Joachim Durchholz j...@durchholz.org wrote: Am 19.01.2015 um 22:14 schrieb Amit Saha: I am of the same opinion too. The first impression that I get when I see NotImplementedError is that, it is not currently implemented and thus is probably a limitation of SymPy and not that it is perhaps not just possible to get the solution/answer. Well, do we give a different error message for those problems that are unsolvable? Otherwise, the unsolvable ones are going to always give you NotImplementedError. Yes. I liked your idea of having a NoResult exception class. I'm assuming that SymPy does not even attempt to identify unsolvable problems. If that is indeed true, unsolvable is a proper subset of not implemented, at least from SymPy's perspective, and SymPy does not distinguish between the two. I am not sure if I would say unsolveable is a proper subset of not implemented. The former I think is: mathematically, there is no solution. The latter: SymPy cannot do this currently. -- http://echorand.me -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CANODV3%3DGUkTiSUh-Uoeag2H6F0hf4tiq%3DvgCMbq-C8-eS6k4BA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.