text\<open>This example is notable because it produces an expansion of level 9.\<close> lemma"filterlim (\x::real. exp (exp (exp x / (1 - 1/x))) -
exp (exp (exp x / (1 - 1/x - ln x powr (-ln x))))) at_bot at_top" by real_asymp
lemma"((\x::real. max x (exp x) / ln (min (exp (-x)) (exp (-exp x)))) \ -1) at_top" by real_asymp
text\<open>The following example is taken from the paper by Richardson \<^emph>\<open>et al\<close>.\<close> lemma defines"f \ (\x::real. ln (ln (x * exp (x * exp x) + 1)) - exp (exp (ln (ln x) + 1 / x)))" shows"(f \ 0) at_top" (is ?thesis1) "f \ (\x. -(ln x ^ 2) / (2*x))" (is ?thesis2) unfolding f_def by real_asymp+
subsection \<open>Asymptotic inequalities related to the Akra--Bazzi theorem\<close>
definition"akra_bazzi_asymptotic1 b hb e p x \
(1 - hb * inverse b * ln x powr -(1+e)) powr p * (1 + ln (b*x + hb*x/ln x powr (1+e)) powr (-e/2)) \<ge> 1 + (ln x powr (-e/2) :: real)" definition"akra_bazzi_asymptotic1' b hb e p x \
(1 + hb * inverse b * ln x powr -(1+e)) powr p * (1 + ln (b*x + hb*x/ln x powr (1+e)) powr (-e/2)) \<ge> 1 + (ln x powr (-e/2) :: real)" definition"akra_bazzi_asymptotic2 b hb e p x \
(1 + hb * inverse b * ln x powr -(1+e)) powr p * (1 - ln (b*x + hb*x/ln x powr (1+e)) powr (-e/2)) \<le> 1 - ln x powr (-e/2 :: real)" definition"akra_bazzi_asymptotic2' b hb e p x \
(1 - hb * inverse b * ln x powr -(1+e)) powr p * (1 - ln (b*x + hb*x/ln x powr (1+e)) powr (-e/2)) \<le> 1 - ln x powr (-e/2 :: real)" definition"akra_bazzi_asymptotic3 e x \ (1 + (ln x powr (-e/2))) / 2 \ (1::real)" definition"akra_bazzi_asymptotic4 e x \ (1 - (ln x powr (-e/2))) * 2 \ (1::real)" definition"akra_bazzi_asymptotic5 b hb e x \
ln (b*x - hb*x*ln x powr -(1+e)) powr (-e/2::real) < 1"
definition"akra_bazzi_asymptotic6 b hb e x \ hb / ln x powr (1 + e :: real) < b/2" definition"akra_bazzi_asymptotic7 b hb e x \ hb / ln x powr (1 + e :: real) < (1 - b) / 2" definition"akra_bazzi_asymptotic8 b hb e x \ x*(1 - b - hb / ln x powr (1 + e :: real)) > 1"
definition"akra_bazzi_asymptotics b hb e p x \
akra_bazzi_asymptotic1 b hb e p x \<and> akra_bazzi_asymptotic1' b hb e p x \<and>
akra_bazzi_asymptotic2 b hb e p x \<and> akra_bazzi_asymptotic2' b hb e p x \<and>
akra_bazzi_asymptotic3 e x \<and> akra_bazzi_asymptotic4 e x \<and> akra_bazzi_asymptotic5 b hb e x \<and>
akra_bazzi_asymptotic6 b hb e x \<and> akra_bazzi_asymptotic7 b hb e x \<and>
akra_bazzi_asymptotic8 b hb e x"
lemma akra_bazzi_asymptotics: assumes"\b. b \ set bs \ b \ {0<..<1}" and "e > 0" shows"eventually (\x. \b\set bs. akra_bazzi_asymptotics b hb e p x) at_top" proof (intro eventually_ball_finite ballI) fix b assume"b \ set bs" with assms have"b \ {0<..<1}" by simp with\<open>e > 0\<close> show "eventually (\<lambda>x. akra_bazzi_asymptotics b hb e p x) at_top" unfolding akra_bazzi_asymptotic_defs by (intro eventually_conj; real_asymp simp: mult_neg_pos) qed simp
lemma fixes b \<epsilon> :: real assumes"b \ {0<..<1}" and "\ > 0" shows"filterlim (\x. (1 - H / (b * ln x powr (1 + \))) powr p *
(1 + ln (b * x + H * x / ln x powr (1+\<epsilon>)) powr (-\<epsilon>/2)) -
(1 + ln x powr (-\<epsilon>/2))) (at_right 0) at_top" using assms by (real_asymp simp: mult_neg_pos)
context fixes b e p :: real assumes assms: "b > 0""e > 0" begin
lemmas [simp] = mult_neg_pos
real_limit "(\x. ((1 - 1 / (b * ln x powr (1 + e))) powr p *
(1 + ln (b * x + x / ln x powr (1+e)) powr (-e/2)) -
(1 + ln x powr (-e/2))) * ln x powr ((e / 2) + 1))"
facts: assms
end
context fixes b \<epsilon> :: real assumes assms: "b > 0""\ > 0" "\ < 1 / 4" begin
real_expansion "(\x. (1 - H / (b * ln x powr (1 + \))) powr p *
(1 + ln (b * x + H * x / ln x powr (1+\<epsilon>)) powr (-\<epsilon>/2)) -
(1 + ln x powr (-\<epsilon>/2)))"
terms: 10 (strict)
facts: assms
end
context fixes e :: real assumes e: "e > 0""e < 1 / 4" begin
real_expansion "(\x. (1 - 1 / (1/2 * ln x powr (1 + e))) *
(1 + ln (1/2 * x + x / ln x powr (1+e)) powr (-e/2)) -
(1 + ln x powr (-e/2)))"
terms: 10 (strict)
facts: e
end
subsection \<open>Concrete Mathematics\<close>
text\<open>The following inequalities are discussed on p.\ 441 in Concrete Mathematics.\<close> lemma fixes c \<epsilon> :: real assumes"0 < \" "\ < 1" "1 < c" shows"(\_::real. 1) \ o(\x. ln (ln x))" and"(\x::real. ln (ln x)) \ o(\x. ln x)" and"(\x::real. ln x) \ o(\x. x powr \)" and"(\x::real. x powr \) \ o(\x. x powr c)" and"(\x. x powr c) \ o(\x. x powr ln x)" and"(\x. x powr ln x) \ o(\x. c powr x)" and"(\x. c powr x) \ o(\x. x powr x)" and"(\x. x powr x) \ o(\x. c powr (c powr x))" using assms by (real_asymp (verbose))+
lemma"filterlim (\x::real. x^2 * (arctan x - pi/2) + x) (at_right 0) at_top" by real_asymp
real_limit "\x. (root 3 (x ^ 3 + x ^ 2 + x + 1) - sqrt (x ^ 2 + x + 1) * ln (exp x + x) / x)"
lemma"((\x::real. root 3 (x^3 + x^2 + x + 1) - sqrt (x^2 + x + 1) * ln (exp x + x) / x) \<longlongrightarrow> -1/6) at_top" by real_asymp
context fixes a b :: real assumes ab: "a > 0""b > 0" begin
real_limit "\x. ((a powr x - x * ln a) / (b powr x - x * ln b)) powr (1 / x ^ 2)"
limit: "at_right 0" facts: ab
real_limit "\x. ((a powr x - x * ln a) / (b powr x - x * ln b)) powr (1 / x ^ 2)"
limit: "at_left 0" facts: ab lemma"(\x. ((a powr x - x * ln a) / (b powr x - x * ln b)) powr (1 / x ^ 2)) \<midarrow>0\<rightarrow> exp (ln a * ln a / 2 - ln b * ln b / 2)" using ab by real_asymp end
text\<open>\<^url>\<open>https://math.stackexchange.com/questions/1390833\<close>\<close> context fixes a b :: real assumes ab: "a + b > 0""a + b = 1" begin
real_limit "\x. (a * x powr (1 / x) + b) powr (x / ln x)"
facts: ab end
subsection \<open>Unsorted examples\<close>
context fixes a :: real assumes a: "a > 1" begin
text\<open>
It seems that Mathematica fails to expand the following example when \<open>a\<close> is a variable. \<close> lemma"(\x. 1 - (1 - 1 / x powr a) powr x) \ (\x. x powr (1 - a))" using a by real_asymp
real_limit "\x. (1 - (1 - 1 / x powr a) powr x) * x powr (a - 1)"
facts: a
context fixes c :: real assumes c: "c \ 2" begin lemma c': "c^2 - 3 > 0" proof - from c have"c^2 \ 2^2" by (rule power_mono) auto thus ?thesis by simp qed
real_limit "\x. (c^2 - 3) * exp (-x)"
real_limit "\x. (c^2 - 3) * exp (-x)" facts: c' end
lemma"(\x::real. (root 3 x - 1) / (sqrt x - 1)) \1\ 2/3" by real_asymp
lemma fixes a b :: real assumes"a > 1""b > 1""a \ b" shows"((\x. ((a powr x - x * ln a) / (b powr x - x * ln b)) powr (1/x^3)) \ 1) at_top" using assms by real_asymp
context fixes a b :: real assumes ab: "a > 0""b > 0" begin
lemma "((\x. ((a powr x - x * ln a) / (b powr x - x * ln b)) powr (1 / x ^ 2)) \
exp ((ln a ^ 2 - ln b ^ 2) / 2)) (at 0)" using ab by (real_asymp simp: power2_eq_square)
end
real_limit "\x. 1 / sin (1/x) ^ 2 + 1 / tan (1/x) ^ 2 - 2 * x ^ 2"
text\<open> In this example, the first 7 terms of \<open>tan (sin x)\<close> and \<open>sin (tan x)\<close> coincide, which makes
the calculation a bit slow. \<close>
real_limit "\x. (tan (sin x) - sin (tan x)) / x ^ 7" limit: "at_right 0"
(* SLOW *)
real_expansion "\x. sin (tan (1/x)) - tan (sin (1/x))"
terms: 1 (strict)
lemma"filterlim (\x::real. x + sin x) at_top at_top" "filterlim (\x::real. sin x + x) at_top at_top" "filterlim (\x::real. x + (sin x + sin x)) at_top at_top" by real_asymp+
lemma"filterlim (\x::real. 2 * x + sin x * x) at_infinity at_top" "filterlim (\x::real. 2 * x + (sin x + 1) * x) at_infinity at_top" "filterlim (\x::real. 3 * x + (sin x - 1) * x) at_infinity at_top" "filterlim (\x::real. 2 * x + x * sin x) at_infinity at_top" "filterlim (\x::real. 2 * x + x * (sin x + 1)) at_infinity at_top" "filterlim (\x::real. 3 * x + x * (sin x - 1)) at_infinity at_top"
"filterlim (\x::real. x + sin x * sin x) at_infinity at_top" "filterlim (\x::real. x + sin x * (sin x + 1)) at_infinity at_top" "filterlim (\x::real. x + sin x * (sin x - 1)) at_infinity at_top" "filterlim (\x::real. x + sin x * (sin x + 2)) at_infinity at_top" "filterlim (\x::real. x + sin x * (sin x - 2)) at_infinity at_top"
"filterlim (\x::real. x + (sin x - 1) * sin x) at_infinity at_top" "filterlim (\x::real. x + (sin x - 1) * (sin x + 1)) at_infinity at_top" "filterlim (\x::real. x + (sin x - 1) * (sin x - 1)) at_infinity at_top" "filterlim (\x::real. x + (sin x - 1) * (sin x + 2)) at_infinity at_top" "filterlim (\x::real. x + (sin x - 1) * (sin x - 2)) at_infinity at_top"
"filterlim (\x::real. x + (sin x - 2) * sin x) at_infinity at_top" "filterlim (\x::real. x + (sin x - 2) * (sin x + 1)) at_infinity at_top" "filterlim (\x::real. x + (sin x - 2) * (sin x - 1)) at_infinity at_top" "filterlim (\x::real. x + (sin x - 2) * (sin x + 2)) at_infinity at_top" "filterlim (\x::real. x + (sin x - 2) * (sin x - 2)) at_infinity at_top"
"filterlim (\x::real. x + (sin x + 1) * sin x) at_infinity at_top" "filterlim (\x::real. x + (sin x + 1) * (sin x + 1)) at_infinity at_top" "filterlim (\x::real. x + (sin x + 1) * (sin x - 1)) at_infinity at_top" "filterlim (\x::real. x + (sin x + 1) * (sin x + 2)) at_infinity at_top" "filterlim (\x::real. x + (sin x + 1) * (sin x - 2)) at_infinity at_top"
"filterlim (\x::real. x + (sin x + 2) * sin x) at_infinity at_top" "filterlim (\x::real. x + (sin x + 2) * (sin x + 1)) at_infinity at_top" "filterlim (\x::real. x + (sin x + 2) * (sin x - 1)) at_infinity at_top" "filterlim (\x::real. x + (sin x + 2) * (sin x + 2)) at_infinity at_top" "filterlim (\x::real. x + (sin x + 2) * (sin x - 2)) at_infinity at_top" by real_asymp+
lemma"filterlim (\x::real. x * inverse (sin x + 2)) at_top at_top" "filterlim (\x::real. x * inverse (sin x - 2)) at_bot at_top" "filterlim (\x::real. x / inverse (sin x + 2)) at_top at_top" "filterlim (\x::real. x / inverse (sin x - 2)) at_bot at_top" by real_asymp+
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.