Skip to content

Commit

Permalink
Single source of definition for phi
Browse files Browse the repository at this point in the history
Note: As calcium resolves quadratic fields, we still get phi
      explicitly as Q(sqrt(5)) instead of Q(a) with a^2-a-1 = 0.
  • Loading branch information
Raoul Bourquin committed May 26, 2023
1 parent aca86fe commit 1f5f604
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/ca/phi.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
void
ca_phi(ca_t res, ca_ctx_t ctx)
{
ca_sqrt_ui(res, 5, ctx);
ca_add_ui(res, res, 1, ctx);
ca_div_ui(res, res, 2, ctx);
qqbar_t phi;
qqbar_init(phi);
qqbar_phi(phi);

ca_set_qqbar(res, phi, ctx);

qqbar_clear(phi);
}

0 comments on commit 1f5f604

Please sign in to comment.