3 ms·
For instance, maybe I want to define an array of these coefficients in C. I could do: print('double coef[] = {') for c in p.coef: print(f'
by sfpotter 2y ago
For instance, maybe I want to define an array of these coefficients in C.
I could do:
print('double coef[] = {')
for c in p.coef:
print(f' {c:0.16g},')
print('};')
and copy-paste it wherever I need.