Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 06:37
    divyanshu132 commented #17476
  • 06:09
    sympy-bot updated the wiki
  • 06:09
    sympy-bot commented #17476
  • 06:08

    jksuom on master

    improve-pc-group-docstrings make-docstrings-raw update and 6 more (compare)

  • 06:08
    jksuom closed #17476
  • 06:08
    jksuom commented #17476
  • 06:02
    ShubhamKJha updated the wiki
  • 04:47
    codecov[bot] commented #17507
  • 03:37
    sympy-bot commented #17507
  • 03:37
    rflowers edited #17507
  • 03:33
    sympy-bot commented #17507
  • 03:33
    rflowers opened #17507
  • 02:44
    codecov[bot] commented #17419
  • 02:29
    codecov[bot] commented #17476
  • 02:29
    divyanshu132 synchronize #17476
  • 00:58
    codecov[bot] commented #17247
  • 00:37
    oscarbenjamin commented #17486
  • 00:26
    oscargus commented #17486
  • Aug 24 23:57
    oscargus commented #17486
Vishesh Mangla
@XtremeGood
watch this
image.png
I guess you forgot to put simplify in the codebase of this
Aaron Meurer
@asmeurer
it's possible you redefined h but didn't change it in the expressions
if you have h = symbols('h') and h = symbols('h', nonnegative=True) they will be unequal
so you can try rerunning the notebook
Vishesh Mangla
@XtremeGood
image.png
Vishesh Mangla
@XtremeGood
help me here plz
change that to k*h from h plz
Vishesh Mangla
@XtremeGood
strange behaviour
Vishesh Mangla
@XtremeGood
image.png
what is this just happening?
image.png
Vishesh Mangla
@XtremeGood
how to evaluate a piecewise function at a specific value
?
image.png
evaluate this matrix at x=1
Vishesh Mangla
@XtremeGood
how to use eval method in piecewise functions?
Vishesh Mangla
@XtremeGood
image.png
How to simplify this expression?
Also I want the expression in f1(t) g1(x,k) + f2(t) g2(x,k) etc.
How to do that
?
Aaron Meurer
@asmeurer
Not sure what you mean but try collect and trigsimp
Vishesh Mangla
@XtremeGood
actually I want a lambda like lambda t :e^t numpy array(for k in 0, N)
Aaron Meurer
@asmeurer
Use lambdify
Vishesh Mangla
@XtremeGood
lambdastr
that I am using
but does lambdastr works with matrices?
Aaron Meurer
@asmeurer
lambdify will go straight to a lambda. And it is more powerful than lambastr
I believe it does work with matrices
Vishesh Mangla
@XtremeGood
I have a matrix (N+1, 1) which had an integral which I solved with sympy
I solved the integral for general kth row
now its a function of k, t
but now I have to use that long expression in another program where I m using scipy not smpy so that symbolic computations long times can be removed
so I need to copy thatexpression
lambdify cant work this way
Vishesh Mangla
@XtremeGood
image.png
Can you plz help me complete that line?
Aaron Meurer
@asmeurer
FunctionMatrix requires a Lambda
Like FunctionMatrix(n, m, Lambda((i, j), i + j)), where n, m, i, j are all symbols
Vishesh Mangla
@XtremeGood
How to get following summation in sympy: sigma(phi(i) * alpha(i), (0, N))
?
phi(i) is symbol phi and subscript i
and phi is a function of x
Vishesh Mangla
@XtremeGood
image.png
something like tghis
this*
S.Y. Lee
@sylee957
@XtremeGood
I'm not very clear of the defintion of the phi and alpha from your example,
but if you need a pure symbolic representation, I think that you can just use Sum in your place of sigma and define phi and alpha as 2-variable functions taking i and x or i and t.