sympy / scipy-2023-tutorial

Tutorial materials for SciPy 2023
BSD 3-Clause "New" or "Revised" License
9 stars 4 forks source link

Solutions for simplification notebook #16

Closed asmeurer closed 1 year ago

asmeurer commented 1 year ago

@sylee957 do you have solutions for the simplification notebook? If so, I think you forgot to push it.

sylee957 commented 1 year ago

I didn't present every exercises with solutions though. Especially for those which are not difficult

asmeurer commented 1 year ago

We should do that.

By the way, I think the simplification notebook can be trimmed a bit. It's a little too long to fit into the time period. We can move the less important bits to the end so that we can show them if we have time. Some things like assumptions should be moved to the front so that we definitely get to them. Or we could even move assumptions into the intro notebook since they are really important.

asmeurer commented 1 year ago

I'm about to step on a plane. I will look at seeing if I can make a "solvers" notebook, and we can discuss what to do with it. Some of my later notebooks are somewhat short so we might have room to include it. Or we can trim something. Feel free to update the existing notebooks.

sylee957 commented 1 year ago

Anyway, why did you delete the exercise about printing and copy-pasteing the expression in LaTeX though (I think that it's quite common usage though.)

sylee957 commented 1 year ago

I'm doing the redux on the part

I've also moved some stuff like pattern matching, to the end of the section such that it is only going to be explained if there is enough time.

sylee957 commented 1 year ago

In fact, assumptions are the things I want to drop because it is quite complicated and shows ambiguous behavior (Trying to fiddle with assumption for how to make some simplify, solve, integral work wasn't good experience for using CAS)

If simplify is explained only with polynomials and trigonometry, it isn't needed anyway. Maybe it can be only needed before things like integral, but if I'd keep the easy and obvious things, I'd keep only polynomials and trigonometry.

sylee957 commented 1 year ago

I would only think of polynomial solve (solveset or roots) linear solve (linsolve or rref) Because they are the most commonly used solvers we get query of.

On Sun, Jul 9, 2023 at 7:33 PM Aaron Meurer @.***> wrote:

I'm about to step on a plane. I will look at seeing if I can make a "solvers" notebook, and we can discuss what to do with it. Some of my later notebooks are somewhat short so we might have room to include it. Or we can trim something. Feel free to update the existing notebooks.

— Reply to this email directly, view it on GitHub https://github.com/sympy/scipy-2023-tutorial/issues/16#issuecomment-1627882455, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIKTPTPZ2TII7H66EJLD5HTXPNEULANCNFSM6AAAAAA2D2CNGU . You are receiving this because you were mentioned.Message ID: @.***>

-- S.Y. Lee

asmeurer commented 1 year ago

Anyway, why did you delete the exercise about printing and copy-pasteing the expression in LaTeX though (I think that it's quite common usage though.)

I only meant to delete the codegen stuff, because that's shown in the later notebook. If I deleted some stuff about latex that was an accident.

asmeurer commented 1 year ago

Assumptions is one of the most important things to know about when using SymPy. So we definitely need to show it.

I pushed up a notebook for solvers. We can figure out tomorrow what to do with it.

sylee957 commented 1 year ago

I have added the solutions so far