brettcvz / epicycles

A library for computing, graphing, and simulating epicycle paths in web pages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Euler's formula

shaobin opened this issue · comments

  1. After applying Euler's formula to

x(t) + iy(t) = \sum_i^N R_i(\cos(\omega_i t + \phi_i) + i\sin(\omega_i t + \phi_i))

I think it should be \sum_j^N R_je^{i(\omega_j t+ \phi_j)}.

In the index.html, it is

\sum_j^N R_je^{i\omega_j t+ \phi_j}

  1. For \omega_j = \frac{2 \pi i j}{N}, i think it should be: \omega_j = \frac{2 \pi j}{N}