# Questions tagged [complex-numbers]

This challenge involves the manipulation of complex numbers, including parsing and printing them as well as performing complex arithmetic. This tag also encompasses generalised complex numbers like quaternions.

8 questions
Filter by
Sorted by
Tagged with
4k views

### Too Fast, Too Fourier: FFT Code Golf

Implement the Fast Fourier Transform in the fewest possible characters. Rules: Shortest solution wins It can be assumed that the input is a 1D array whose length is a power of two. You may use the ...
1k views

### Solve a 2x2 Eigensystem

For those with a little linear algebra background, the challenge is as simple as this: determine the eigenvalues and eigenvectors of a given complex 2x2 matrix. You may skip ahead to The Challenge for ...
738 views

Challenge: Write the smallest program (in characters) that resolves quadratic equations i.e. ax² + bx + c = 0 Rules: Given 3 numbers in R comma-delimited on ...
4k views

Gaussian integers are complex numbers of the form a+bi where a and b are both integers. In ...
5k views

### Draw a graph of $y=(-n)^x$

Challenge Given an input of an integer, $n$ (where $0<n<50$), output the graph of $y=\mathrm{Re}((-n)^x)$ from $x = -3$ to $x = 3$ inclusive. Where $\mathrm{Re}(p)$ is the real ...
5k views

### Find i^n, given n

The Challenge In as few characters as possible, find the value of $i^n$, given $n$, a positive integer greater than 0. This should be outputted as a String. For those that don't know, $i$ is ...