Skip to content

Instantly share code, notes, and snippets.

@yichao0319
yichao0319 / Cubic-solver.cpp
Created April 28, 2012 20:19 — forked from spinachgui/Cubic-solver.cpp
C: gaussian elimination
//Phaw! This certainly needs cleaning up, but it does work.
#include <complex>
#include <iostream>
#include <cmath>
using namespace std;
typedef long double R;
typedef complex<double> cplex;