当前位置:网站首页>Advanced mathematical modeling
Advanced mathematical modeling
2022-06-30 23:12:00 【Infinite force】
Here is the custom directory Insert a code chip here
Insert a code chip here
Insert a code chip here
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(" The stagnation point of this function is ",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})
Insert a code chip here
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)
Insert a code chip here
```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)
边栏推荐
- CTFSHOW框架复现篇
- In depth analysis of Apache bookkeeper series: Part 4 - back pressure
- MaxPool2d详解--在数组和图像中的应用
- [Android, kotlin, tflite] mobile device integration deep learning light model tflite (object detection)
- Meet the streamnational | yangzike: what made me give up Dachang offer
- RIDE:获取图片base64
- [golang] golang implements the string interception function substr
- 分享十万级TPS的IM即时通讯综合消息系统的架构
- CesiumJS 2022^ 源码解读[6] - 三维模型(ModelExperimental)新架构
- Ms17-010 Eternal Blue vulnerability of MSF
猜你喜欢
What does the &?
Fastjson V2 简单使用手册
Two dots on the top of the latex letter
HP 惠普笔记本电脑 禁用触摸板 在插入鼠标后
一次革命、两股力量、三大环节:《工业能效提升行动计划》背后的“减碳”路线图
[fundamentals of wireless communication-13]: illustrated mobile communication technology and application development-1-overview
Redis - 01 cache: how to use read cache to improve system performance?
Architecture of IM integrated messaging system sharing 100000 TPS
Redis' cache penetration, cache breakdown and cache avalanche
New trends of China's national tide development in 2022
随机推荐
How to open a stock account? Is it safe to open a mobile account
d编译时计数
Cas classique multithreadé
Zero sample and small sample learning
One revolution, two forces and three links: the "carbon reduction" road map behind the industrial energy efficiency improvement action plan
MaxPool2d详解--在数组和图像中的应用
Dell r720 server installation network card Broadcom 5720 driver
基金客户服务
Netease cloud sign in lottery? That year I could sign in for 365 days. No? Look.
Qlineedit of QT notes (74) specifies the input type
What is flush software? In addition, is it safe to open an account online now?
Swift 5.0 - creation and use of swift framework
Asynchronous transition scenario - generator
微信支付WxPayPubHelper v3版 回调xml为空的原因
35家巨头科技公司联合组成元宇宙标准论坛组织
How cloud computing can protect online education in the post epidemic Era
Reason why wechat payment wxpaypubhelper V3 callback XML is empty
Ideal interface automation project
Yolo target detection
分享十万级TPS的IM即时通讯综合消息系统的架构