wolfhece.shapes.circle
Module Contents
- wolfhece.shapes.circle.A_from_h(h: float, diameter: float)[source]
Compute the area of a circular segment from its height
- wolfhece.shapes.circle.dichotomy_A2h(f, a: float, b: float, args, tol=1e-10, max_iter=1000)[source]
Dichotomy algorithm to find the root of a function f between a and b. The function f must be defined as f(x, *args) and must return a scalar. The function must have a single root in the interval [a, b].
- wolfhece.shapes.circle.segment_of_circle(diameter: float, h: float = None, chord: float = None, arc_length: float = None, area: float = None, from_which: int = None, init_val: bool = None, eps: float = 1e-08) tuple [source]
Calcul des caractristiques d’un segment circulaire plus d’infos sur http://mathworld.wolfram.com/CircularSegment.html.
- Parameters:
diameter – diamtre du cercle [m]
h – hauteur du segment [m]
chord – longueur de la corde [m]
arc_length – longueur de l’arc soutenu par la corde [m]
area – aire du sgment [m]
from_which – variable de calcul sur base de laquelle les autres grandeurs doivent tre values [index dans l’ordre des paramètres (h = 1, area = 4…)]
init_val – utilise h comme valeur initiale pour le calcul de h depuis A [booléen]