Skip to content
Snippets Groups Projects
Commit 88a7c303 authored by Luke Naylor's avatar Luke Naylor
Browse files

Use walrus op in asserts to keep track of alternative exprs pt 1

parent b2530cec
No related branches found
No related tags found
No related merge requests found
Pipeline #26957 passed
......@@ -462,16 +462,20 @@ bgmlv3_d_upperbound_exp_term = (
# Verify the simplified forms of the terms that will be mentioned in text
assert bgmlv3_d_upperbound_const_term == (
bgmlv3_d_upperbound_const_term_alt1 :=
v.twist(beta_min).ch[2]
+ beta_min*q
).expand()
assert bgmlv3_d_upperbound_exp_term == (
bgmlv3_d_upperbound_const_term_alt2 :=
(
R*v.twist(beta_min).ch[2]
+ (C - q)^2/2
+ R*beta_min*q
- D*R
)/(r-R)
)
\end{sagesilent}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment