summaryrefslogtreecommitdiff
path: root/series.mac
diff options
context:
space:
mode:
authorThomas Guillermo Albers Raviola <thomas@thomaslabs.org>2026-08-03 15:34:44 +0200
committerThomas Guillermo Albers Raviola <thomas@thomaslabs.org>2026-08-03 15:34:44 +0200
commit5349d508b7daacb6622a3ce3ec9caf6c1fc2e1fc (patch)
tree1319361a92e6c64303526fa0a4d2ddab2d391670 /series.mac
parent57600fabc25a6079f0488c15a08b2ea26ab74e8c (diff)
Add Phi_expr_val
Diffstat (limited to 'series.mac')
-rw-r--r--series.mac6
1 files changed, 6 insertions, 0 deletions
diff --git a/series.mac b/series.mac
index 7e44e9b..6ee8655 100644
--- a/series.mac
+++ b/series.mac
@@ -167,6 +167,12 @@ mul_series(factors, max_order) := block(
γ_expr_val(x, n) := horner_exp_series(x*rhs(main_ansatz[1]), r, n, -n, 2);
+Φ_expr_val(x, n) := block(
+ if x < 0 then (
+ exp(x*Φc[0])*horner_exp_series(abs(x)*(Φc[0]-rhs(main_ansatz[5])), r, n, -n, 2))
+ else (
+ exp(x*Φc[0])*horner_exp_series(x*(rhs(main_ansatz[5])-Φc[0]), r, n, -n, 2)));
+
matchdeclare(m_any1, lambda ([e], freeof(β, γ, e)));
matchdeclare(m_any2, lambda ([e], freeof(β, γ, e)));
matchdeclare(m_any3, lambda ([e], freeof(β, γ, e)));