Re: [sympy] Easy way to use S()

2023-07-13 Thread Jonathan Gutow


On Jul 13, 2023, at 5:23 AM, emanuel.c...@gmail.com 
 wrote:


CAUTION: This email originated from outside of the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.



Le mercredi 12 juillet 2023 à 22:49:11 UTC+2, gu…@uwosh.edu a écrit :


Algebra_with_Sympy release 
v0.12.0 is now available. It now 
interprets numbers without decimals as sympy integers. This feature can be 
turned on and off.



Are you trying to reinvent Sage’s 
preparser
 ?

Not really. I have used Sage math in the past, maintained a local server that I 
used with students and even contributed code for 3D visualization when Sage was 
primarily using Jmol/JSmol for that. However, I found that Sage was less 
appropriate for use with my chemistry students and much more heavy-weight than 
a simple SymPy installation. Additionally, in my field instructors are sharing 
many notebooks based on SymPy that are only partially Sage compatible.

The features Algebra_with_SymPy layers on top of SymPy are those that the 
physical science community (physical chemistry in particular) have asked for. 
Most of the features do not involve the preparser and those that do and are 
similar to Sage’s features are only incidentally so. I have also been 
developing this with an eye towards it being useful for the Jupyter Physical 
Science Lab Project (https://jupyterphysscilab.github.io/Documentation/), which 
aims to be an electronic laboratory notebook which can support acquisition of 
analog data directly into the Jupyter notebooks along with symbolic math, 
numerical data analysis and textual notes, while being simple enough to use in 
introductory level college science courses. I also needed something that ran 
well on computers as low powered as the Raspberry Pi.

I have been trying to get approval to include the core feature of 
Algebra_with_Sympy (the Equation class) in SymPy, but the community has not 
reached a consensus on how some of the features should behave. See 
https://github.com/sympy/SymPEPs/pull/1/files.

Is there some feature overlap with Sage math? Yes. Do I wish to duplicate Sage 
math? No. For the use cases I primarily encounter I do not need the full power 
or complexity of Sage math, so I find the combination of Sympy + 
Algebra_with_Sympy is more appropriate. I like Sage and recommend it to people 
for more sophisticated uses than I have.

Jonathan
​

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/55716ce9-d4f1-433b-9e85-1b26294fb5ffn%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/AF91948E-32A5-4176-8F29-EE8ECB05DA23%40uwosh.edu.


Re: [sympy] Easy way to use S()

2023-07-13 Thread emanuel.c...@gmail.com


Le mercredi 12 juillet 2023 à 22:49:11 UTC+2, gu…@uwosh.edu a écrit :

Algebra_with_Sympy release v0.12.0 
 is now available. It now 
interprets numbers without decimals as sympy integers. This feature can be 
turned on and off.

Are you trying to reinvent Sage’s preparser 
 ?

On Saturday, July 8, 2023 at 11:39:45 PM UTC-5 gu...@uwosh.edu wrote:

David,

I hope this message is not a repeat. The one I wrote in reply seems to have 
been deleted.

So briefly:
1. Currently Algebra_with_Sympy does not interpret numbers without decimals 
as sympy integers, but I have got a working draft that does. I just need to 
finish updating the tests and documentation, before making a new release.
2. You can use Algebra_with_Sympy as a front-end for Sympy. You can ignore 
the `Equation` class and just do normal SymPy syntax. There are a some 
differences in what outputs look like. See the documentation about output 
formatting. 


Jonathan

On Saturday, July 8, 2023 at 5:39:46 AM UTC-4 da...@dbailey.co.uk wrote:

On 07/07/2023 23:23, gu...@uwosh.edu wrote: 
> David, 
> 
> I will work to get this into Algebra_with_Sympy quickly. I will post 
> when I complete the next release. 
> 
> Since these ease of use issues are not cleanly addressable within 
> SymPy proper, maybe you can think of Algebra_with_SymPy as your 
> interactive front-end for sympy. 
> 
I thought you wrote that you already wrapped integers in S() if the -i 
option was specified. Do you just mean that you would make -i the default? 

Can Algebra_with_SymPy operate as a frontend to SymPy in general? 

David 

​

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/55716ce9-d4f1-433b-9e85-1b26294fb5ffn%40googlegroups.com.