optimization for domain coloring q-series sorts of things

Let’s say you’re interested in plotting a domain colored q-series — for the moment, let that just be a modified theta function, looking something like:

g(z,q) = \sum_{n=0}^{infty} A(q,n)B(z,n)

If you’re plotting this with fixed q on the z\in\mathbb{C}, $A(q,n)$ is not a function of $z$. Therefore it makes sense to precompute $A(q,n)$ so that one doesn’t increase the runtime unduly.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s