Re: [sympy] dot multiplication with matrix of variables

2020-06-01 Thread Giuseppe G. A. Celano
Hi Oscar, Thanks for the answer. I was trying to find the values of w1, w2 from loss2 (starting with calculation of all partial derivatives). Are you suggesting not to work on the matrix in loss2? I know how the problem can be tackled through numerical differentiation (gradient descent), but I

[sympy] Re: Google Season Of Docs.

2020-06-01 Thread Priyanshu Shubham
Yeah, I have gone through it. -- 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 view this discussion on the web visit https://grou

Re: [sympy] Sympy Document

2020-06-01 Thread Aaron Meurer
Here is the pull request that added the style guide, with lots of discussion https://github.com/sympy/sympy/pull/17715. There was also some discussion that happened on the mailing list https://groups.google.com/d/msg/sympy/JvcbdzbMN4g/981wq8B-BwAJ. Aaron Meurer On Mon, Jun 1, 2020 at 3:49 PM Mohi

Re: [sympy] Is there an elegant solution to this?

2020-06-01 Thread Aaron Meurer
If you are using the Jupyter notebook you can run from sympy import init_session init_session(auto_int_to_Integer=True) This also works in IPython in the terminal, or you can use isympy -i. This will automatically wrap integer literals with Integer() so that 1/2 produces Integer(1)/Integer(2). J

Re: [sympy] Re: Simplification Not Removing Multiplication by 1.0

2020-06-01 Thread Aaron Meurer
There is some discussion about this behavior here and in linked issues https://github.com/sympy/sympy/issues/16378 (possibly other places as well, it's hard to search the issue tracker for this). Even so, it does seem reasonable to me that simplify(1.0*x) should return x, even if 1.0*x stays as it

[sympy] Is there an elegant solution to this?

2020-06-01 Thread David Bailey
Dear Group, It seems unfortunate that Python evaluates fractions such as 1/2 to 0.5, whereas SymPy recognises that in algebraic expressions fractions should rarely be evaluated to a decimal number. This means that if, for example, you input 3*x**2/2, you get a nice algebraic expression, but if

Re: [sympy] Sympy Document

2020-06-01 Thread Mohit Shah
Sorry, But I didn't get you. If we have to refer the older discussion, then can you provide link? On Tuesday, June 2, 2020 at 2:21:35 AM UTC+5:30, Aaron Meurer wrote: > > I believe the order of the sections in the style guide was decided as part > of last year's GSoD project, so before we make an

Re: [sympy] Sympy Document

2020-06-01 Thread Mohit Shah
Okay. But one thing I want to ask is where to put "error" and "return" section in the docstring? On Tuesday, June 2, 2020 at 2:21:35 AM UTC+5:30, Aaron Meurer wrote: > > I believe the order of the sections in the style guide was decided as part > of last year's GSoD project, so before we make an

Re: [sympy] Sympy Document

2020-06-01 Thread Aaron Meurer
I believe the order of the sections in the style guide was decided as part of last year's GSoD project, so before we make any changes we should reference those discussions. Aaron Meurer On Mon, Jun 1, 2020 at 2:34 PM Mohit Shah wrote: > Hello everyone, > In Sympy Documentation >

[sympy] Sympy Document

2020-06-01 Thread Mohit Shah
Hello everyone, In Sympy Documentation , There is a section named "DocString sections". I think there must be some changes. Like parameters must be before Examples section and after parameter section, we can add a section for returned

Re: [sympy] Re: Simplification Not Removing Multiplication by 1.0

2020-06-01 Thread Oscar Benjamin
On Mon, 1 Jun 2020 at 10:36, Garth Snyder wrote: > > I believe 1.0 is a floating-point value that's distinct from 1 and presumed > to be inexact. If you change the 1.0s and 2.0s to 1 and 2, they will be > dropped or cancelled appropriately. There is a function nsimplify which can do this for yo

[sympy] Re: Google Season Of Docs.

2020-06-01 Thread Mohit Shah
Hii Priyanshu Shubham, Have you gone through sympy documentation ? On Monday, June 1, 2020 at 3:06:47 PM UTC+5:30, Priyanshu Shubham wrote: > > Hi everyone, > > As a massive fan of Sympy, I would love to have the opportunity to work >

[sympy] Google Season Of Docs.

2020-06-01 Thread Priyanshu Shubham
Hi everyone, As a massive fan of Sympy, I would love to have the opportunity to work with the introductory materials at symp.org to make them more accessible for beginners. While the current materials at docs.sympy.org are focused and to-the-point, I think that significant room exists for makin

[sympy] Re: Simplification Not Removing Multiplication by 1.0

2020-06-01 Thread Garth Snyder
I believe 1.0 is a floating-point value that's distinct from 1 and presumed to be inexact. If you change the 1.0s and 2.0s to 1 and 2, they will be dropped or cancelled appropriately. It doesn't look like that will buy you much more simplification, unfortunately. -- You received this message b