In [6]: psutil.swap_memory()Out[6]: sswap(total=23501340672, used=20144758784, free=3356581888, percent=85.7, sin=0, sout=0) In [7]: psutil.cpu_percen ...
分类:
编程语言 时间:
2019-12-04 18:40:55
阅读次数:
194
可以拖动滑动条的$\omega$和$\varphi$看动态效果 ...
分类:
其他好文 时间:
2019-12-03 19:38:40
阅读次数:
129
1、普通风格 代码 import numpy as npimport matplotlib.pyplot as pltx = np.linspace(0, 2*np.pi, 50)y1 = np.sin(x)y2 = np.cos(x)xticks=[0, np.pi/2, np.pi, 3*np. ...
分类:
其他好文 时间:
2019-12-03 12:58:43
阅读次数:
127
Math.sin(x) x 的正玄值。返回值在 -1.0 到 1.0 之间;Math.cos(x) x 的余弦值。返回的是 -1.0 到 1.0 之间的数;这两个函数中的X 都是指的“弧度”而非“角度”,弧度的计算公式为: 2*PI/360*角度;30° 角度 的弧度 = 2*PI/360*30 如 ...
分类:
Web程序 时间:
2019-11-25 09:21:41
阅读次数:
208
SELECT id, ( 6371 * acos ( cos ( radians(78.3232) ) * cos( radians( 数据库纬度字段) ) * cos( radians( 数据库经度字段) - radians(65.3234) ) + sin ( radians(78.3232) ...
分类:
数据库 时间:
2019-11-22 10:44:02
阅读次数:
181
已知函数$f(x)=m\tan x+2\sin x$,$x\in\left[ 0,\dfrac{\pi}{2}\right)$,$m\in\mathbb{R}$. $(1)$ 若函数$y=f(x)$在$x\in\left[ 0,\dfrac{\pi}{2}\right)$上是单调函数,求实数$m$的 ...
分类:
其他好文 时间:
2019-11-21 16:54:19
阅读次数:
54
曲线的曲率k表示曲线的弯曲程度。 计算公式: 曲线的挠率tao表示曲率平面的扭曲程度,平面曲线挠率为0。 计算公式: 这里r代表曲线方程,比如有如下曲线方程:r={a*cos(t),a*sin(t),b*t} mathematica代码如下: 结果如下: 化简之后和《微分几何》第四版43-44页结果 ...
分类:
其他好文 时间:
2019-11-19 00:42:02
阅读次数:
107
``` $slat = $banner_content['jd']; $slng = $banner_content['wd']; $sql = "select *, acos( sin(($slng*3.1415)/180) * sin((wd*3.1415)/180) + cos(($slng* ...
分类:
数据库 时间:
2019-11-15 22:05:56
阅读次数:
117
importlib.import_module 导入名字为字符串给出的一个模块或者包的一部分用例: >>> import importlib >>> math = importlib.import_module('math') >>> math.sin(2) 0.9092974268256817 > ...
分类:
编程语言 时间:
2019-11-15 10:43:06
阅读次数:
114
1 Vector Rotate(Vector A, double rad) { 2 return Vector(A.x * cos(rad) - A.y * sin(rad), A.x * sin(rad) + A.y * cos(rad)); 3 } 4 double angle(Vector v ...
分类:
其他好文 时间:
2019-11-12 18:37:18
阅读次数:
81