David,
I want to make sure I understand the behavior you would prefer, because I think I can implement it in algebra-with-sympy. The package already does some pre-parsing, so I think I could handle it there.
Here is what I think you are asking for:1. Any number that is not in scientific notation and does not contain a decimal point would be considered an integer and be converted to S().2. All other numerical values would be treated as they normally are.
Yes, that describes what I want completely!
I wonder if you should ban exponential notation completely from
your tool except for a final step in which real numbers might be
substituted into an expression?
I mean 3e4 looks very confusing in an algebraic expression, and
if you permit implicit multiplication as in hand algebra it is
ambiguous. Anyway performing algebra with expressions containing
real numbers is decidedly dangerous.
Davis
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6LXNmwPMEc8Kaixa0dxrd3bV8R%3DHJQxXqSz43w3aXu8nQ%40mail.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 Jul 13, 2023, at 5:23 AM, emanuel.c...@gmail.com <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 ?
--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/55716ce9-d4f1-433b-9e85-1b26294fb5ffn%40googlegroups.com.