当前位置: 首页 > news >正文

微网站建设网站新浪网 网站建设

微网站建设网站,新浪网 网站建设,建设局局长,网页链接制作软件【高数:3 无穷小与无穷大】 1 无穷小与无穷大2 极限运算法则3 极限存在原则4 趋于无穷小的比较 参考书籍:毕文斌, 毛悦悦. Python漫游数学王国[M]. 北京:清华大学出版社,2022. 1 无穷小与无穷大 无穷大在sympy中用两个字母o表示无…

【高数:3 无穷小与无穷大】

  • 1 无穷小与无穷大
  • 2 极限运算法则
  • 3 极限存在原则
  • 4 趋于无穷小的比较

参考书籍:毕文斌, 毛悦悦. Python漫游数学王国[M]. 北京:清华大学出版社,2022.

1 无穷小与无穷大

无穷大在sympy中用两个字母o表示无穷大,正无穷大为sy.oo,负无穷大为-sy.oo

import sympy as sy
x=sy.oo
print(1/x)
>>>0

lim ⁡ x → 0 − 1 x \lim_{x \to 0^-} \frac{1}{x} limx0x1

x=sy.symbols('x')
print(sy.limit(1/x,x,0,dir='-'))
>>>-oo

2 极限运算法则

lim ⁡ x → 3 x − 3 x 2 − 9 \lim_{x \to 3} \frac{x-3}{x^2-9} limx3x29x3

import sympy as sy
x=sy.symbols('x')
print(sy.limit((x-3)/(x**2-9),x,3,dir='+-'))

lim ⁡ x → 1 2 x − 3 x 2 − 5 x + 4 \lim_{x \to 1} \frac{2x-3}{x^2-5x+4} limx1x25x+42x3

x=sy.symbols('x')
print(sy.limit((2*x-3)/(x**2-5*x+4),x,1,dir='-'))
print(sy.limit((2*x-3)/(x**2-5*x+4),x,1))
>>>-oo, oo 故趋于无穷时极限为无穷oo

lim ⁡ x → ∞ 3 x 3 + 4 X 2 + 2 7 x 3 + 5 x 2 − 3 \lim_{x \to \infty} \frac{3x^3+4X^2+2}{7x^3+5x^2-3} limx7x3+5x233x3+4X2+2

x=sy.symbols('x')
print(sy.limit((3*x**3+4*x**2+2)/(7*x**3+5*x**2-3),x,sy.oo,dir='-'))
print(sy.limit((3*x**3+4*x**2+2)/(7*x**3+5*x**2-3),x,-sy.oo,dir='+'))
>>>3/7,3/7 故趋于无穷时极限为3/7

当分子分母极限都不存在时, lim ⁡ x → ∞ sin ⁡ x x \lim_{x \to \infty} \frac{\sin x}{x} limxxsinx

x=sy.symbols('x')
y=sy.sin(x)/x
print(sy.limit(y,x,sy.oo,dir='+'))
print(sy.limit(y,x,-sy.oo,dir='+'))
>>>0 , 0 故趋于无穷时极限为0

3 极限存在原则

eg1: lim ⁡ x → 0 sin ⁡ x x \lim_{x \to 0} \frac{\sin x}{x} limx0xsinx

import sympy as sy
x=sy.symbols('x')
lim=sy.limit(sy.sin(x)/x,x,0,dir='+-')
print(lim)
>>>1

eg2: lim ⁡ x → 0 arcsin ⁡ x tan ⁡ x \lim_{x \to 0} \frac{\arcsin x}{\tan x} limx0tanxarcsinx

x=sy.symbols('x')
print(sy.limit(sy.asin(x)/sy.tan(x),x,0,dir='+-'))  #sy.asin()指arcsin函数
>>>1

eg3: lim ⁡ x → 0 1 − cos ⁡ x x 2 \lim_{x \to 0} \frac{1- \cos x}{x^2} limx0x21cosx

x=sy.symbols('x')
print(sy.limit((1-sy.cos(x))/(x**2),x,0,dir='+-'))
>>>1/2

eg4: lim ⁡ x → 0 ( 1 + x ) 1 x \lim_{x \to 0} (1+x)^{\frac{1}{x}} limx0(1+x)x1

x=sy.symbols('x')
lim=sy.limit((1+x)**(1/x),x,0,dir='+-')
print(lim)
>>>E

eg5: lim ⁡ x → ∞ ( 1 + 1 x ) x \lim_{x \to \infty} (1+\frac{1}{x})^x limx(1+x1)x

