1 Star 1 Fork 2

谭富文/机器学习-微积分

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ch5_5三次函数.py 429 Bytes
一键复制 编辑 原始数据 按行查看 历史
# -*- coding: utf-8 -*-
"""
file:ch5_5三次函数
author: Fuwen
time: 2022/7/16 16:58
software:PyCharm
"""
import numpy as np
import matplotlib.pyplot as plt
# 三次函数 y = x ** 3
# 系数
a = 1
# 三次函数图像
x = np.linspace(-1000, 1000, 100001)
y = x ** 3
plt.plot(x, y)
# 微分 = 3 * x**2
# 微分=0, 存在极值点 ,则x=0, 原函数y=0
plt.plot(0, 0, '-o')
plt.grid()
plt.show()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/daydayup20172022/machine-learning---calculus.git
git@gitee.com:daydayup20172022/machine-learning---calculus.git
daydayup20172022
machine-learning---calculus
机器学习-微积分
master

搜索帮助