I am creating a logging function and you need to create a string for the values of an array of arrays at some intermediate points (both for printing and for saving to a file). I used the following to save arrays Ai
, Bi
, α
and βi
:
resString = """ A₀ = $A0 A₁ = $A1 B₀ = $B0 B₁ = $B1 α = $α β₁ = $β1 β₂ = $β2 β₃ = $β3 β₄ = $β4 """
but interpolation does not give you full accuracy, and I need to save arrays with full accuracy. Is there an easy way to change this so that all lines display the full values of the numbers?
source share