Skip to content

Instantly share code, notes, and snippets.

@Garmelon
Last active September 20, 2019 23:01
Show Gist options
  • Save Garmelon/ba7e3db966c9e1bd0888a785d5619403 to your computer and use it in GitHub Desktop.
Save Garmelon/ba7e3db966c9e1bd0888a785d5619403 to your computer and use it in GitHub Desktop.
Fourier coefficients of a bunny's outline. c(0) was omitted because it isn't really useful in this case.
Calculate bunny like so:
f(t) = \sum_{n=1}^{\infty} \left( c(n) e^{i n t} + c(-n) e^{- i n t} \right)
{n, c(n), c(-n)}
{1, 85.2475 - 169.755 I, 28.0975 - 9.90891 I}
{2, 6.29048 - 2.67816 I, -0.746606 + 22.7351 I}
{3, -26.7847 - 11.3627 I, -6.43327 - 2.05265 I}
{4, 4.23445 + 7.35356 I, 10.1179 + 4.58626 I}
{5, -6.41438 - 7.65797 I, -6.39548 - 11.585 I}
{6, -7.0104 - 0.501367 I, -3.28289 - 4.8017 I}
{7, 3.08922 - 5.13676 I, -3.74974 + 1.53154 I}
{8, -0.453539 + 2.56509 I, 0.515423 - 0.218664 I}
{9, 4.09616 - 1.63866 I, 2.04363 + 2.54231 I}
{10, 1.8358 - 0.0352775 I, -1.24205 + 1.25581 I}
{11, -1.77488 - 1.88612 I, -0.0204569 + 0.132281 I}
{12, -0.900155 - 1.45937 I, -1.23151 + 1.87659 I}
{13, 1.26982 - 1.13845 I, 0.735437 + 0.432481 I}
{14, 1.53614 + 2.65634 I, 1.82122 + 0.14809 I}
{15, -0.0590662 + 2.54852 I, 0.456964 + 0.380578 I}
{16, 0.178586 + 0.274527 I, -0.501127 + 0.115815 I}
{17, 0.97291 + 0.380186 I, 0.133959 + 0.607787 I}
{18, 0.81211 - 0.522509 I, -0.363155 - 0.272544 I}
{19, 0.302013 + 0.0619884 I, 0.128296 - 1.25841 I}
{20, -0.260949 + 0.539958 I, -0.482115 - 0.222893 I}
{21, -0.704376 + 0.656069 I, -0.211878 - 0.395382 I}
{22, -0.423988 + 0.576656 I, 0.172211 + 0.336927 I}
{23, -0.39477 - 0.206992 I, 0.0362597 + 0.0206711 I}
{24, -0.0781627 - 0.0537124 I, -0.137989 + 0.0210419 I}
{25, -0.661464 - 0.617456 I, 0.0634742 - 0.168588 I}
{26, -0.0592555 - 0.368205 I, -0.349547 - 0.150058 I}
{27, -0.326805 - 0.350731 I, 0.184368 + 0.0528138 I}
{28, 0.495326 + 0.0679272 I, -0.0233725 + 0.410168 I}
{29, 0.0680284 + 0.0649965 I, -0.129911 + 0.0985719 I}
{30, 0.4576 + 0.0980186 I, -0.154471 + 0.522017 I}
{31, 0.106138 - 0.0434151 I, -0.0468121 + 0.170762 I}
{32, -0.148049 - 0.0033822 I, 0.432004 - 0.0738248 I}
{33, -0.343375 - 0.33393 I, 0.242783 - 0.354024 I}
{34, -0.0303293 - 0.131732 I, 0.161933 - 0.104536 I}
{35, 0.18767 + 0.0120266 I, 0.176125 - 0.236622 I}
{36, 0.147165 + 0.381613 I, -0.102331 + 0.147789 I}
{37, 0.132007 + 0.0642485 I, -0.190214 - 0.187834 I}
{38, 0.00807491 + 0.268176 I, -0.173018 + 0.164995 I}
{39, -0.0685708 - 0.0694744 I, -0.176318 - 0.0743328 I}
{40, -0.00388236 + 0.0983646 I, 0.0221989 + 0.0566007 I}
{41, 0.0531449 - 0.0559499 I, -0.0473602 + 0.0867898 I}
{42, 0.0390023 + 0.159514 I, 0.00920637 + 0.00598142 I}
{43, 0.010115 - 0.110969 I, -0.15776 + 0.0181169 I}
{44, 0.0697881 - 0.0517774 I, -0.0926117 + 0.0436683 I}
{45, 0.0546347 - 0.104983 I, -0.0411954 - 0.00116896 I}
{46, -0.100492 - 0.0338038 I, 0.230453 + 0.011461 I}
{47, -0.0347155 - 0.0583715 I, 0.00305284 - 0.0475897 I}
{48, -0.0884316 + 0.00775112 I, 0.19428 + 0.101699 I}
{49, 0.0657616 + 0.0378569 I, 0.0270274 + 0.0674629 I}
{50, -0.0876084 + 0.076547 I, 0.0607779 - 0.0450592 I}
{51, 0.069876 + 0.0322083 I, -0.069957 - 0.0111471 I}
{52, -0.0603989 + 0.115861 I, -0.0681182 + 0.00635475 I}
{53, 0.0428181 + 0.0470528 I, 0.0209307 - 0.00248965 I}
{54, -0.0843552 + 0.0618705 I, -0.0100212 + 0.040338 I}
{55, 0.0235301 - 0.00792816 I, 0.000429357 + 0.0327711 I}
{56, -0.0726603 - 0.0368282 I, 0.029726 - 0.047902 I}
{57, -0.00605902 - 0.0636622 I, -0.0465977 - 0.0152063 I}
{58, 0.0115299 - 0.0767094 I, -0.00112684 - 0.0982241 I}
{59, 0.0162752 + 0.0318345 I, 0.0117756 + 0.0414348 I}
{60, -0.0555519 + 0.0254211 I, 0.0222928 + 0.000454578 I}
{61, -0.00346581 + 0.015842 I, -0.00790805 + 0.10305 I}
{62, -0.0222929 - 0.0284147 I, 0.0648519 + 0.105288 I}
{63, 0.0170928 + 0.0230199 I, 0.0509634 - 0.00417228 I}
{64, -0.0440566 - 0.0297074 I, 0.0679653 - 0.0506842 I}
{65, 0.0121907 - 0.00144394 I, -0.0320846 - 0.062846 I}
{66, 0.0290692 - 0.0179139 I, 0.0222842 - 0.0282423 I}
{67, 0.0378397 - 0.0144648 I, -0.00399739 - 0.0258211 I}
{68, 0.0392638 - 0.00429798 I, -0.0770897 - 0.0239116 I}
{69, 0.0385847 - 0.0123213 I, -0.0381714 + 0.022352 I}
{70, -0.0288881 + 0.0166848 I, -0.0309008 - 0.0146716 I}
{71, -0.0414347 - 0.00633078 I, 0.030566 - 0.00882302 I}
{72, -0.0561305 + 0.00170528 I, 0.043029 - 0.0164247 I}
{73, -0.0331068 + 0.0117618 I, 0.0213585 + 0.0216733 I}
{74, -0.0080823 - 0.0175089 I, 0.0117849 - 0.018424 I}
{75, 0.0338617 - 0.0259644 I, -0.0530081 + 0.0528609 I}
{76, 0.0346128 + 0.0132682 I, -0.00898925 + 0.012472 I}
{77, 0.0143801 + 0.0190102 I, 0.00571154 + 0.0140062 I}
{78, -0.0369895 + 0.0282503 I, 0.0110854 - 0.018543 I}
{79, 0.0272309 + 0.0106978 I, 0.0240316 + 0.00670845 I}
{80, 0.00118647 + 0.0157233 I, 0.0349429 + 0.0157016 I}
{81, 0.0278833 + 0.0212898 I, 0.0118967 - 0.0227586 I}
{82, -0.0138734 - 0.0107946 I, -0.0291153 - 0.0185355 I}
{83, -0.0142227 - 0.0186926 I, -0.0129767 - 0.00919691 I}
{84, -0.0358874 - 0.0316001 I, 0.0124097 - 0.0284927 I}
{85, -0.0204177 - 0.0223543 I, 0.0340035 - 0.0100258 I}
{86, -0.0180767 + 0.000169789 I, -0.0115451 - 0.0132382 I}
{87, -0.00245068 + 0.0175203 I, 0.00563791 + 0.0131584 I}
{88, -0.0109097 - 0.0157339 I, -0.0380964 - 0.00202377 I}
{89, 0.015295 - 0.0110314 I, -0.0355733 + 0.0167516 I}
{90, 0.0190382 - 0.0373303 I, 0.000991661 + 0.0154251 I}
{91, 0.00437046 + 0.0147598 I, 0.0032611 - 0.00078483 I}
{92, 0.00199969 - 0.0116037 I, 0.00106275 - 0.00652369 I}
{93, -0.00119654 - 0.00299178 I, 0.0148835 + 0.0293733 I}
{94, 0.00296739 + 0.000748323 I, 0.0285035 + 0.00340845 I}
{95, 0.0161738 - 0.0181035 I, 0.0261972 - 0.0346475 I}
{96, 0.008492 - 0.0119481 I, -0.0128652 - 0.0332972 I}
{97, 0.0124455 + 0.00760944 I, 0.0220648 - 0.02989 I}
{98, 0.000271822 - 0.00018106 I, 0.00281618 + 0.0036666 I}
{99, -0.0158586 + 0.0230683 I, 0.0169616 - 0.0129618 I}
{100, -0.000169686 + 0.00935834 I, -0.018746 + 0.0149582 I}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment