Python编写求极限,类似于Matlab代码
Python编写求极限,类似于Matlab代码求下面的极限#!/usr/bin/env python# -*- coding: UTF-8 -*-from sympy import *x = Symbol('x')s = (x-3)/(x**2-9)print(limit(s, x, 3))结果输出:答案是 1/6D:\Anaconda3\python.exe F:/PycharmProjects
·
Python编写求极限,类似于Matlab代码
求下面的极限
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from sympy import *
x = Symbol('x')
s = (x-3)/(x**2-9)
print(limit(s, x, 3))
结果输出:答案是 1/6
D:\Anaconda3\python.exe F:/PycharmProjects/TensorFlow/001.py
1/6
Process finished with exit code 0
更多推荐
已为社区贡献5条内容
所有评论(0)