Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:48
    oscargus commented on 26a65b7
  • 10:20
    namannimmo10 commented #22124
  • 09:29
    bjodah commented on 26a65b7
  • 09:24
    oscargus commented on 26a65b7
  • 09:15
    anutosh491 commented #22070
  • 09:12
  • 07:33
    oscargus labeled #22128
  • 07:33
    oscargus opened #22128
  • 06:06
    0sidharth updated the wiki
  • 04:10
    sympy-bot updated the wiki
  • 04:10
    sympy-bot commented #22114
  • 04:10
    sympy-bot commented #22114
  • 04:10

    smichr on master

    Added .det()-method to MatExpr Cleanups Merge branch 'master' into mateā€¦ and 1 more (compare)

  • 04:10
    smichr closed #22114
  • 03:23
    smichr commented #22114
  • 02:53
    smichr auto_merge_enabled #22114
  • 02:52
    smichr commented #22114
  • 02:51
    smichr synchronize #22114
  • 02:47
    namannimmo10 commented #22124
  • 02:47
    sympy-bot commented #22124
Bjorn
@bjodah
submitted #15130
Ashwin Shenoy
@Ultra-Instinct-05
Hello, everyone ! I was going through the workflow & came across the guidelines for writing commit messages. sympy/sympy@bf0e81e
Is it really necessary to write an example for the commit message ?
I understand the description is important.
Ashwin Shenoy
@Ultra-Instinct-05
Also, for the evolute of an ellipse, I can't see any test case added. Do the methods returning a sympy expression don't need a test case ?
Ayushman Koul
@ayushmankoul
Hello everyone.My name is Ayushman Koul and I am a 3rd year student studying Computer Engineering at GCET Jammu. I wish to participate in GSOC 2019 through Sympy and contribute to the community as much as I can.@hetp111 From my personal experience I would suggest you to take https://in.udacity.com/course/how-to-use-git-and-github--ud775-india course to have better understanding .
Ayushman Koul
@ayushmankoul
@asmeurer Sir I am interested in working on this project idea Please provide me the guidance how should I proceed further on this project.
Kalevi Suominen
@jksuom
@ayushmankoul It seems to me that the project idea text is outdated. Most of it has already been implemented in the factortools module except what is suggested in the last sentence: "You can go further and extend...". Algorithms for that part may not be easily available in the literature, if at all.
Ayushman Koul
@ayushmankoul
@jksuom Thank You sir for responding.When will be the GSoC ideas page be updated since some projects may have been completed during this year GSoC ?
Kalevi Suominen
@jksuom
The ideas page should be updated after some work has been done but it is often forgotten. That is voluntary work that could be done by anyone, there is no fixed timetable. If you are unsure about the status of a GSoC idea, it is probably best to ask questions here.
francesco
@cescor80_twitter
Hi, I'm trying to solve a nonlinear symbolic equation, but sympy-1.2 gets stuck (it has been running for half an hour now). The code is:
from sympy import
A,B,X,Y=symbols('A B X Y')
eq1=(B
X - 1/(BX))/(A + BX + 1/(BX)) + (-BY + 1/(BY))/(A + BY + 1/(BY))
eq2=(B
Y - 1/(BY))/(A + BY + 1/(BY)) + (-B/(XY) + XY/B)/(A + B/(XY) + X*Y/B)
nonlinsolve([Eq(eq1), Eq(eq2)], [X, Y])
Any idea?
Ethan Ward
@ethankward
@cescor80_twitter do you actually need a symbolic solution? nsolve seems to work very well here
Ethan Ward
@ethankward
(given specific values for A and B)
Ayushman Koul
@ayushmankoul
@jksuom Sure sir and Thank You for responding to my question.I was working on this sympy/sympy#15117 and struck into assertion error while enclosing every base in {} as asked by mentor.Can anyone please help me in figuring out this ?
Kalevi Suominen
@jksuom
I think that an extra pair of braces will do no harm in LaTeX. You could edit the asserted lines to conform to the new output (by adding { and } in suitable places).
Ayushman Koul
@ayushmankoul
I will give it another try if I face any issue will let you know.Thank You sir @jksuom
V Gladkova
@valglad
Got a strange error in this build. In Python 2.7 and 3.6 insympy/printing/tests/test_theanocode.py[27] the error is
"""
/home/travis/miniconda/envs/test-environment/lib/python3.6/site-packages/theano/gof/opt.py:251: UserWarning: WARNING: Supervisor is not added. Please build a FunctionGraphvia theano.compile.function_module.std_graph()or add the Supervisor class manually.
sub_prof = optimizer.optimize(fgraph)
"""
Is this just a Travis thing?
Bjorn
@bjodah
I think the warning is real and it indicates that the Theano-code generated by SymPy is not optimal (or even correct?). Maybe worth making an issue for it (then again, Theano is no longer actively developed).
V Gladkova
@valglad
I'll open an issue then
Aaron Meurer
@asmeurer
See also sympy/sympy#14747 abut the theano thing
Sudarshan Kamath
@sudz123
Hi, I wanted to know is it necessary to run the entire ./bin/test everytime one makes a change to a particular module? I had made a few changes to test_ode.py in solvers and when I ran the test only on test_ode.py I got no error, however the complete test fails.
Kalevi Suominen
@jksuom
A change in a single module may affect tests in another module. It may sometimes be hard to discover those errors.
Sudarshan Kamath
@sudz123
All right, I'll keep that in mind, thanks
Ayushman Koul
@ayushmankoul