x=sy.symbols('x')
lim=sy.limit((1+1/x)**x,x,sy.oo,dir='-')
print(lim)
print(lim.round(3))
print(sy.limit((1+1/x)**x,x,-sy.oo))
>>>E, 2.718, E

eg6: 说明数列 2 , 2 + 2 , 2 + 2 + 2 \sqrt{2} , \sqrt{2+\sqrt{2}},\sqrt{2+\sqrt{2+\sqrt{2}}} 2 ,2+2 ,2+2+2 ,···的极限存在

#用函数的递归机制定义数列
def a_complex_series(n):#退出条件if n<=0:return 2**0.5#一个函数如果调用自身,则这个函数就是一个递归函数return (2.0+a_complex_series(n-1))**0.5
#绘制前20个数的散点图
import matplotlib.pyplot as plt
import numpy as np
x=[]
y=[]
for i in range(20):x.append(i)y.append(a_complex_series(i))
print(np.array(y))
plt.scatter(x,y)
plt.show()
>>>[1.41421356 1.84775907 1.96157056 1.99036945 1.99759091 1.99939764
1.9998494  1.99996235 1.99999059 1.99999765 1.99999941 1.999999851.99999996 1.99999999 2.         2.         2.         2.
2.         2.        ]

在这里插入图片描述
故极限为2

4 趋于无穷小的比较

eg1: lim ⁡ x → 0 tan ⁡ 2 x sin ⁡ 5 x \lim_{x \to 0} \frac{\tan 2x}{\sin 5x} limx0sin5xtan2x

from sympy import limit,sin,cos,tan,symbols #从sympy中仅导入这几个函数
x=symbols('x')
example_1=tan(2*x)/sin(5*x)
result=limit(example_1,x,0,dir='+-')
print(result)
>>>2/5

eg2: lim ⁡ x → 0 sin ⁡ x x 3 + 3 x \lim_{x \to 0} \frac{\sin x}{x^3+3x} limx0x3+3xsinx

x=symbols('x')
example_2=sin(x)/(x**3+3*x)
result=limit(example_2,x,0,dir='+-')
print(result)
>>>1/3

eg3: lim ⁡ x → 0 ( 1 + x 2 ) 1 / 3 − 1 cos ⁡ x − 1 \lim_{x \to 0} \frac{(1+x^2)^{1/3}-1}{\cos x-1} limx0cosx1(1+x2)1/31

x=symbols('x')
example_3=((1+x**2)**(1/3)-1)/(cos(x)-1)
result=limit(example_3,x,0,dir='+-')
print(result)
>>>-2/3
http://www.yayakq.cn/news/678116/

相关文章:

  • 学校网站建设材料知乎 wordpress 插件
  • 手机网站建设的整体流程网站上的文章用秀米可以做吗
  • 哈尔滨模板建站品牌asp建材公司网站源码
  • 衡水网站建设浩森宇特外贸网站每天多少ip
  • 单位网站建设建议对策医疗器械展会2021列表
  • 国内用react做的网站wordpress的编辑器插件安装
  • 安阳网站关键词优化网站建设比较好的律所
  • 西安公司网站如何建立青田建设局网站
  • 建设银行网上银行网站东莞网站推广方案
  • 软件开发公司照片外贸seo推广
  • 做手机网站和pc如何做网站建设私活
  • 微信公众号怎么做的跟网站似的西双版纳傣族自治州景洪市
  • 做服装外贸的网站设计图书馆信息化网站建设
  • 网站开发合同及报价单中文 wordpress插件
  • 山东网站建设市场触屏网站
  • 竹妃怎么在公众号里做网站吉林建设工程信息网站
  • app定制开发上海网站优化哪家好
  • 招远做网站公司软件制作需要多少钱
  • 门户网站建设 必要性珠海门户网站建设多少钱
  • 深圳建网站哪个公如何规划一个网站
  • 旅游型网站的建设背景网站 seo 优化 效果
  • 昆明专业网站制作公司网站用户黏度
  • 做网站用什么格式的图片科技产品
  • 商城网站怎么做优化网站开发怎么兼容pc和移动端
  • 兰州网站seo收费宁夏网站设计联系电话
  • 网站建设 模版做网站公司职务
  • nuxt做多页面网站代加工厂都不做网站
  • 网站建设实训收获公司网页网站建设+ppt模板下载
  • 中国中建设计网站彩页设计培训
  • 设计汽车网站wordpress 豆瓣 主题