Formatting Examples With New Printer Module
See original GitHub issueI am working through all the examples with the new python 3 printer module. When I finish I will send them to you. I see the collect
problem you mentioned in several examples (I am using sympy 1.4). Here is the custom collect
I wrote to solve the problem -
def Collect(A, exp_lst):
(coefs,bases) = linear_expand(A)
C = S(0)
for x in exp_lst:
if x in bases:
i = bases.index(x)
C += coefs[i]*x
return C
I placed it in metric.py just after linear_expand.
I have replaced the collect
call in ga.py but not in mv.py yet. Are there examples where calling collect
is a problem in mv.py that I can use to test. I am only using your galgebra for coding now. Would the best thing for me to do is just put a link to your github site in my github site and tell everone that your is the supported version of galgebra.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Formatting and Wrapping Text · OCaml Tutorials
The Format module of Caml Light and OCaml's standard libraries provides pretty-printing facilities to get a fancy display for printing routines.
Read more >pprint — Data pretty printer — Python 3.11.1 documentation
The pprint module provides a capability to “pretty-print” arbitrary Python data structures in a form which can be used as input to the...
Read more >Using the Format module - The Caml language - Inria
The Format module of Caml Light and OCaml's standard libraries provides pretty-printing facilities to get a fancy display for printing routines.
Read more >Prettify Your Data Structures With Pretty Print in Python
The pprint module, Python's data pretty printer, is a useful part of the standard library. You can work with it for debugging data...
Read more >Format
This module implements a pretty-printing facility to format text within ... Defining new pretty-printers permits the output of material in parallel on ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have forked your distribution to my github account and clone it to my test bed computer (I have a lot of computers at least 5). I will make changes to the version on my test bed and push the changes to the fork on my github account. The procedures are starting to come back to me.
A side question. Apart from speed what is better about Julia versus Python?
The merge is tracked by #39 and the
collect
issue is fixed in #48