atan_approx: THEORY %----------------------------------------------------------------------------- % atan_approx by David Lester % ----------- % Defines upper and lower bounds on atan and pi: % - atan_lb(a,n) <= atan(a) <= atan_ub(a,n) % - pi_lb(a,n) <= pi <= pi_ub(n) % %----------------------------------------------------------------------------- BEGIN
IMPORTING atan
m,n: VAR nat
x: VAR real
px: VAR posreal
atan_pos_le1_ub(n,x): real = atan_series_n(x,2*n)
atan_pos_le1_lb(n,x): real = atan_series_n(x,2*n+1)
atan_pos_le1_ub_lt : LEMMA
0 < x AND x <= 1 IMPLIES
atan_pos_le1_ub(n+1,x) < atan_pos_le1_ub(n,x)
atan_pos_le1_lb_lt : LEMMA
0 < x AND x <= 1 IMPLIES
atan_pos_le1_lb(n,x) < atan_pos_le1_lb(n+1,x)
atan_pos_le1_bounds: AXIOM 0 < x AND x <= 1 IMPLIES
(atan_pos_le1_lb(n,x) < atan(x) AND atan(x) < atan_pos_le1_ub(n,x))
atan_pos_le1_lb_inc: LEMMA px <= 1 AND n < m =>
atan_pos_le1_lb(n,px) < atan_pos_le1_lb(m,px)
atan_pos_le1_ub_dec: LEMMA px <= 1 AND n < m =>
atan_pos_le1_ub(m,px) < atan_pos_le1_ub(n,px)
pi_lbn(n): real = 4*(4*atan_pos_le1_lb(n,1/5) - atan_pos_le1_ub(n,1/239))
pi_ubn(n): real = 4*(4*atan_pos_le1_ub(n,1/5) - atan_pos_le1_lb(n,1/239))
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.