aboutsummaryrefslogtreecommitdiff
path: root/include/maths/format.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/maths/format.h')
-rw-r--r--include/maths/format.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/maths/format.h b/include/maths/format.h
new file mode 100644
index 0000000..65c1680
--- /dev/null
+++ b/include/maths/format.h
@@ -0,0 +1,8 @@
+#pragma once
+
+#include <stddef.h>
+
+#include "maths/complex.h"
+
+char *psi_format_amplitude(struct PsiComplex c, char *out, size_t cap);
+char *psi_format_probability(double p, char *out, size_t cap);