Re: [sympy] Re: Expressing exponents as fractions (not decimals)

2023-10-27 Thread Fritz Sonnichsen
OK--thank you to both of you for the advice. I think Jonathan's method is inclined towards interactive use but allows global settings. Chris's method works for my inline code methods (but wish they had global variables there!). Much appreciated Fritz On Fri, Oct 27, 2023 at 1:58 PM Chris Smith wr

[sympy] Expressing exponents as fractions (not decimals)

2023-10-26 Thread Fritz Sonnichsen
In this simple string below, the result is a decimal. I have fooled a lot with the documentation but cannot see how to get my output as fractions instead of decimals. (In fact I thought a CAS would default to this). What is the simplest way to stop the 1-1/4 rendering to 1.25 (e.g. I want 5/4 h