Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

How to set output print precision of Sympy on Jupyter Notebook

$
0
0

Using set_global_settings I was able to print variables on jupyter-notebook using scientific notation:

import sympy as syfrom sympy.printing.str import StrPrinterStrPrinter.set_global_settings(min=1, max=1)a=sy.Matrix([189.001234])a

However, I still need to set precision:

enter image description here


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>