[sympy] symbol with double colon

2021-11-11 Thread Giorgino R
Hi all, I am using `parse_exr` to parse some strings as sympy symbols and then generate cxx code with `cxxcode`. When I use an expression with double colon, parse_expr is trying to split it. In contrast, if I define this expression with Sympy Symbol, I can create cxx code (see below). [image: ima

Re: [sympy] symbol with double colon

2021-11-11 Thread Oscar Gustafsson
This behavior is from the Python tokenizer. In [13]: input_code = StringIO('l_::p+3') In [14]: list(generate_tokens(input_code.readline)) Out[14]: [TokenInfo(type=1 (NAME), string='l_', start=(1, 0), end=(1, 2), line='l_::p+3'), TokenInfo(type=54 (OP), string=':', start=(1, 2), end=(1, 3), li

Re: [sympy] Re: Plotting

2021-11-11 Thread gu...@uwosh.edu
Both plotly and k3d support rendered LaTex for labels, text, etc. Some pages with very simple examples for Plotly: https://plotly.com/python/LaTeX/ K3D: https://k3d-jupyter.org/basic_functionality/Text.html Again, I would not argue that these packages easily generate publication quality graphics,

Re: [sympy] Re: Plotting

2021-11-11 Thread Alan Bromborsky
FYI attached is a figure I generated with Asymptote for a Foucault pendulum. On 11/11/21 7:58 AM, gu...@uwosh.edu wrote: Both plotly and k3d support rendered LaTex for labels, text, etc. Some pages with very simple examples for Plotly: https://plotly.com/python/LaTeX/ K3D: https://k3d-jupyter.o

Re: [sympy] Re: Plotting

2021-11-11 Thread Andreas Schuldei
Asymptote is capable of creating high-quality drawings, on par with what you would find in Springer books. I feel it produces superior results. Am Do., 11. Nov. 2021 um 14:02 Uhr schrieb Alan Bromborsky < abrombo...@gmail.com>: > FYI attached is a figure I generated with Asymptote for a Foucault

Re: [sympy] Re: Plotting

2021-11-11 Thread Alan Bromborsky
The wiki page explains what is different about the internal working of Asymptote - https://en.wikipedia.org/wiki/Asymptote_(vector_graphics_language) On 11/11/21 8:11 AM, Andreas Schuldei wrote: Asymptote is capable of creating high-quality drawings, on par with what you would find in Springer

Re: [sympy] symbol with double colon

2021-11-11 Thread Giorgino R
Hi Oscar, Many thanks for this, I see. I just went through the documentation and I found the transformations. I guess I will have to add this to the standard transformations (e.g. (merge_double_colon, ) + standard_transformations) so as to work. BW Giorgino On Thu, Nov 11, 2021 at 10:22 AM Osc