-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add solve_output to explanations #23902
Conversation
✅ Hi, I am the SymPy bot (v167). I'm here to help you write a release notes entry. Please read the guide on how to write release notes. Your release notes are in good order. Here is what the release notes will look like: This will be added to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.12. Click here to see the pull request description that was parsed.
Update The release notes on the wiki have been updated. |
Benchmark results from GitHub Actions Lower numbers are good, higher numbers are bad. A ratio less than 1 Significantly changed benchmark results (PR vs master) Significantly changed benchmark results (master vs previous release) before after ratio
[8ce582b4] [f0154339]
- 3.78±0.2ms 1.64±0.2ms 0.43 solve.TimeSparseSystem.time_linear_eq_to_matrix(20)
- 7.19±0.2ms 2.40±0.2ms 0.33 solve.TimeSparseSystem.time_linear_eq_to_matrix(30)
Full benchmark results can be found as artifacts in GitHub Actions |
This guide should be referenced in the solve docstring. It should probably also link to and be linked from the other solving guides. |
@bertiewooster @asmeurer can you review this docs guide? |
I am updating the @oscarbenjamin , please have a read through I don't know how to create a link to another document -- the wiki for documentation tells how to link to objects, not documents (that I could find). I will leave cross referencing to those more adept at this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a helpful summary of the many output formats of solve
. Big-picture suggestions are
- Make the six numbered sections appear in Furo table of contents for the page (right navbar) for easy navigation. I think that would require e.g. h2 headings for the six sections. For practical reasons, that also means each section header would fairly short.
- I'm wondering whether it's (more) helpful to users to list the input types, then tell them what the output format will be. Or maybe do both: keep it organized by the six output types, and have a list (or table?) of inputs and what their output format would be?
For 1) above, a possible format is e.g.
1. An empty list (or set)
Indicates that no solution was found.
For 2) above, format could be
No solution was found
An empty list (or set)
Thanks for the comments, @bertiewooster . I have made edits. If you have any formatting suggestions, feel free to make a PR to this. Any other comments welcome, too. |
1febefe
to
f20152a
Compare
Any final comments? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the six output types into headings so they appear in the page's table of contents (right navbar).
One implication I didn't consider was that those headings appear as sub-bullets on the Explanations main page because that table of contents (.. toctree::
) has :maxdepth: 2
. My inclination is to limit to :maxdepth: 1
so that only the pages, not also their contents (headings in the page), will be on the Explanations main page, because
- it's now 2+ screens tall of my laptop, and
- a visitor could easily get bogged down in a long, nested list and give up on finding relevant content
I also set :maxdepth: 1
for the Guides main page for the same reason.
Any last comments? |
Minor suggestion: Rephrase page title to "Solve Output Varieties" (or "Solve Output Variations"?) so that someone scanning the table of contents on the Explanations page encounters the key word "solve" first. I believe this is also important for visitors using screen readers: if the start of the link text isn't what they're interested in, they may direct their screen reader to jump to the next link. |
I will stop tests and squash to a single commit then auto-merge if there is no objection. |
Well...now the document is not showing up in the index. |
It seems like the file you added, |
The cited line contains I believe the problem is that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestions for the solve() docstring
🟠Hi, I am the SymPy bot (v167). I've noticed that some of your commits add or delete files. Since this is sometimes done unintentionally, I wanted to alert you about it. This is an experimental feature of SymPy Bot. If you have any feedback on it, please comment at sympy/sympy-bot#75. The following commits add new files:
If these files were added/deleted on purpose, you can ignore this message. |
@bertiewooster , you suggested ":func: |
@bertiewooster , it wouldn't let me add your changes to a single commit, so I will squash those this evening and commit unless there are further comments. Note, that the |
As it happens, SymPy's documentation has this exact example (the backticks may not appear correctly below, so recommend you copy from that page): ``:obj:`~sympy.core.basic.Basic.subs``` where |
18c6d66
to
065a5e9
Compare
Co-authored-by: Jeremy Monat <[email protected]>
References to other Issues or PRs
Brief description of what is fixed or changed
Other comments
Release Notes