Hello @asmeurer @jksuom Sir I tried to debug the def _print_Symbol(self, expr): and def _deal_with_super_sub(self, string): methods in printing/latex.py file which could be the possible reasons of not enclosing symbol_latex variable in {} which is causing the assertion error as I indicated in my sympy/sympy#15117 unfortnately I am not able to fix this error.Apart from it I tried to alter the value of variable Psi_symbol to match the symbol_latex with indexed_latex but failed to do so.The following code is raising the assertion error

   def test_latex_indexed():
    Psi_symbol = Symbol('Psi_0', complex=True, real=False)
    Psi_indexed = IndexedBase(Symbol('Psi', complex=True, real=False))
    symbol_latex = latex(Psi_symbol * conjugate(Psi_symbol))
    indexed_latex = latex(Psi_indexed[0] * conjugate(Psi_indexed[0]))

Please help me to fix this issue.

Kalevi Suominen
@jksuom
I would replace the single assert symbol_latex.split() == ... with two separate lines assert symbol_latex == ... and assert indexed_latex == ... where the right hand sides are the results of the twolatexcalls.
Ayushman Koul
@ayushmankoul
Thank You @jksuom for helping me in solving this error.It has successfully passed all the test cases.Should I submit a new PR for it now or do I need to write new test for it ?
Kalevi Suominen
@jksuom
There is no need for a new PR. Only edit the code and the test.
Ayushman Koul
@ayushmankoul
I have created a new sympy/sympy#15151 for this issue and have altered the code to include very base in {}.Thank You @jksuom and @asmeurer for helping me in this.
Sudarshan Kamath
@sudz123
Hi, I have been continuously trying the ./bin/test and everytime it fails in the test_compilation.py and test_pickling.py. Also after the tests a new file is created called wrapper_module_20.pyx. I am running sympy on a MAC OS X with Python 3.6.3. My local repo is in sync with the upstream master. Should I file an Issure regarding this or can someone please help me out here? I can provide more details regarding the error if necessary.
Ayushman Koul
@ayushmankoul
Hello @sudz123 even I encountered this issue that a new file is created called wrapper_module_20.py while trying .bin/test to test modules.I am running sympy on Windows 10 and python 2.7.15.I would suggest lets wait for the response from @jksuom @asmeurer
Sudarshan Kamath
@sudz123
Oh, I thought this was just an error in my system. Sure, thanks @ayushmankoul
Robert Dougherty-Bliss
@rwbogl
Does anyone know if sympy's @cacheit decorator can be meaningfully used for an iterative function? Specifically I'm trying to avoid rolling my own cache for a recursive sequence class.
Kalevi Suominen
@jksuom
@cacheit is used for recursive functions like Basic._subs.
@sudz123 @rwbogl It seems that the errors are related to cython. They do not appear if cython has not been installed.
Sudarshan Kamath
@sudz123
@jksuom Is it safe to unistall cython? Does sympy require cython in anyway? I guess cython comes bundled in with Anaconda so it was pre-installed in my system.
Kalevi Suominen
@jksuom
SymPy does not use cython. (I have not installed it.)
Robert Dougherty-Bliss
@rwbogl
@jksuom It looks like Basic._subs calls itself. I want to use @cacheit for something that computes previous values of the function without calling itself. Am I misunderstanding the use there?
Kalevi Suominen
@jksuom
I wanted to point out that the decorator seems to work also with recursive functions. I'm not sure what you mean by an iterative function but I see no reason why it would not work with such.
Robert Dougherty-Bliss
@rwbogl
By iterative I mean that the function does not call itself in the body, and computes previous values in a loop. An example is this method to compute the Fibonacci numbers. For this example, computing the 1001th Fibonacci number computes the first 1000 terms. I'm worried that the @cacheit decorator would not save those terms.
Kalevi Suominen
@jksuom
I think that it saves the return value.
If intermediate values are to be cached, the function should call itself recursively.
Robert Dougherty-Bliss
@rwbogl
I figured that would be the prescription. Is that preferred over writing it non-recursively and implementing a local cache?
S.Y. Lee
@sylee957
Hello, My travis test for #15125 had failed because of timeout. Can anyone help me about this? @jksuom @asmeurer
Sudarshan Kamath
@sudz123
Hi @jksuom , I uninstalled cython and ran the tests. test_compilation.py test passes now but test_pickling.py still fails. Plus now two files are getting created wrapper_module_20.pyx and wrapper_module_8.pyx. It would be great if you can help me with this.
S.Y. Lee
@sylee957
@sudz123 I think that your issue can be related to #15116 if your log yields similar result
Sidhant Nagpal
@sidhantnagpal
@rwbogl It might be worthwhile to consider @recurrence_memo. See usage for Tribonacci numbers.
retsyo
@retsyo
hello. I want to know, do I use lambdify right? Thanks
curveR_center = Matrix([0.25 * u, 0.25 * sp.cos(u), 0])
lenCurve = integrate(diff(curveR_center, u, 1).norm(), (u, a, b))
lambdaLen = sp.lambdify((a, b), lenCurve, ['numpy'])

print(lambdaLen(0, 1))

print(lambdaLen(0, np.arange(0, 1, 0.1)))
Sudarshan Kamath
@sudz123
@sylee957 Yup its the same issue, I guess. So if I am making edits to some other code and the test fails just for test_pickling.py can I submit a PR, ignoring the message? Or should I wait for the issue to be fixed?