top | item 41743749

(no title)

lainga | 1 year ago

what does the

     # insert your code to print out some C code
mean?

discuss

order

sfpotter|1 year 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.