Hacker News new | past | comments | ask | show | jobs | submit login

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: