math / data /lean /OAI /Geometry /CylinderCovering /Angular /EndpointDefinitions.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
542 Bytes
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