I'm not sure of your exact use case, but maybe what I do when rounding 
numbers to match their errors will give you some ideas. 
https://github.com/gutow/round_using_error. In this case I end up 
determining the power of ten for the scientific notation using log base 10.

Jonathan

On Monday, February 7, 2022 at 4:55:47 AM UTC-6 Rajeev wrote:

> Dear group,
>
> What would be the best way to get numbers in the form 10^{...} while
> using pretty print or latex? The following hack works -
>
> ten = symbols("10", positive=True)
> eps, mu = 4*pi*ten**(-11), ten**(-5)
>
> but is messing up pretty print when used with sympy.vector objects.
> Couldn't find anything on this in the mail archives.
>
> Best wishes,
> Rajeev
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/64c23a71-7773-42f1-b4a6-92e230849508n%40googlegroups.com.

Reply via email to