当前位置:网站首页>高等数学建模
高等数学建模
2022-06-30 23:11:00 【大力力无穷】
这里写自定义目录 在这里插入代码片
在这里插入代码片
在这里插入代码片
from sympy import *
n=symbols('n')
y=1250*(2-exp(-(n-5000)**2))
func1=diff(y,n)
print(func1)
stag=solve(diff(y,n),n)
print("该函数驻点为",stag)
func2=diff(y,n,2)
print(func2)
print(func2.evalf(subs={
n:5000}))
func2.evalf(sub={
n:5000})>0
y.evalf(sub={
n:5000})
在这里插入代码片
import scipy.optimize as opt
from scipy import fmin
import numpy as np
def func0(cost,x,a):
return cost*x*(2-exp(-(x-a)**2))
func=lambda x:(2000*x[0]+3000*x[1]+4500*x[2])
bnds((1,10000),(1,10000),(1,10000))
res=opt.minimize(fun=func,x0=np.array([2,1,1]),bounds=bnds)
print(res)
在这里插入代码片
```from scipy import integrate
from scipy import pi
def f(h):
return 88.2*pi*(5-h)
v,err=integrate.quant(f,0,5)
print(v)
边栏推荐
- Zero sample and small sample learning
- msf之ms17-010永恒之蓝漏洞
- Smart streetlights | cloud computing lights up the "spark" of smart cities
- [Android, kotlin, tflite] mobile device integration depth learning light model tflite (image classification)
- Meet the streamnational | yangzike: what made me give up Dachang offer
- Kubevela 1.4: make application delivery safer, easier to use, and more transparent
- MIT doctoral dissertation optimization theory and machine learning practice
- d编译时计数
- flutter - sort List排序
- 请指教同花顺软件究竟是什么?另外想问,现在在线开户安全么?
猜你喜欢

多線程經典案例

Architecture of IM integrated messaging system sharing 100000 TPS

In depth analysis of Apache bookkeeper series: Part 4 - back pressure

Doker的容器数据卷

Introduction to machine learning compilation course learning notes lesson 2 tensor program abstraction

理想中的接口自动化项目

Redis - 01 缓存:如何利用读缓存提高系统性能?

多线程经典案例
![[fundamentals of wireless communication-13]: illustrated mobile communication technology and application development-1-overview](/img/1d/62e55f1b5445d7349ec383879f4275.png)
[fundamentals of wireless communication-13]: illustrated mobile communication technology and application development-1-overview

How to use dataant to monitor Apache APIs IX
随机推荐
Ctfshow framework reproduction
"Paddle + camera" has become a "prefabricated dish" in the AI world, and it is easier to implement industrial AI quality inspection
AtCoder Beginner Contest 255
Fastjson V2 simple user manual
How cloud computing can protect online education in the post epidemic Era
shell 同时执行多任务下载视频
E-commerce seckill system
Meet the streamnational | yangzike: what made me give up Dachang offer
hot-fix、cherry-pick怎么提
MaxPool2d详解--在数组和图像中的应用
Sm2246en+ SanDisk 15131
Asynchronous transition scenario - generator
2022-06-30:以下golang代码输出什么?A:0;B:2;C:运行错误。 package main import “fmt“ func main() { ints := make
RIDE:获取图片base64
多线程经典案例
深入解析 Apache BookKeeper 系列:第四篇—背压
项目管理到底管的是什么?
How do I open a stock account on my mobile phone? In addition, is it safe to open a mobile account?
Wechat applet transmits parameters (data-) by clicking events
Schéma de transition asynchrone - générateur