File size: 542 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | import Mathlib
namespace OAI
noncomputable section
namespace AngularEndpoint
def node (N j : β) : β := -1 + 2 * (j : β) / (N : β)
def boundary (N j : β) : β :=
if j = 0 then -1 else if j = N + 1 then 1 else
(node N (j - 1) + node N j) / 2
def alpha (N j : β) : β := (1 + (node N j) ^ 2) / 4
def beta (N j : β) : β := node N j / 2
def profile (q : β) : β := (q ^ 2 + q ^ 4) / 16
def radius (Ο Ξ· : β) (N j : β) : β :=
1 / 2 + Ο ^ 2 * (profile (node N j) + Ξ·)
end AngularEndpoint
end
end OAI
|