aboutsummaryrefslogtreecommitdiff
path: root/include/maths/format.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-12 00:39:59 +0200
committerhachem <im@hachem.wtf>2026-09-12 00:39:59 +0200
commit00d22403a3ddad8692252a7974d586f32cf745bf (patch)
treeeab7fbcbdf139a61f01125770744c87e2ac548d0 /include/maths/format.h
parent7e093e9726d7017943f5b9c45470a2acd9024d70 (diff)
feat: symbolic amplitude and probability formatting
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);